summaryrefslogtreecommitdiffstats
path: root/usr.sbin/tcpdump/print-bgp.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Huawei squatted on BGP Path Attribute 30, and Cisco squatted on 31. So,phessler2016-10-271-3/+4
| | | | | IANA moved the Large Communities attribute to 32, which is a nice pun on the problem it is solving.
* Teach tcpdump to decode bgp path attribute draft-ietf-idr-large-communityphessler2016-10-131-2/+19
| | | | | | Patch from Job Snijders, thanks! OK sthen@
* Add an explicit check for a malformed AS segment with (segment length 0),sthen2015-10-201-5/+8
| | | | | | | | avoiding division by zero when deciding whether it contains 2- or 4-byte ASNs. Refactor TCHECK calls to ensure proper coverage. From Kevin Reay, ok canacar with wording tweak (I used "malformed" rather than canacar's suggested "invalid size" or Kevin's original "empty").
* Replace <sys/param.h> with <limits.h> and other less dirty headers wherederaadt2015-01-161-5/+5
| | | | | | | | | 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)
* plen is unsignedderaadt2014-01-121-3/+3
|
* Fix a classical bug (= vs ==). OK stsp@ miod@claudio2012-02-191-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
* Make the BGP OPEN capability parser RFC 5492 compliant. While there addclaudio2009-09-081-49/+87
| | | | | additional checks to make sure the known capabilities are correctly encoded and not truncated. Help and OK sthen@
* Teach the printer about capabilities, new cease codes, end-of-rib marker,sthen2009-09-071-54/+324
| | | | and handle 32-bit ASN. ok claudio@
* In tcpdump some printf() had an additional \n at the end. Removingbluhm2009-01-291-3/+3
| | | | | | that new line restores the one-line -> one-packet semantics. ok hshoexer@, henning@, markus@
* trash $Header goo which is just annoying; 5595deraadt2007-10-071-2/+2
|
* Print communities in a nicer format and include a missing well-known one.claudio2007-06-141-2/+6
| | | | This is mostly from Stuart Henderson. OK canacar@
* Additional truncation checks, mostly from tcpdump.org,canacar2007-05-271-21/+68
| | | | | and remove some unused hlen assignments found by lint from Stuart Henderson, reviewed by me, ok henning@ claudio@
* Add a simple printer for IEEE 802.1AB LLDP, the Link Layer Discoveryreyk2006-03-281-24/+3
| | | | | | | | | Protocol. LLDP is used by some switch vendors as a replacement for the non-free Cizzco Discovery Protocol (CDP) due to some Cisco patentry... ok brad@
* add missing error check for decode_prefix4. ok deraadt@moritz2005-06-141-2/+8
|
* Fix a potential infinite loop that could be triggered by an invalid BGPcloder2005-04-271-8/+21
| | | | | packet. Partially from tcpdump.org, with additional paranoia added so that the problem is actually fixed. OK deraadt, otto
* Sync with tcpdump.orgho2002-09-031-79/+132
|
* More careful ntohs/ntohl etc. From Gunnar Lindberg <lindberg@cdg.chalmers.se>ho2000-10-031-26/+45
|
* INET6jakob2000-04-261-3/+3
| | | | | | DHCP/BOOTP tcp & udp checksum detection numerous bugfixes
* BGP support (from KAME/WIDE). INET6 parts not done yet.jakob2000-01-161-0/+720