Commit Graph

138 Commits

Author SHA1 Message Date
itojun c025861aba correct LBL_ALIGN behavior, sync with tcpdump.org.
enable LBL_ALIGN codepath to use byte-by-byte fetch in extract.h.
should correct PR 18688/18398.
2002-10-18 23:13:57 +00:00
lukem 17d72c8a6b use NETBSDSRCDIR as appropriate 2002-09-18 03:54:26 +00:00
itojun 83d7d548f9 sync with 3.7.1 (2002/5/31) 2002-05-31 09:45:44 +00:00
itojun 771eefe1da no need to have tcpdump.8 in CLEANFILES 2002-02-18 09:45:11 +00:00
itojun d52aa152c7 sync with 3.7.1 2002-02-18 09:37:05 +00:00
itojun 074a5eb23b remove LBL_ALIGN. the code leaks memory severely, and makes packet dump
incorrect.
2001-11-15 07:39:25 +00:00
itojun 9525a1af56 define LBL_ALIGN, to avoid unaligned access on align-picky arch.
suggested by Manuel Bouyer
2001-10-22 09:24:27 +00:00
itojun 230b44a44a switch to use src/dist/tcpdump. source code has been checked and the new
tree organization should give the same (or more) decoding functionalities.
2001-06-25 19:41:19 +00:00
itojun 993a4807cb copyright clarification. sync with tcpdump.org.
based on communiation with the author, Jeffrey Mogul <mogul@pa.dec.com>.
by Jakob Schlyter <jakob@openbsd.org>
2001-06-15 02:07:06 +00:00
itojun 8d42ab239c remove extra \n even more. sync with tcpdump.org 2001-05-27 04:57:19 +00:00
itojun 46636f1249 remove too many \n for icmp6 too big 2001-05-26 12:31:56 +00:00
assar 0eaf453fc3 handle badly formattted access RPC
should fix PR bin/12765
2001-05-15 05:59:13 +00:00
itojun 30901383d9 correct ip6 option header chasing. sync with tcpdump.org. 2001-05-09 02:50:02 +00:00
tron 90eb7ba34c Add support for decoding PPPoE packages on an ethernet interface. 2001-05-06 07:57:08 +00:00
martin fa10c3107d Make tcpdump work with the current pppoe code.
Will be revisited when a generic PPP sheme is implemented.
2001-04-29 10:27:03 +00:00
martin bdbf64075a Add basic support for PPPoE interfaces. 2001-04-14 12:31:34 +00:00
kim 47ba06c69f Fix man page section for networks(5). 2001-04-09 02:21:13 +00:00
wiz 14dbdf5518 Negative exit code cleanup: Replace exit(-x) with exit(x).
As seen on tech-userlevel.
2001-04-06 11:13:45 +00:00
wiz a519e87244 This gets installed as tcpdump.8, so make it's section 8 (was 1). 2001-04-02 18:34:23 +00:00
itojun f57618a4b7 sync cisco hdlc packet printer with tcpdump.org. 2001-03-01 15:13:31 +00:00
itojun aa13ada450 print multiple question section. improve TSIG printing.
sync with tcpdump.org.
2001-02-21 05:59:25 +00:00
joda 7478bd5e34 convert parameters to host byte order before printing them 2001-02-20 19:18:32 +00:00
enami 8eaad363dc s/preffered/preferred/ in message. 2001-02-19 09:53:50 +00:00
itojun ca89dc0998 minimize diffs to tcpdump.org tree, even if cosmetic.
changes include:
- do not chase header if ip/ip6 datagram is framgented, and it is not the
  first fragment
- u_short -> u_int16_t
- buffer boundary checks, including sprintf -> snprintf
- cleanup truncated packet cases
- pull tcpdump.org enhancements/corrections for RIP, IPv6 options, ICMPv6,
  OSPFv3, IPv4 options, BGP

