X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=lib%2Fflow.c;h=72ee14f2a087f33dc66b718116a8af4e621f843c;hb=abfec865566e6cce961cc8660de1ddfdc85dae5f;hp=490c46bc1770a6960771b877a928557df3591629;hpb=5136ce492c414f377f7be9ae32b259abb9f76580;p=openvswitch diff --git a/lib/flow.c b/lib/flow.c index 490c46bc..72ee14f2 100644 --- a/lib/flow.c +++ b/lib/flow.c @@ -231,8 +231,6 @@ flow_extract_stats(const flow_t *flow, struct ofpbuf *packet, memset(stats, '\0', sizeof(*stats)); if ((flow->dl_type == htons(ETH_TYPE_IP)) && packet->l4) { - struct ip_header *ip = packet->l3; - stats->ip_tos = ip->ip_tos; if ((flow->nw_proto == IP_TYPE_TCP) && packet->l7) { struct tcp_header *tcp = packet->l4; stats->tcp_flags = TCP_FLAGS(tcp->tcp_ctl);