Commit Graph

17 Commits

Author SHA1 Message Date
itojun
fb75d3cd5a always use u_intXX_t for protocol format declaration. char/short/int may not
come with exact size.  while at it, correct signedness of ip/udp header field.
nuke most of the use of bitfield.
TODO: bitfield in namser.h
2000-10-03 02:54:54 +00:00
guy
cf53dc05f1 Get rid of includes of <netinet/in_systm.h>, and replace "n_short",
"n_long", and "n_time", defined in that file, with other types.
2000-09-29 04:58:33 +00:00
guy
536f512583 Add an "ip.h" header, to declare the IP stuff needed by dissectors, and
have dissectors include them rather than <netinet/ip.h> or
<netinet/ip_var.h>, if they actually need that stuff.

Put the declarations of the ICMP stuff directly into "print-icmp.c".

Remove all unnecessary includes of <netinet/ip*.h> files.

Copy the byte-order stuff from "nameser.h" into "tcp.h".
2000-09-23 08:54:24 +00:00
fenner
1c332d9947 Set frpcnt to the right value.
Submitted by:	Ravi Puvvala <ravi@iprg.nokia.com>
2000-08-17 18:38:24 +00:00
itojun
c9c414df15 style. s/switch(/switch (/. 2000-04-24 12:59:39 +00:00
fenner
ef2875607d Fix nybble-order bug: version is top, type is bottom.
Make sure to print "pim" in front of the PIM version.
Reduce ep to the end of the IP packet if we captured some padding.
2000-02-16 21:49:23 +00:00
itojun
5ad0c5d0f5 remove unnecessary header files. 2000-01-19 04:58:09 +00:00
itojun
d8b8acfc78 fix pim printing. type/version field is 4bit+4bit in 8bit.
- using u_int for this bitfield would make them occupy 32bits.
- use of char as bitfield type is illegal either
so I've avoided use of bitfield (use mask and shift).
2000-01-19 04:57:12 +00:00
fenner
46f2e90662 Updated PIMv2 parser:
- include RFC2117-style address formats
- parse more Hello options
- parse the Prune-Refresh packet type
- use standard truncation checks
- use EXTRACT_* macros to handle unaligned data access
- Don't print the netmask if it's all bits on
1999-12-14 16:58:03 +00:00
fenner
814765d31c Enhanced PIMv1 support.
Cisco Auto-RP support.
1999-11-22 07:25:26 +00:00
fenner
b9ac23ce92 Switch to config.h instead of passing defines in DEFS. 1999-11-21 09:36:43 +00:00
itojun
7ac4698a8b corrected offset check and calculation for the RP holdtime and
priority fields of Bootstraps.

(sync with KAME)
1999-11-17 14:58:13 +00:00
assar
bf782e5566 fixes to make ansi-pedantic compilers happier. no char types for bit fields and minor type correctness 1999-11-17 04:14:50 +00:00
itojun
b8037ee961 - enable build outside of the tree
- endian checks (use WORDS_BIGENDIAN)
- fallback def for IPPROTO_{AH,ESP}
- sa_len issues
- do not use bittypes.h, respect AC_LBL_CHECK_TYPES
1999-10-30 07:36:34 +00:00
itojun
c9d84d15c5 Bring in KAME IPv6 tcpdump. replaces esp/ah/isakmp decoder.
Hope I did not break anything.  Portability on IPv4-only node needs checking,
I'll do this very soon.  (sorry for rather jumbo commit)

XXx what is _FAVOR_BSD?
1999-10-30 05:11:06 +00:00
mcr
f6fa6a40d4 patches to help build on Linux 2.2 1999-10-17 21:37:10 +00:00
mcr
f555c163f9 Initial revision 1999-10-07 23:47:09 +00:00