Adding checksum to ICMP packets created by OVS for testing.
[sliver-openvswitch.git] / lib / flow.c
index 59158ac..5d2f33c 100644 (file)
@@ -1066,6 +1066,7 @@ flow_compose(struct ofpbuf *b, const struct flow *flow)
                 b->l4 = icmp = ofpbuf_put_zeros(b, sizeof *icmp);
                 icmp->icmp_type = ntohs(flow->tp_src);
                 icmp->icmp_code = ntohs(flow->tp_dst);
+                icmp->icmp_csum = csum(icmp, ICMP_HEADER_LEN);
             }
         }