there are a lot of local/conflicting changes.  we'd gradually decrease
# of diffs by synchronizing both ends, and then move to src/dist/tcpdump
and reachover makefile.
2001-01-28 10:05:05 +00:00
itojun 3915684b18 remove extra space after typename. sync with tcpdump.org 2001-01-28 07:56:56 +00:00
itojun b3d0e180ed print A6, DNAME and bit string label correctly.
sync with tcpdump.org.
2001-01-28 07:51:33 +00:00
kleink f46c3b8662 Teach tcpdump(8) to dump VRRP. 2001-01-19 09:10:13 +00:00
enami f93a8a97b8 Parse nfs file handle better on NetBSD. On little endian machine,
it was completely broken.  On big endian machine, it was detected as SUNOS4
and thus 32bit dev_t isn't handled properly.

XXX: The auto detect code should be integrated more cleverly if possible.
XXX: In addition, it is better if there is a way to specify server os type.
2001-01-19 01:28:50 +00:00
itojun 6931d9c234 do not decode non-first IPv6 fragment. sync with tcpdump.org code 2001-01-08 16:42:29 +00:00
lukem 2537f730fa always use %lld for INT64_FORMAT (rather than %ld on __alpha__ and __sparc_v9__
and %qd on everything else), and always cast the vars to (long long).
2001-01-05 03:21:53 +00:00
itojun 54e4101852 synchronize with latest tcpdump.org tree 2000-12-29 02:38:23 +00:00
thorpej 7490542205 Document the name forms of the ICMP and TCP field offsets/values
recently added to libpcap's compiler.
2000-12-28 22:43:39 +00:00
itojun bfef63a365 do not print "PIM" twice 2000-11-08 07:23:54 +00:00
he 70a24dc7c0 Change from sprintf() to snprintf() where we may print externally
supplied data of unknown length.
Changes adapted from FreeBSD-SA-00:61.
2000-10-31 12:17:07 +00:00
is d8302e2d73 More format string cleanups by sommerfeld. 2000-10-11 20:23:46 +00:00
itojun 70875bf54c add new cipher DOI # including AES.
add CR payload decoder.  fix ID payload decode.
have __attribute__((__packed__)) for align picky arch
(tcpdump.org code has better fix with lots of memcpy, however,
tcpdump.org version needs more verfication).

basically, sync with kame tree.
2000-10-04 03:53:24 +00:00
fvdl 63d43d2078 Fix 2 cases of wrong checks for sufficient bytes, causing output
to be not as verbose as it should have been.
2000-08-19 15:59:43 +00:00
itojun afa5315364 correct typo in #define. ICMP6_NI_SUCESS -> SUCCESS (notice missing C).
sync with kame.
2000-08-03 14:31:04 +00:00
itojun 058e85bfc6 we shouldn't use "(ip + 1)" to detect intermediate headers (AH/ESP).
we should use ip_p == IPPROTO_TCP/UDP.
2000-08-01 17:39:46 +00:00
itojun bec9b9854d IPv6 UDP header checksum. 2000-08-01 17:35:18 +00:00
itojun 1c0969bf27 use of ip_p is irrelevant in tcp_cksum, as we may have AH/ESP inbetween. 2000-08-01 17:34:00 +00:00
itojun d9bba2ca98 some merge from tcpdump.org code.
- print-telnet.c: do not print control character
- print-icmp6.c: improve icmp6 node information printing
  (we need to at least meet our kernel code!)
- update dhcp6 printing to 15 draft (14 and 15 are totally incompatible)
- add safeputc() and safeputs() into util.c
2000-08-01 17:29:47 +00:00
itojun 1174b9a1a9 implement tcp6 pseudo header cksum. 2000-08-01 17:24:40 +00:00
ad 93508ea1b3 Print a space after printing 802.1Q header information. 2000-07-26 10:48:15 +00:00
ad a73283ac00 Dump 802.1Q encapsulated packets. From tcpdump.org. 2000-07-24 15:32:43 +00:00
mycroft fddf849c29 Make this build for sparc64. 2000-07-23 23:07:39 +00:00
enami 0eca5025a3 Fix a typo which causes coredump or wrong output when dumping NFS traffic. 2000-07-16 12:34:06 +00:00
itojun b2ffcc0e07 IPv6 support for sunrpc. from tcpdump.org. 2000-06-10 05:39:16 +00:00
itojun 68706c1c57 support NFS over IPv6. from tcpdump.org 2000-06-10 05:27:27 +00:00
matt a8adcb322c Don't let an llc be dumped twice. 2000-05-28 01:25:20 +00:00