summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bgpctl/mrtparser.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Adjust code to the change of struct bgpd_addr in bgpd.claudio2021-01-181-5/+5
| | | | OK denis@
* Add a default case to subtype switch in the table v2 parser.claudio2019-07-031-1/+3
| | | | If a unknown subtype is encountered it is better to fail.
* Implement the bits and pieces that are needed to dump MRT_DUMP_V2_RIB_GENERICclaudio2019-06-281-109/+120
| | | | | messages and BGP MPLS VPNs. OK benno@
* Cleanup some spaces here as well. Again no binary change.claudio2019-06-171-8/+8
|
* Use struct bgpd_addr instead of a union of sockaddrs to store addressesclaudio2019-02-251-83/+90
| | | | | | in the mrt dump structs. This is more compatible with bgpctl since it uses struct bgpd_addr in most cases anyway. OK kn@
* Print the timestamp embedded in mrt files for update and status messages.claudio2018-07-201-3/+30
| | | | | | | Also implemented the extended precision format so microseconds are printed as well when available. The output is relative to the previous message and follows what kdump does. OK benno@
* Remove NULL-checks before free(). I think I've almost scrubbed themmcc2015-12-231-3/+2
| | | | entire tree of these...
* Implement the missing bits to parse the other MRT message types.claudio2015-10-241-12/+232
| | | | | Printing bgp messages is still missing lots but at least it is a start. I onced abused tcpdump's bgp protocol handler for this but that is an ugly hack.
* move the ignore-microsec-timestamp bit from mrt_parse to mrt_parse_dump_mphenning2015-01-091-5/+7
| | | | | fixes a coredump reachable via show mrt file From: Benjamin Baier <programmer at netzbasis dot de>, ok claudio
* Use reallocarray() throughout to spot multiplicative int overflow.deraadt2014-10-081-3/+3
| | | | ok henning benno
* fix some leaks in error pathsjsg2013-05-071-3/+5
| | | | ok claudio@
* Add a function to extract an address instead of copying the same code overclaudio2012-03-261-60/+57
| | | | and over again. Also allow the dump attr of struct mrt_parser to be NULL.
* Implement a better way to detect the encoding of the MP_REACH_NLRI attr.claudio2012-03-061-6/+8
| | | | | Check the addr length value of the RFC 6396 encoding to decide if it is one or not. While there try to make the comment more clear.
* Make it possible to parse MRT table dumps (all 3 formats) and displayclaudio2011-09-211-0/+971
them like the show rib / show rib detail output. It is also possible to filter the output. e.g. bgpctl show mrt file ./bview.20110914.1600 as 22512 204.209.0.0/16 all OK sthen@, put it in henning@