X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fofp-print.c;h=cafc665d7b10a8104e348e23bbb50e4060d932ee;hb=8087f5ff825cae3a699e5a60ca6dd0deb10fc8e5;hp=8654783a2079c884bfc312cd9ac523b558894287;hpb=c2f0373a8248d0c20d2f876d7f3bc61a400d9924;p=openvswitch diff --git a/lib/ofp-print.c b/lib/ofp-print.c index 8654783a..cafc665d 100644 --- a/lib/ofp-print.c +++ b/lib/ofp-print.c @@ -617,6 +617,8 @@ ofp10_match_to_string(const struct ofp10_match *om, int verbosity) } } else if (om->dl_type == htons(ETH_TYPE_ARP)) { ds_put_cstr(&f, "arp,"); + } else if (om->dl_type == htons(ETH_TYPE_RARP)){ + ds_put_cstr(&f, "rarp,"); } else { skip_type = false; } @@ -642,7 +644,8 @@ ofp10_match_to_string(const struct ofp10_match *om, int verbosity) (w & OFPFW10_NW_DST_MASK) >> OFPFW10_NW_DST_SHIFT, verbosity); if (!skip_proto) { - if (om->dl_type == htons(ETH_TYPE_ARP)) { + if (om->dl_type == htons(ETH_TYPE_ARP) || + om->dl_type == htons(ETH_TYPE_RARP)) { print_wild(&f, "arp_op=", w & OFPFW10_NW_PROTO, verbosity, "%u", om->nw_proto); } else {