Changeset 1839
- Timestamp:
- 04/22/07 15:22:54 (19 months ago)
- Location:
- trunk
- Files:
-
- 6 modified
-
configure.in (modified) (6 diffs)
-
src/common/interface.c (modified) (1 diff)
-
src/config.h.in (modified) (1 diff)
-
src/tcpbridge.c (modified) (1 diff)
-
src/tcpreplay.c (modified) (1 diff)
-
src/tcpreplay_opts.def (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/configure.in
r1824 r1839 11 11 dnl Set version info here! 12 12 MAJOR_VERSION=3 13 MINOR_VERSION= 013 MINOR_VERSION=1 14 14 MICRO_VERSION=0 15 15 TCPREPLAY_VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION … … 983 983 dnl No 'make test' when cross compile 984 984 985 AC_MSG_CHECKING( for 'make test' profile)985 AC_MSG_CHECKING(for 'make test' profile) 986 986 if test "$host" != "$build" ; then 987 987 AC_MSG_WARN(Unable to do tests when cross-compiling) … … 995 995 AC_MSG_RESULT([Using --with-testnic=$withval])], 996 996 [ 997 998 dnl There's a bug in OS X which causes pcap_findalldevs() to make the wifi NIC to disassociate 999 dnl so under OSX we disable the interface list feature 1000 disable_pcap_findalldevs=no 1001 1002 997 1003 dnl these need to be dynamic based on OS 998 1004 case $host in … … 1018 1024 nic1=en0 1019 1025 nic2=en0 1026 disable_pcap_findalldevs=yes 1020 1027 AC_MSG_RESULT(Apple OS X) 1021 1028 ;; … … 1049 1056 AC_SUBST(nic1) 1050 1057 AC_SUBST(nic2) 1058 1059 1060 AC_MSG_CHECKING([if it's ok to use pcap_findalldevs()]) 1061 if test x$disable_pcap_findalldevs = xno ; then 1062 AC_DEFINE([ENABLE_PCAP_FINDALLDEVS], [1], [Enable use of pcap_findalldevs()]) 1063 AC_MSG_RESULT(yes) 1064 else 1065 AC_MSG_RESULT(no) 1066 fi 1051 1067 1052 1068 LIBOPTS_CHECK … … 1070 1086 AC_MSG_WARN([OS X <= 10.4.9 has a serious problem. Please see: http://tcpreplay.synfin.net/trac/ticket/142]) 1071 1087 ;; 1088 1089 *-*-cygwin) 1090 AC_MSG_WARN([Windows/Cygwin support is still somewhat experimental. Please report any bugs!]) 1091 ;; 1072 1092 esac -
trunk/src/common/interface.c
r1766 r1839 55 55 56 56 assert(alias); 57 assert(list);58 57 59 ptr = list; 58 if (list != NULL) { 59 ptr = list; 60 60 61 do {62 /* check both the alias & name fields */63 if (strcmp(alias, ptr->alias) == 0)64 return(ptr->name);61 do { 62 /* check both the alias & name fields */ 63 if (strcmp(alias, ptr->alias) == 0) 64 return(ptr->name); 65 65 66 if (strcmp(alias, ptr->name) == 0)67 return(ptr->name);66 if (strcmp(alias, ptr->name) == 0) 67 return(ptr->name); 68 68 69 ptr = ptr->next; 70 } while (ptr != NULL); 69 ptr = ptr->next; 70 } while (ptr != NULL); 71 } else { 72 return(alias); 73 } 71 74 72 75 return(NULL); -
trunk/src/config.h.in
r1820 r1839 15 15 /* Enable building flowreplay (alpha) */ 16 16 #undef ENABLE_FLOWREPLAY 17 18 /* Enable use of pcap_findalldevs() */ 19 #undef ENABLE_PCAP_FINDALLDEVS 17 20 18 21 /* Do we have tcpdump and pcap_dump_fopen()? */ -
trunk/src/tcpbridge.c
r1803 r1839 159 159 char ebuf[SENDPACKET_ERRBUF_SIZE]; 160 160 char *intname; 161 #ifdef ENABLE_PCAP_FINDALLDEVS 161 162 interface_list_t *intlist = get_interface_list(); 162 163 #else 164 interface_list_t *intlist = NULL; 165 #endif 163 166 164 167 #ifdef DEBUG -
trunk/src/tcpreplay.c
r1820 r1839 272 272 char ebuf[SENDPACKET_ERRBUF_SIZE]; 273 273 int int1dlt, int2dlt; 274 275 #ifdef ENABLE_PCAP_FINDALLDEVS 274 276 interface_list_t *intlist = get_interface_list(); 275 277 #else 278 interface_list_t *intlist = NULL; 279 #endif 276 280 277 281 #ifdef DEBUG -
trunk/src/tcpreplay_opts.def
r1833 r1839 206 206 207 207 flag = { 208 ifdef = ENABLE_PCAP_FINDALLDEVS; 208 209 name = listnics; 209 210 value = N;
