projects
/
cascardo
/
ovs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Explain initialization when using csum()
[cascardo/ovs.git]
/
lib
/
netdev-native-tnl.c
diff --git
a/lib/netdev-native-tnl.c
b/lib/netdev-native-tnl.c
index
15975ad
..
ce2582f
100644
(file)
--- a/
lib/netdev-native-tnl.c
+++ b/
lib/netdev-native-tnl.c
@@
-273,6
+273,7
@@
netdev_tnl_ip_build_header(struct ovs_action_push_tnl *data,
ip->ip_frag_off = (params->flow->tunnel.flags & FLOW_TNL_F_DONT_FRAGMENT) ?
htons(IP_DF) : 0;
+ /* Checksum has already been zeroed by eth_build_header. */
ip->ip_csum = csum(ip, sizeof *ip);
data->header_len += IP_HEADER_LEN;