summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bgpctl/mrtparser.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 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@