dect
/
libpcap
Archived
13
0
Fork 0
Commit Graph

1122 Commits

Author SHA1 Message Date
guy b0b2b0de78 Regenerate. 2006-10-04 16:47:12 +00:00
guy ec67f552e1 Clean up comment. 2006-10-04 16:46:31 +00:00
hannes dc03d28d88 from Paolo Abeni <paolo.abeni@email.com>: USB capturing support on linux 2006-10-04 15:50:26 +00:00
guy 788c73d4bd Add a link-layer type for USB. 2006-10-03 00:11:46 +00:00
guy f65831091d Squelch a valgrind warning. 2006-09-28 07:34:36 +00:00
guy 53bccbd2d7 From Stephen Donnelly: add support for new DAG ERF types. 2006-09-25 18:18:18 +00:00
guy 09b4db222c Clean up indentation.
From Stephen Donnelly: add DLT_MTP2 to the table of DLT choices.
2006-09-25 18:16:55 +00:00
guy c903ddd8f5 From Stephen Donnelly:
when building a shared library, build with "-fPIC" on Linux, to
	support x86_64;

	link with "$(CC) -shared" rather than "ld -shared" when building
	a ".so" shared library (as would be done with ELF systems that
	use GCC);

	add an explicit "-ldag" when building the shared library, so the
	DAG library dependency is explicit.
2006-09-25 18:04:40 +00:00
guy 753370a49f Indicate *which* ioctl failed. 2006-09-18 17:32:30 +00:00
guy 750519deb0 Add off_ll to off_nl in cases where that's required and that we missed
in earlier checkins, now that off_nl no longer includes off_ll.

Add in more comments explaining what we're doing.
2006-09-13 07:35:42 +00:00
guy c547cb1649 Make off_linktype, off_nl, and off_nl_nosnap *not* include off_ll.
Make gen_load_llrel() add in off_ll if there isn't a variable-length
radio header, so the offset passed to it is always relative to the
beginning of the link-layer header, not the beginning of the packet.
Don't add in off_ll when calling it.

Those changes centralize the addition of off_ll, so it's only done in
one place (rather than twice, where it was done before, meaning that the
offsets were wrong for the Prism and AVS headers as they had 2*off_ll
rather than just off_ll, as off_ll was added twice).
2006-09-13 06:54:15 +00:00
loris cbfba20e99 Added support for DLT_IEEE802_11 and DLT_IEEE802_11_RADIO link layers in windows 2006-08-08 16:39:08 +00:00
gianluca 3f0f487a1e Added a new DLT and LINKTYPE value for ARINC 653 Interpartition
Communication messages.
2006-07-27 21:02:57 +00:00
gianluca 73aaf3785b Fixed a typo in a DLT value: it should start with DLT_ and not LINKTYPE_ 2006-07-25 21:34:43 +00:00
gianluca 303bc7bd43 Redefined DLT_CAN20B and LINKTYPE_CAN20B as #190 (as this is the
right value for CAN).
Added the definition of DLT_A429 and LINKTYPE_A429 as #184.
Added these two link layers in the global array dlt_choices.
2006-07-19 20:51:50 +00:00
guy d91be5b8af C89 says that the result of shifting an N-bit value by >= N bits is
undefined; we want it to be zero, so we explicitly check for a 32-bit
shift count and clear the netmask in that case.
2006-05-28 20:12:28 +00:00
gianluca 520a3ea559 Added a new DLT and LINKTYPE value for CAN v2.0B frames. 2006-05-20 00:23:45 +00:00
hannes b7d2f597d1 add support for DLT_JUNIPER_VP 2006-05-18 08:40:52 +00:00
guy 13a838cb48 Check for IPv4 addreses used with "port", "portrange", "proto", or
"protochain".
2006-05-16 08:30:05 +00:00
guy 6f754c86b2 From Ollie Wild: if we're bound to an interface, discard incoming
packets that didn't arrive on that interface, so packets from other
interfaces that get onto the socket queue before we bind the socket to
the interface don't get supplied to the application (binding the socket
doesn't discard incoming packets).
2006-04-07 08:02:28 +00:00
guy b64aff479f From Stephen Donnelly:
If the DAG API supports asking a card for the set of ERF types
	it supports, use that capability, to handle cards that support
	multiple ERF types.  This is to support channelised/fractional
	T1/E1.

	Don't set the snapshot length - some DAG cards support multiple
	capture streams, but the snapshot length is global, so it'd
	affect other captures.

	Update README.dag.
