summaryrefslogtreecommitdiffstats
path: root/usr.sbin/tcpdump/print-radius.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* - (void)printf() -> printf(); the cast adds clutter for little value.procter2020-01-241-18/+18
| | | | | | | | | | - 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
* Rework UDP parsing, particularly around IP addresses.dlg2018-07-061-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | This originally started as trying to put a consistent space between the UDP header information and the payload parsing, but while doing that I noticed inconsistent IPv4 vs IPv6 handling. Apart from the default "srcip.srcport > dstip.dstpor" output, all the other places that IP addresses were printed assumed IPv4. It looks like it is possible that udp_print() can be called without an IP header, which made these blind IPv4 prints turn into NULL derefs. This fixes the problem above by only having a single place that prints the addresses out, and makes sure to get the difference between IPv4, IPv6 and no IP correct. This changes how the checksum is calculated. It incrementally builds the UDP checksum by feeding the IPv4 and v6 addresses in separately, then using common code for the rest of the pseudo header and actual payload. Lastly, this does make printing the space between the UDP header and its payload consistent. The UDP code is now responsible for adding a space after itself so the payload parsers don't have to. They got it wrong in some cases anyway, so this should be a lot more uniform. help and ok sthen@
* Remove remaining instances of the register keyword.mmcc2015-11-161-2/+2
| | | | ok deraadt@
* hex array of bytes should be printed fixed-form; from Jihyun Yuderaadt2015-09-061-2/+2
|
* Use safeputs() for radius, some decodes are likely to have unprintablesthen2012-01-281-2/+3
| | | | characters. ok mikeb@
* clean an XXX and don't print preceding ',' on first attribute; okstevesk2006-05-231-4/+7
| | | | canacar@
* typos from Jonathon Gray;jmc2003-11-081-2/+2
|
* Avoid segv with some radius traffic. Fixes PR# 2135.ho2001-10-241-2/+2
|
* BSD license; Thomas H. Ptacekjakob2001-08-211-1/+28
|
* Compile with -Wall. Add $OpenBSD$. (jakob@ ok)ho2000-10-031-29/+33
|
* remove unused variablesbrad1999-09-161-3/+0
|
* fix #includesderaadt1997-09-111-2/+3
|
* Add RADIUS printing support. Blech.tqbf1997-07-311-0/+258