Commit Graph

11 Commits

Author SHA1 Message Date
Alexis La Goutte 296591399f Remove all $Id$ from top of file
(Using sed : sed -i '/^ \* \$Id\$/,+1 d')

Fix manually some typo (in export_object_dicom.c and crc16-plain.c)

Change-Id: I4c1ae68d1c4afeace8cb195b53c715cf9e1227a8
Reviewed-on: https://code.wireshark.org/review/497
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-03-04 14:27:33 +00:00
Guy Harris 3376be17a7 For C string functions, the header to include is <string.h>, not
<strings.h>.

svn path=/trunk/; revision=50403
2013-07-06 08:29:01 +00:00
Guy Harris 71c751f3c1 An explicit cast that was missing; at least some version of GCC
complains about its absence with -Wc++-compat.

svn path=/trunk/; revision=48701
2013-04-02 17:05:50 +00:00
Guy Harris 592a0fcf04 OK, try including <net/if.h> iff IFF_UP isn't already defined; see if
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-29 22:25:46 +00:00
Alexis La Goutte bbe198de5e Fix [ 77%] Building C object CMakeFiles/qtshark.dir/iface_monitor.c.o 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-28 14:38:10 +00:00
Guy Harris 8ed7a73e22 Fix a bunch of warnings.
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-12-26 05:57:06 +00:00
Jeff Morriss 7a900c81b3 From Pontus Fuchs on -dev:
Fix collision between net/if.h and linux/if.h (which is included by libnl3).

svn path=/trunk/; revision=43557
2012-07-03 17:48:21 +00:00
Guy Harris 0d56350b19 Add support for listening for interface arrival/departure events on
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-29 18:04:11 +00:00
Jakub Zawadzki bf81b42e1e Update Free Software Foundation address.
(COPYING will be updated in next commit)

svn path=/trunk/; revision=43536
2012-06-28 22:56:06 +00:00
Guy Harris fde7f31b4f No pcap, no interfaces to monitor.
svn path=/trunk/; revision=43522
2012-06-28 17:01:57 +00:00
Guy Harris 1d1391ed47 From Pontus Fuchs:
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
2012-06-28 16:21:51 +00:00