]> The Tcpdump Group git mirrors - tcpdump/commitdiff
LISP: Simplify some codes
authorFrancois-Xavier Le Bail <[email protected]>
Sun, 25 Feb 2024 08:32:10 +0000 (09:32 +0100)
committerFrancois-Xavier Le Bail <[email protected]>
Sun, 25 Feb 2024 08:51:32 +0000 (09:51 +0100)
Avoid using 'packet_iterator + packet_offset' and loc_ip_pointer,
because they have the same value at the time they are used.

Remove the loc_ip_pointer variable and it's initialization.

This change shows better that a ND_TCHECK_4() is useless because
GET_IPADDR_STRING() is used. Remove it.
This change shows better that a ND_TCHECK_16() is useless because
GET_IP6ADDR_STRING() is used. Remove it.


No differences found