2006-04-07 07:07:25 +00:00
guy cbcd540a75 putmsg() returns 0 or -1, not the number of bytes written. 2006-04-04 05:32:27 +00:00
hannes 8815467ef5 use gen_linktype() rather than a plain gen_cmp() for creating the link-layer specific match code for MPLS packets 2006-03-16 08:46:13 +00:00
hannes d52ccdfa66 OR_PACKET should match at the beginning of the packet and not at the beginning of the packet plus variable-length link-layer 2006-03-16 08:42:14 +00:00
guy 1dcd9beef5 If we succeed in getting packet statistics with the PACKET_STATISTICS
"getsockopt()" argument, return those statistics, rather than falling
through and returning the statistics the way we would if
PACKET_STATISTICS weren't supported.
2006-02-23 07:35:08 +00:00
gianluca 65518d8b3f Updated the copyright notice. 2006-02-22 17:09:02 +00:00
gianluca ea6367e572 Fixed some capitalization that could cause problems cross compiling under linux.
Updated the copyright notice.
2006-02-22 17:08:31 +00:00
hannes b1a31d31cc code cosmetics: clean up some if() chains and replace by switch() statements 2006-02-22 10:38:28 +00:00
hannes 525e3cbe8f code cosmetics: clean up some if() chains and replace by switch() statements 2006-02-22 10:22:04 +00:00
guy 3adb2d4f0d Clean up some comments, and give more details so people understand what
they do, and don't, have to do about 32-bit vs. 64-bit platforms in
libpcap.
2006-02-09 22:26:12 +00:00
guy c1fca92559 From Daniele Orlandi <daniele@orlandi.com>: add support for capturing
LAPD frames with vISDN.
2006-01-22 20:11:26 +00:00
gianluca 4526fd6dee Added some code to properly distinguish a failure in PacketGetAdapterNames()
from a "buffer too small" error.
2006-01-22 18:29:00 +00:00
gianluca 54693a0c07 Added an implementation of gai_strerror() for the compilation of libpcap.lib
and wpcap.dll under Cygnus and MingW32. The implementation is basically
taken from the FreeBSD sources.
2006-01-22 18:03:43 +00:00
gianluca 64e1e8e43b Added a patch to make libpcap.lib and wpcap.dll compile under Cygnus and
MingW32.
2006-01-22 18:02:18 +00:00
guy 859204c1e8 From Sam Leffler and Jason Evans: fix the allocation of the buffer for
the list of link-layer types.
2006-01-22 05:28:12 +00:00
guy cb71eef7ae We've already used strdup(), and nobody's complained about their OS
lacking it, so use it in some other cases, instead of duplicating its
functionality.

Check, however, whether it succeeds, and fail appropriately when it
fails.

Also, when other mallocs fails, free up any memory allocated for data
structures, so it doesn't leak.
2006-01-21 10:45:18 +00:00
guy 0c77a6d811 Put in a note about getting a description of the interface on FreeBSD. 2006-01-10 21:22:00 +00:00
hannes 98a1d8cfbd add DLT/LINKTYPE for carrying FRF.16 Multi-link Frame Relay 2005-12-13 13:41:39 +00:00
guy 8fe5fce9e4 Don't double-count received packets on Linux systems that support the
PACKET_STATISTICS getsockopt() argument on PF_PACKET sockets.
2005-11-24 19:27:42 +00:00
guy 8e06df3e4c Make the "applied to" errors say "applied to net" if we're applying
bogus keywords to "net" rather than "host".
2005-11-17 04:49:34 +00:00
guy 907283b793 Previous change was applied by hand, and deleted one line. Put that
line back.
2005-11-09 23:49:30 +00:00
guy f33fbd4b19 From Rick Jones: crank up some limits so the HP-UX lex can handle this
file.
2005-11-08 02:32:55 +00:00
guy cee0360845 Handle too-short snapshot lengths in cooked mode. 2005-10-08 11:30:26 +00:00
guy a1e758a03d Warn about some broken drivers *cough* Broadcom *cough* ignoring
DLIOCRAW and overwriting the Ethertype with the SAP we happened to bind
to (the fact that we requested SAP promiscuity nonwithstanding).
2005-09-07 08:28:56 +00:00
guy 5fe3c66fc0 Mention new "pppoed" and "pppoes" filters. 2005-09-05 09:17:23 +00:00
guy 7fb15ab846 Add "pppoed" and "pppoes" keywords, for PPPoE Discovery and Session
packets (based on the Ethernet type).  "pppoes" has the side-effect that
subsequent filter expressions will test the PPP header and headers
in the PPP payload, not the link-layer header and headers in the
link-layer payload.
2005-09-05 09:06:58 +00:00
risso a8302b7a2b Added a missing check on the return value of PacketGetAdapterNames() 2005-09-01 22:14:32 +00:00
guy 3410839c5d Today is Tuesday, not Monday. 2005-08-31 06:51:46 +00:00
guy 0e2413c634 When checking for VLAN packets, check the type field in the Ethernet
header, not the VLAN header.
2005-08-31 06:51:05 +00:00
guy 1e5fb25e2c Add another magic number (we'd have used the Navtel one, except that
nobody from Navtel has ever said whether their format differs from the
standard one anywhere other than the time stamp).
2005-08-29 21:05:05 +00:00