X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fnx-match.c;h=9c4088f1a65e86e404594aa3b07621c62c9c8c4b;hb=de6c85b0a2e61105d288c23b718f6599761c2a2e;hp=4254747dfef73b1f63f8a4776b7fb922945c6eef;hpb=f5c45121cf59ef3099ba669c3590d844bedf53e9;p=openvswitch diff --git a/lib/nx-match.c b/lib/nx-match.c index 4254747d..9c4088f1 100644 --- a/lib/nx-match.c +++ b/lib/nx-match.c @@ -626,7 +626,8 @@ nx_put_raw(struct ofpbuf *b, bool oxm, const struct match *match, flow->arp_tha, match->wc.masks.arp_tha); } } - } else if (flow->dl_type == htons(ETH_TYPE_ARP)) { + } else if (flow->dl_type == htons(ETH_TYPE_ARP) || + flow->dl_type == htons(ETH_TYPE_RARP)) { /* ARP. */ if (match->wc.masks.nw_proto) { nxm_put_16(b, oxm ? OXM_OF_ARP_OP : NXM_OF_ARP_OP, @@ -643,7 +644,8 @@ nx_put_raw(struct ofpbuf *b, bool oxm, const struct match *match, } /* Tunnel ID. */ - nxm_put_64m(b, NXM_NX_TUN_ID, flow->tun_id, match->wc.masks.tun_id); + nxm_put_64m(b, NXM_NX_TUN_ID, flow->tunnel.tun_id, + match->wc.masks.tunnel.tun_id); /* Registers. */ for (i = 0; i < FLOW_N_REGS; i++) {