summaryrefslogtreecommitdiffstats
path: root/usr.sbin/tcpdump/print-ppp.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* - (void)printf() -> printf(); the cast adds clutter for little value.procter2020-01-241-3/+3
| | | | | | | | | | - 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
* support printing cdp over gre and pppdlg2019-04-051-1/+4
| | | | ok deraadt@ mpi@ sthen@
* output the data part of LCP Echo-Request and Echo-Reply packets.dlg2018-02-061-1/+19
|
* rework ppp, pptp, and gre parsing.dlg2018-02-061-410/+865
| | | | | | | | | | | | | | | | | | | | | | this started cos i was looking at pptp, which came out like this: 23:52:00.197893 call 24 seq 7: gre-ppp-payload (gre encap) 23:52:00.198930 call 1 seq 7 ack 7: gre-ppp-payload (gre encap) now it looks like this: 23:52:00.197893 20.0.0.2 > 20.0.0.1: pptp callid 24 seq 7: 17.1.1.122 > 40.0.0.2: icmp: echo request 23:52:00.198930 20.0.0.1 > 20.0.0.2: pptp callid 1 seq 7 ack 7: 40.0.0.2 > 17.1.1.122: icmp: echo reply the big improvement in ppp parsing is it stops parsing based on what the ppp headers say, rather than what bytes have been captured. this also adds parsing of EAP packets. DLT_PPP_SERIAL is now recognised and printed. gre now prints the outer addresses always, not just when it's encapsulated by ipv6 or -v is passed to tcpdump. ok sthen@
* make function match its prototype.espie2017-07-251-5/+2
| | | | okay deraadt@
* Remove remaining instances of the register keyword.mmcc2015-11-161-5/+5
| | | | ok deraadt@
* Replace <sys/param.h> with <limits.h> and other less dirty headers wherederaadt2015-01-161-2/+1
| | | | | | | | | 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)
* No use for <netinet/in_systm.h> nor <netinet/tcpip.h>.mpi2014-08-141-2/+1
|
* Print PPP-Max-Payload headers (for RFC 4638 PPPoe), part of a larger diffsthen2011-12-281-1/+5
| | | | from Matt Dainty. ok haesbaert@
* add a printer for IPV6CP (IPv6 Control Protocol); ok sthen@naddy2010-01-171-1/+67
|
* * remove a nonsensical print statement left over since antiquitynaddy2010-01-171-15/+62
| | | | | | | | ok yasuoka@ * add many missing truncation checks and don't output control characters to the terminal ok sthen@
* revert previous and allow reading the last element of the array; ok deraadt@naddy2010-01-131-2/+2
|
* fix read-one-beyond-of-array errors; ok sthen jsgderaadt2009-11-121-2/+2
|
* rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt2009-10-271-6/+1
| | | | | | | 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
* Fix -X output of ppp packets. Inspired by PR4624 and especially the patchclaudio2008-10-101-5/+3
| | | | | provided by canacar@. I just modified it a bit to skip the data link proto number as well. OK deraadt@
* trash $Header goo which is just annoying; 5595deraadt2007-10-071-2/+2
|
* Handle IPv6 on PPP printer, from Stuart Hendersoncanacar2007-07-091-2/+13
|
* do not inlcude ipx headershenning2007-06-041-5/+2
|
* Add a best effort mpls decoder. From Jason L. Wright.canacar2005-10-081-2/+9
| | | | | | | Since the encapsulated protocol information is not always available in the MPLS tag stack. The decoder attempts to guess the protocol. ok brad@
* add DLT_PPP_ETHER support plus some fixes for pppoe_if_print().brad2004-05-211-9/+118
| | | | | | ok canacar@ From: Marc Huber <pppoe at pro-bono-publico dot de>
* We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.millert2002-02-191-4/+2
|
* Compile with -Wall. Add $OpenBSD$. (jakob@ ok)ho2000-10-031-10/+10
|
* prettyjason2000-07-311-3/+3
|
* more info for pppoe stringsjason2000-06-201-5/+8
|
* Add support for dumping PPPoE Discovery and Session packetsjason2000-02-181-2/+189
|
* remove unused variablesbrad1999-09-161-22/+20
|
* indentderaadt1999-02-161-5/+4
|
* print ppp; from isdn4bsd package by Hellmuth Michaellis <mh@hcs.de>mickey1999-02-111-12/+471
|
* #if __STDC__ --> #ifdef __STDC__mickey1997-07-251-2/+2
|
* *** empty log message ***bitblt1996-12-121-6/+4
|
* it is 3.2 now.mickey1996-07-131-5/+7
|
* sync to latestderaadt1996-06-101-1/+1
|
* Updating to the latest LBL release.mickey1996-03-041-0/+1
| | | | Sun's SKIP support added.
* initial import of NetBSD treederaadt1995-10-181-0/+104