OpenBSD CVS

CVS log for src/usr.sbin/tcpdump/print-icmp6.c


[BACK] Up to [local] / src / usr.sbin / tcpdump

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.25 / (download) - annotate - [select for diffs], Wed Dec 28 21:30:19 2022 UTC (17 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, HEAD
Changes since 1.24: +5 -5 lines
Diff to previous 1.24 (colored)

spelling fixes; from paul tagliamonte
any parts of his diff not taken are noted on tech

Revision 1.24 / (download) - annotate - [select for diffs], Wed Jan 5 05:33:14 2022 UTC (2 years, 4 months ago) by dlg
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1
Changes since 1.23: +1 -7 lines
Diff to previous 1.23 (colored)

fix some -Wunused-but-set-variable stuff.

Revision 1.23 / (download) - annotate - [select for diffs], Fri Jan 24 22:46:36 2020 UTC (4 years, 4 months ago) by procter
Branch: MAIN
CVS Tags: OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7
Changes since 1.22: +43 -42 lines
Diff to previous 1.22 (colored)

- (void)printf() -> printf(); the cast adds clutter for little value.
- fprintf(stdout, ...) -> printf()
- fputs(x, stdout) -> printf(); for consistency.
fputs is twice as fast on atom x5-Z8300@1.44GHz but Amdahl sees a pure printf
tcpdump only 2% slower than a pure fputs (for constant strings) tcpdump
to /dev/null across a 20MB/~170k packet pcap file.

ok dlg@ for fputs and ok tedu@ krw@ deraadt@ a2k19 for the rest

Revision 1.22 / (download) - annotate - [select for diffs], Mon Oct 22 16:12:45 2018 UTC (5 years, 7 months ago) by kn
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5
Changes since 1.21: +1 -6 lines
Diff to previous 1.21 (colored)

Remove #ifdef INET6

There's not reason to build without IPv6 support, `-U INET6' builds were
broken anyway.

Fix an empty redefine for IPPROTO_IPV6 in print-ip.c while here.

No object change on amd64 and sparc64 with clang, gcc compiles differently
but behaviour stays the same.

OK denis deraadt

Revision 1.21 / (download) - annotate - [select for diffs], Thu Jul 28 13:05:52 2016 UTC (7 years, 10 months ago) by bluhm
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.20: +2 -2 lines
Diff to previous 1.20 (colored)

Use long labs(3) for pointer arithmetic.
Found by David Hill with clang.

Revision 1.20 / (download) - annotate - [select for diffs], Sat May 7 19:36:45 2016 UTC (8 years ago) by jca
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0
Changes since 1.19: +41 -2 lines
Diff to previous 1.19 (colored)

Print RA Route Information prefix, preference and lifetime.

ok mpi@

Revision 1.19 / (download) - annotate - [select for diffs], Fri May 6 17:16:24 2016 UTC (8 years ago) by jca
Branch: MAIN
Changes since 1.18: +19 -3 lines
Diff to previous 1.18 (colored)

In verbose mode, print the router preference contained in RAs.

"pref" keyword taken from tcpdump.org.

ok mpi@ sthen@ deraadt@

Revision 1.18 / (download) - annotate - [select for diffs], Tue Mar 15 05:03:11 2016 UTC (8 years, 2 months ago) by mmcc
Branch: MAIN
Changes since 1.17: +2 -4 lines
Diff to previous 1.17 (colored)

 o remove legacy code that defines abs(3) if it isn't available

 o inline an ugly and potentially risky macro of the form:

		#define x if (a) b; else

 o fix a >21 y.o. bug resulting from someone writing:

		puts("[nothing to parse], stdout");

   when they meant:

		fputs("[nothing to parse]", stdout);

ok canacar@

Revision 1.17 / (download) - annotate - [select for diffs], Mon Nov 16 00:16:39 2015 UTC (8 years, 6 months ago) by mmcc
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.16: +24 -24 lines
Diff to previous 1.16 (colored)

Remove remaining instances of the register keyword.

ok deraadt@

Revision 1.16 / (download) - annotate - [select for diffs], Mon Nov 2 17:48:33 2015 UTC (8 years, 7 months ago) by sthen
Branch: MAIN
Changes since 1.15: +31 -2 lines
Diff to previous 1.15 (colored)

Print RDNSS nameserver addresses, and print option names for some other
known options that we don't otherwise decode yet (DNSSL, route information).
ok mpi@

Revision 1.15 / (download) - annotate - [select for diffs], Fri Jan 16 06:40:21 2015 UTC (9 years, 4 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.14: +1 -2 lines
Diff to previous 1.14 (colored)

Replace <sys/param.h> with <limits.h> and other less dirty headers where
possible.  Annotate <sys/param.h> lines with their current reasons.  Switch
to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc.  Change
MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where
sensible to avoid pulling in the pollution.  These are the files confirmed
through binary verification.
ok guenther, millert, doug (helped with the verification protocol)

Revision 1.14 / (download) - annotate - [select for diffs], Thu Aug 14 12:44:44 2014 UTC (9 years, 9 months ago) by mpi
Branch: MAIN
Changes since 1.13: +1 -2 lines
Diff to previous 1.13 (colored)

No use for <netinet/in_systm.h> nor <netinet/tcpip.h>.

Revision 1.13 / (download) - annotate - [select for diffs], Fri Jun 20 04:04:52 2014 UTC (9 years, 11 months ago) by lteo
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.12: +8 -5 lines
Diff to previous 1.12 (colored)

Instead of showing the difference between a bad checksum and a good
checksum, make tcpdump (with the -v flag) show the actual bad checksum
within the IP/protocol header itself and what the good checksum should
be, e.g. "[bad tcp cksum abcd! -> d1e6]"

This change applies to IP, TCP (over IPv4 and IPv6), UDP (over IPv4 and
IPv6), ICMP, and ICMPv6.  This commit also fixes several inconsistencies
in the way bad checksums were displayed for these protocols.

Tested on amd64, i386, and macppc.

ok henning@

Revision 1.12 / (download) - annotate - [select for diffs], Sat Jan 11 04:41:08 2014 UTC (10 years, 4 months ago) by lteo
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.11: +42 -1 lines
Diff to previous 1.11 (colored)

Let tcpdump detect bad ICMPv6 checksums with the -v flag.

Tested on amd64, i386, loongson, and macppc.

OK florian@

Revision 1.11 / (download) - annotate - [select for diffs], Thu Oct 24 09:33:22 2013 UTC (10 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.10: +4 -4 lines
Diff to previous 1.10 (colored)

These two programs got fooled by the KAME/NRL split and need type repair.
They do not indicate a problem with the reduction of namespace export,
but got suckered into the 1999 plan.
ok benno

Revision 1.10 / (download) - annotate - [select for diffs], Sat Sep 17 19:56:19 2011 UTC (12 years, 8 months ago) by bluhm
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1
Changes since 1.9: +8 -4 lines
Diff to previous 1.9 (colored)

Make tcpdump -v print the id and seq of icmp6 echo packets.
ok claudio naddy

Revision 1.9 / (download) - annotate - [select for diffs], Sat Sep 17 15:59:44 2011 UTC (12 years, 8 months ago) by naddy
Branch: MAIN
Changes since 1.8: +5 -5 lines
Diff to previous 1.8 (colored)

access a 32-bit field as u_int32_t, not as u_long; ok bluhm@

Revision 1.8 / (download) - annotate - [select for diffs], Tue Apr 6 16:01:57 2010 UTC (14 years, 1 month ago) by jsg
Branch: MAIN
CVS Tags: OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.7: +193 -3 lines
Diff to previous 1.7 (colored)

Add support for decoding MLDv2 initially from tcpdump.org via FreeBSD,
cleaned up to be less gross after some suggestions from stsp.

ok stsp@

Revision 1.7 / (download) - annotate - [select for diffs], Tue Oct 27 23:59:55 2009 UTC (14 years, 7 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.6: +1 -6 lines
Diff to previous 1.6 (colored)

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
unmaintainable).  these days, people use source.  these id's do not provide
any benefit, and do hurt the small install media
(the 33,000 line diff is essentially mechanical)
ok with the idea millert, ok dms

Revision 1.6 / (download) - annotate - [select for diffs], Mon May 25 10:53:35 2009 UTC (15 years ago) by sthen
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6
Changes since 1.5: +2 -1 lines
Diff to previous 1.5 (colored)

add a missing check for truncated dport in the returned UDP header for
ICMP_UNREACH_PORT. from Peter J. Philipp, ok jsing@. Closes system/6149.

Revision 1.5 / (download) - annotate - [select for diffs], Thu Jan 29 09:46:32 2009 UTC (15 years, 4 months ago) by bluhm
Branch: MAIN
CVS Tags: OPENBSD_4_5_BASE, OPENBSD_4_5
Changes since 1.4: +5 -5 lines
Diff to previous 1.4 (colored)

In tcpdump some printf() had an additional \n at the end.  Removing
that new line restores the one-line -> one-packet semantics.

ok hshoexer@, henning@, markus@

Revision 1.4 / (download) - annotate - [select for diffs], Thu Nov 28 11:05:06 2002 UTC (21 years, 6 months ago) by dhartmei
Branch: MAIN
CVS Tags: OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0, OPENBSD_3_9_BASE, OPENBSD_3_9, OPENBSD_3_8_BASE, OPENBSD_3_8, OPENBSD_3_7_BASE, OPENBSD_3_7, OPENBSD_3_6_BASE, OPENBSD_3_6, OPENBSD_3_5_BASE, OPENBSD_3_5, OPENBSD_3_4_BASE, OPENBSD_3_4, OPENBSD_3_3_BASE, OPENBSD_3_3
Changes since 1.3: +5 -1 lines
Diff to previous 1.3 (colored)

Check for invalid ICMP6 option length, ok itojun@

Revision 1.3 / (download) - annotate - [select for diffs], Thu May 30 18:36:42 2002 UTC (22 years ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_2_BASE, OPENBSD_3_2
Changes since 1.2: +2 -2 lines
Diff to previous 1.2 (colored)

typo

Revision 1.2 / (download) - annotate - [select for diffs], Mon Jun 4 03:51:53 2001 UTC (23 years ago) by pvalchev
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE, OPENBSD_3_1, OPENBSD_3_0_BASE, OPENBSD_3_0
Changes since 1.1: +2 -2 lines
Diff to previous 1.1 (colored)

Spelling: preffered -> preferred

Revision 1.1 / (download) - annotate - [select for diffs], Wed Apr 26 21:35:40 2000 UTC (24 years, 1 month ago) by jakob
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE, OPENBSD_2_9, OPENBSD_2_8_BASE, OPENBSD_2_8, OPENBSD_2_7_BASE, OPENBSD_2_7

INET6
DHCP/BOOTP
tcp & udp checksum detection
numerous bugfixes

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.