]> The Tcpdump Group git mirrors - tcpdump/commit
fix printing of infinite lifetime in ICMPv6
authorDenis Ovsienko <[email protected]>
Thu, 21 Jun 2012 13:14:55 +0000 (17:14 +0400)
committerDenis Ovsienko <[email protected]>
Thu, 21 Jun 2012 13:14:55 +0000 (17:14 +0400)
commite2eff503d6c8f79013a1bc4dc2b651a0ef3a2dae
tree027ec76bef1c2044e6c2a4ca22b47ebb981b8907
parentbd26848018b9c8399dcc7962c7a52f5f87c57079
fix printing of infinite lifetime in ICMPv6

icmp6_opt_print() in the case of ND_OPT_PREFIX_INFORMATION always
appended "s" (seconds) to the returned string result of get_lifetime(),
which could be either a printed number or the "infinite" word. This
change leaves it up to get_lifetime() to decide if "s" is necessary.
This also improves the ND_OPT_ROUTE_INFO case, where route information
lifetime has the same type and semantics.
print-icmp6.c