diff options
author | Guy Harris <guy@alum.mit.edu> | 1998-11-17 02:17:27 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 1998-11-17 02:17:27 +0000 |
commit | 8d616b03429fe2185782f5153d7b187a44698b5d (patch) | |
tree | 78efdcdfb3597e75e9cc90478f9f81f950e448fe /capture.c | |
parent | d8e026fc3bc769e0b6811c10524a8838ffce3e14 (diff) |
Add a "acinclude.m4" file that defines a "AC_ETHEREAL_STRUCT_SA_LEN"
macro (modeled after similar macros provided with "autoconf") to check
whether "struct sockaddr" has an "sa_len" member, and defines or
undefines "HAVE_SA_LEN" appropriately. Use it instead of
"AC_LBL_SOCKADDR_SA_LEN", and use "HAVE_SA_LEN" instead of
"HAVE_SOCKADDR_SA_LEN".
svn path=/trunk/; revision=96
Diffstat (limited to 'capture.c')
-rw-r--r-- | capture.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,7 +1,7 @@ /* capture.c * Routines for packet capture windows * - * $Id: capture.c,v 1.10 1998/11/15 05:40:19 guy Exp $ + * $Id: capture.c,v 1.11 1998/11/17 02:17:27 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -126,7 +126,7 @@ get_interface_list() { ! strchr(ifr->ifr_name, ':')) { il = g_list_append(il, g_strdup(ifr->ifr_name)); } -#ifdef HAVE_SOCKADDR_SA_LEN +#ifdef HAVE_SA_LEN ifr = (struct ifreq *) ((char *) ifr + ifr->ifr_addr.sa_len + IFNAMSIZ); #else ifr = (struct ifreq *) ((char *) ifr + sizeof(struct ifreq)); |