]> The Tcpdump Group git mirrors - tcpdump/commit
The third argument to linkaddr_string is one of the LINKADDR_ enums.
authorGuy Harris <[email protected]>
Wed, 25 Dec 2019 01:47:23 +0000 (17:47 -0800)
committerGuy Harris <[email protected]>
Wed, 25 Dec 2019 01:47:23 +0000 (17:47 -0800)
commita8c33a5850cd9d2f39e56c06b645c283225d78c4
treec7e5ec3b7f2a80463fdcb06d703210161765a19e
parent35fef089f33ad4c2fd16ef9c175313f6536193fb
The third argument to linkaddr_string is one of the LINKADDR_ enums.

It's *not* just a number like 0.  That *happens* to work, because, even
though LINKADDR_ETHER is currently 0, linkaddr_string() handles link
addresses of type LINKADDR_ETHER with a length other than 6 octets as
just a collection of octets, but we shouldn't *rely* on that.
print-ahcp.c
print-geonet.c