Commit Graph

945 Commits

Author SHA1 Message Date
guy
f36c32b514 Don't bother including <netinet/if_ether.h> if we're not using
"ether_ntohost()" - the only reason we include it is to get
"ether_ntohost()" declared.

We only include <net/if.h> to get "struct ifnet" in "struct arpcom"
defined on Solaris, so that we don't get errors when including
<netinet/if_ether.h>, so don't include that unless we're including
<netinet/if_ether.h>.

We only need incomplete definitions for "struct mbuf" and "struct
rtentry" if we're including <net/if.h>, so don't define them unless
we're including <netinet/if_ether.h>.
2002-06-02 00:07:36 +00:00
guy
4c6bada758 Get rid of unneeded incomplete definitions of "struct mbuf" and "struct
rtentry", and unneded includes of <sys/uio.h>, <sys/file.h>, and
<sys/ioctl.h>.
2002-06-01 23:50:30 +00:00
guy
07f12c5e53 "gmt2local.c" doesn't need "struct timeval", so it doesn't need to
include <sys/time.h>.
2002-06-01 23:43:34 +00:00
hannes
a7b3e9ec87 support for
ES Neighbor(s)     TLV #3
Partition DIS      TLV #4
Prefix Neighbors   TLV #5
Prefix Neighbor(s)
 (variable length) TLV #7

clarified use of SYSTEM_ID_LEN, ETHER_ADDR_LEN, LSP_ID_LEN

plus some cleanups, boundary checks and modularization
 (isis_print_metric_block)
2002-05-31 23:23:35 +00:00
itojun
0abb0bf453 pedant 2002-05-31 09:51:13 +00:00
guy
2faf41eb28 V3 FSINFO and PATHCONF requests take a file handle as an argument; parse
the request header and the file handle.

"parsestatus()" should only return NULL if the packet was truncated, so
that its callers can distinguish "packet truncated" from "NFS reply
status reports an error".

NFS-request-or-reply parsing routines that call "parsestatus()" should
not return 0 if "parsestatus()" returns a non-zero NFS reply status, so
that non-truncated packets with a non-zero NFS reply status aren't
printed as truncated NFS packets.

Fix some "TCHECK2()" calls to pass an object, not a pointer to an
object, as the first argument (the TCHECK/TTEST macros take objects, not
addresses, as the test argument).

NFS-request-or-reply parsing routines should return 0 for truncated
packets and 1 for non-truncated packets, not *vice versa*.
2002-05-31 09:47:23 +00:00
guy
7ebe728746 In TTEST2(), check to make sure the "l" argument isn't so large that
"snapend - l" underflows; this fixes a buffer overflow with malformed
NFS packets, and may fix other buffer overflows with malformed packets.
2002-05-31 09:29:07 +00:00
itojun
2f3fdf1a15 typo, from openbsd 2002-05-30 22:01:34 +00:00
guy
b58cddb154 Make "-x" and "-X" work with PPPoE interfaces; based on code from Darren
Reed, with additions to get the PPP header length from the PPP print
routine.
2002-05-29 10:32:00 +00:00
guy
06181bc3ee Only do "-x" printing in the top-level interface print routine; don't do
it in the routines, called by the top-level routines, to dissect
Ethernet, FDDI, or Token Ring packets, as those routines might also be
called for bridged frames over ATM, and the interface print routine for
ATM will also do "-x" printing.
2002-05-29 10:06:24 +00:00
guy
f72fe0d0de Get rid of an extra newline. 2002-05-29 09:59:12 +00:00
guy
fc258e549c Make static routines, and string buffers, not used outside
"print-isoclns.c".
2002-05-29 09:48:16 +00:00
guy
591b988f14 Fix a typo. 2002-05-29 09:47:04 +00:00
guy
6b5ab58171 Mention the SourceForge site. 2002-05-29 07:04:09 +00:00
mcr
68ed33e995 when reporting a bad checksum, indicate what it should have been. 2002-05-29 03:09:48 +00:00
mcr
b7f1bd361e adjusted instructions to include :pserver: in CVS example. 2002-05-29 03:08:29 +00:00
hannes
3ed4001d7e tony has moved a while ago ;-) 2002-05-27 21:30:59 +00:00
hannes
ccf20e1448 cosmetic cleanup for the print_nsap routine 2002-05-25 15:11:37 +00:00
guy
eba1a41534 From Rick Watson <watsonrick@users.sourceforge.net>: use
unaligned-extraction macros to fetch 16-bit and 32-bit big-endian
quantities.
2002-05-25 09:41:06 +00:00
hannes
8b622cb11f from Dirk Steinberg: check if the bottom of stack bit is set correct in
RFC3107 BGP labeled unicast NLRI messages
2002-05-24 17:49:29 +00:00
guy
bcd25f631a Explain, in full painful detail, what you need to do in order to do
*useful* packet capture on Digital/Tru64 UNIX (and add "Tru64 UNIX" to
the list of OS names).
2002-05-17 09:57:50 +00:00
guy
3f0aa038ff From Phil Wood <cpw@lanl.gov>: if we're exiting due to a "pcap_loop()"
error, report statistics and clean up first.
2002-05-16 10:25:58 +00:00
guy
e809c2fe11 From Hannes Gredler: support BGP labeled unicast. 2002-05-16 10:20:47 +00:00
guy
946131ffb1 From Hannes Gredler: support the IS-IS buffersize TLV #14, and clean up
some names.

