lib/match.c
/* If 'match' does not match on any packet type, make it match on Ethernet
 * packets (the default packet type, as specified by OpenFlow). */
If 'match' does not match on any packet type, make it match on Ethernet
packets (the default packet type, as specified by OpenFlow).
If ' match ' does not match on any packet type make it match on Ethernet packets ( the default packet type as specified by OpenFlow ) .
void
match_set_default_packet_type(struct match *match)
{
    if (!match->wc.masks.packet_type) {
        match_set_packet_type(match, htonl(PT_ETH));
    }
}
void match_set_default_packet_type ( struct match * match ) { if ( ! match -> wc . masks . packet_type ) { match_set_packet_type ( match , htonl ( PT_ETH ) ) ; } }
If 'match' does not match on any packet type, make it match on Ethernet
 packets (the default packet type, as specified by OpenFlow).
If ' match ' does not match on any packet type make it match on Ethernet packets ( the default packet type as specified by OpenFlow ) .