summaryrefslogtreecommitdiff
path: root/print-macsec.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix a typoFrancois-Xavier Le Bail2020-08-101-1/+1
|
* macsec: Update ndo_protocol to lower case as in all other usesFrancois-Xavier Le Bail2020-08-101-1/+1
|
* Remove some trailing spaces/tabsFrancois-Xavier Le Bail2020-06-131-3/+3
| | | | | | Moreover: Remove some spaces before tabs. Remove extra blank line.
* macsec: include <config.h>, not "config.h".Guy Harris2020-05-281-1/+1
| | | | | | That fixes some cases where having an in-tree build and an out-of-tree build (e.g., an in-tree autotools build and an out-of-tree CMake build) gets the wrong config.h file.
* macsec, ether: clean up printing of encrypted and changed packets.Guy Harris2020-05-281-18/+47
| | | | | | | If the packet is encrypted or changed, so that we just print the payload as raw data, and we're not running with -e, print the MAC addresses (if any) and an indication that it's an 802.11AE packet, followed by the MACsec header.
* macsec: take ths short length into account when setting *lengthp and *caplenp.Guy Harris2020-05-281-12/+49
| | | | | | | | If the short length is *larger* than the updated length or caplen, report an error. If it's *smaller* than the updated length or caplen, update the length and caplen to the smaller short length.
* macsec: further cleanups.Guy Harris2020-05-271-2/+14
| | | | | | | | | Add checks to make sure the on-the-wire length isn't too small. (Not all versions of libpcap require that the on-the-wire length be greater than or equal to the captured length.) Make sure both lengths are large enough before subtracting the ICV length.
* macsec: more cleanups.Guy Harris2020-05-271-46/+28
| | | | | | Get rid of code that knows about Ethernet; this is 802.1AE, not 802.3AE. Get rid o some unused variables.
* Leave it up to the caller to process the data after the MACsec header.Guy Harris2020-05-271-15/+19
| | | Don't do it ourselves - it's not part of the MACsec header.
* Directly print out the header fields.Guy Harris2020-05-271-29/+13
| | | | Print the header fields directly; don't format them into a buffer and then print that.
* Fix typos and other syntax errors.Guy Harris2020-05-271-5/+6
|
* Fix to use the new ND_PRINT().Guy Harris2020-05-271-4/+4
| | | | It's a varargs macro, so it doesn't need the extra layer of parentheses, and it doesn't take `ndo` as an argument.
* There is no ether.h, so don't try to include it.Guy Harris2020-05-271-1/+0
|
* More GET_ macros.Guy Harris2020-05-271-3/+3
|
* Use nd_ types and GET_ macros.Guy Harris2020-05-271-27/+22
|
* Add support for MACsec (IEEE 802.1AE-2006)Sabrina Dubroca2017-05-181-0/+208