Fix a misspelling.
2002-05-16 10:19:23 +00:00
guy
6c6b1ac0b2 If we run out of data in the when processing tagged parameters, return
"success", not "failure" - there's no special "end of list" parameter.
Get rid of the check for a parameter tag of 0xff, for the same reason.

Take out an extra space between the "[" and the list of rates in a
"supported rates" tagged parameter, and don't print the "[" or the "
Mbit]", or the leading space if there are no supported rates (or there
is no "supported rates" parameter.

Use "fn_print" to print the SSID, in case there are non-printable
characters in it.

Show the channel number in decimal, not hex, as that's how it's given in
the IEEE 802.11 spec.

Show the supported rates in a probe response, if present.

Get rid of random extra trailing space in tagged parameter output.
2002-05-13 08:30:19 +00:00
fenner
a642694fd0 Print the whole MPLS label stack.
Submitted by:	Kaarthik Sivakumar <kaarthik@torrentnet.com>
2002-05-07 18:35:39 +00:00
fenner
aa15fc8b97 Cosmetic TCHECK() change. 2002-05-07 18:31:49 +00:00
fenner
7395945540 Handle old DR-priority and old Bidir-capable option values. 2002-05-07 18:28:38 +00:00
fenner
1b721ed3a1 Fix spacing with -v 2002-05-07 18:27:40 +00:00
guy
6005907268 From Juergen Schoenwaelder <schoenw@ibr.cs.tu-bs.de> - fix for the
following problem:

	According to the ASN.1 documents, OIDs of the form 2.100.3 are
	correctly encoded as 0x0603813403.  tcpdump fails to properly
	decode them - it displays the value 4.20.3 instead of 2.100.3.
2002-05-07 07:39:05 +00:00
guy
be37dfa462 Fix a formatto. 2002-05-07 04:00:09 +00:00
guy
734406c510 From Sami Farin <safari@iki.fi>: put in a missing blank before "NBT
Packet".
2002-04-30 09:09:41 +00:00
guy
1bc4de7dd5 From Hannes Gredler: support for the IP-Reach-subTLV #2 and
IDRP-info-TLV #131.
2002-04-30 09:04:35 +00:00
guy
437cf4b185 Squelch some compiler warnings caused by passing "char *"s rather than
"unsigned char *"s to "fn_print()".
2002-04-30 06:45:08 +00:00
guy
ba95dd9079 Add a cast to squelch a compiler complaint - and remove a potential
problem, if the string in question probably contains any non-ASCII
characters.
2002-04-27 23:39:25 +00:00
guy
632bb20861 Another bug fix from Gert Doering. 2002-04-26 09:51:34 +00:00
guy
4f65f2dc96 From Gert Doering <gert@greenie.muc.de>:
The VLAN ID calculation was wrong (either I had a bug in the
	switch I tested the original code against, or I was just stupid)
	- the "-1" offset doesn't belong there.

	In addition, there are some new TLV values that Cisco has
	started using.
2002-04-26 09:13:19 +00:00
guy
c3287e58b0 Add some casts to squelch compiler complaints (and remove potential
problems, although the string in question probably won't contain any
non-ASCII characters).
2002-04-26 05:12:40 +00:00
guy
03c3587323 Make the tag in "rfc1048_print()" a 16-bit variable, as 16-bit
quantities are stuffed into it.

Add an unsigned 8-bit variable as well, for 8-bit unsigned quantities.

Stuff unsigned 16-bit quantities into 16-bit variables.

Print unsigned values with "%u".
2002-04-26 04:59:08 +00:00
guy
822179d87a Cast the argument to "fn_printn()" to "u_char *", as that's the argument
type it expects.
2002-04-25 04:57:59 +00:00
guy
75e82d625d Convert some format pointers to "char *" from "u_char *", and some data
pointers from "char *" to "u_char *", to eliminate signed vs. unsigned
complaints from some compilers.

Don't use "++"s in initialization, to avoid warnings from the Sun C
compiler.
2002-04-25 04:54:02 +00:00
guy
4c51c6177b Make some "u_char *"s "char *"s, to eliminate signed vs. unsigned
complaints from some compilers.
2002-04-25 04:47:42 +00:00
guy
a7aa2961a4 Constify.
Make "payloadPtr" a "u_char *" rather than a "char *", to eliminate some
signed vs. unsigned complaints from some compilers.
2002-04-25 04:45:59 +00:00
guy
a6c4a09522 Make "ar_sha()", "ar_spa()", "ar_tha()", and "ar_tpa()" return "const
u_char *" rather than "const caddr_t", to avoid signed vs. unsigned
complaints from various compilers.
2002-04-25 04:37:31 +00:00
guy
8783e9fad6 "espsecret_xform" and "espsecret_key" are static to "print-esp.c"; don't
declare them in "interface.h".
2002-04-25 04:31:42 +00:00
guy
c70be1f7e1 Regenerate. 2002-04-25 04:26:45 +00:00
guy
0283ff899a "-A" flag to print packet data in ASCII, from Jørgen Thomsen
<jth@jth.net>.
2002-04-24 06:55:54 +00:00
guy
c51ad6a636 Nobody seemed to know why we preferred sigset() to sigaction(); the
latter is a POSIX standard, and you don't have to include some
additional header file to get it declared, so we'll prefer the it.
2002-04-24 06:34:18 +00:00
guy
2fd1118636 Get rid of casts of pointers-to-const to pointers-to-nonconst. 2002-04-24 06:27:05 +00:00
guy
b2cfabc32d Protect includes of <time.h> with "#ifdef TIME_WITH_SYS_TIME". 2002-04-20 09:42:57 +00:00