aboutsummaryrefslogtreecommitdiffstats
path: root/iface_monitor.c
AgeCommit message (Collapse)AuthorFilesLines
2013-07-06For C string functions, the header to include is <string.h>, notGuy Harris1-1/+1
<strings.h>. svn path=/trunk/; revision=50403
2013-04-02An explicit cast that was missing; at least some version of GCCGuy Harris1-1/+1
complains about its absence with -Wc++-compat. svn path=/trunk/; revision=48701
2012-12-29OK, try including <net/if.h> iff IFF_UP isn't already defined; see ifGuy Harris1-4/+11
that includes it if we need it, but doesn't include it if we don't, regardless of what versions (plural!) of libnetlink are present. svn path=/trunk/; revision=46853
2012-12-28Fix [ 77%] Building C object CMakeFiles/qtshark.dir/iface_monitor.c.o ↵Alexis La Goutte1-1/+1
iface_monitor.c: In function ‘iface_mon_handler2’: iface_monitor.c:101:19: error: ‘IFF_UP’ undeclared (first use in this function) iface_monitor.c:101:19: note: each undeclared identifier is reported only once for each function it appears in make[2]: *** [CMakeFiles/qtshark.dir/iface_monitor.c.o] Erreur 1 svn path=/trunk/; revision=46825
2012-12-26Fix a bunch of warnings.Guy Harris1-1/+1
Cast away some implicit 64-bit-to-32-bit conversion errors due to use of sizeof. Cast away some implicit 64-bit-to-32-bit conversion errors due to use of strtol() and strtoul(). Change some data types to avoid those implicit conversion warnings. When assigning a constant to a float, make sure the constant isn't a double, by appending "f" to the constant. Constify a bunch of variables, parameters, and return values to eliminate warnings due to strings being given const qualifiers. Cast away those warnings in some cases where an API we don't control forces us to do so. Enable a bunch of additional warnings by default. Note why at least some of the other warnings aren't enabled. randpkt.c and text2pcap.c are used to build programs, so they don't need to be in EXTRA_DIST. If the user specifies --enable-warnings-as-errors, add -Werror *even if the user specified --enable-extra-gcc-flags; assume they know what they're doing and are willing to have the compile fail due to the extra GCC warnings being treated as errors. svn path=/trunk/; revision=46748
2012-07-03From Pontus Fuchs on -dev:Jeff Morriss1-0/+2
Fix collision between net/if.h and linux/if.h (which is included by libnl3). svn path=/trunk/; revision=43557
2012-06-29Add support for listening for interface arrival/departure events onGuy Harris1-15/+201
PF_SYSTEM sockets on OS X. Pull iface_mon_nl_init() into iface_mon_start(), to make it a little easier to figure out what interface monitoring code on other platforms should do. Add a bunch of XXX comments about additional things we should perhaps do. svn path=/trunk/; revision=43545
2012-06-28Update Free Software Foundation address.Jakub Zawadzki1-1/+1
(COPYING will be updated in next commit) svn path=/trunk/; revision=43536
2012-06-28No pcap, no interfaces to monitor.Guy Harris1-0/+5
svn path=/trunk/; revision=43522
2012-06-28From Pontus Fuchs:Guy Harris1-0/+177
Add an interface monitor that, on Linux distributions with libnl, watches for interfaces to appear or disappear and, on such an event, causes windows showing interface lists to update. svn path=/trunk/; revision=43521