summaryrefslogtreecommitdiffstats
path: root/src/vnet/ip/ip46_cli.c
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2020-08-31 19:54:19 +0200
committerBenoƮt Ganne <bganne@cisco.com>2020-09-01 06:56:26 +0000
commit9a79a1ab931c3b5a7ae07d6f0fcfef7c4368a2c4 (patch)
treefc74fb440e5f7aaf64c6c66c0b8c3960c082f360 /src/vnet/ip/ip46_cli.c
parentedc816355a999df476074881ae8ed927cad88532 (diff)
ip: improve ip4_header_checksum_is_valid
It is cheaper to include checksum field in calculation and simply compare result with zero. Type: improvement Change-Id: I6f77632c0a4d2f2c632d044d3a5d2fcf2b5bac62 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vnet/ip/ip46_cli.c')
0 files changed, 0 insertions, 0 deletions