]> The Tcpdump Group git mirrors - tcpdump/commit
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)
commitfedaa98ed0aa0fc4fdc2208f996804645dabde57
tree1b30cb8ce64c01418b44da16e5e1953c0e159bfe
parent63f720690fe8a087ef8fafb6fc3ba0c4a8b981de
LISP: Simplify some codes

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.
print-lisp.c