Lines Matching refs:htons
149 if (match->key->eth.type == htons(ETH_P_ARP) in match_validate()
150 || match->key->eth.type == htons(ETH_P_RARP)) { in match_validate()
152 if (match->mask && (match->mask->key.eth.type == htons(0xffff))) in match_validate()
158 if (match->mask && (match->mask->key.eth.type == htons(0xffff))) in match_validate()
162 if (match->key->eth.type == htons(ETH_P_IP)) { in match_validate()
164 if (match->mask && (match->mask->key.eth.type == htons(0xffff))) in match_validate()
197 if (match->key->eth.type == htons(ETH_P_IPV6)) { in match_validate()
199 if (match->mask && (match->mask->key.eth.type == htons(0xffff))) in match_validate()
230 htons(NDISC_NEIGHBOUR_SOLICITATION) || in match_validate()
231 match->key->tp.src == htons(NDISC_NEIGHBOUR_ADVERTISEMENT)) { in match_validate()
233 if (match->mask && (match->mask->key.tp.src == htons(0xff))) in match_validate()
928 if (!(tci & htons(VLAN_TAG_PRESENT))) { in ovs_key_from_nlattrs()
947 eth_type = htons(0xffff); in ovs_key_from_nlattrs()
957 SW_FLOW_KEY_PUT(match, eth.type, htons(ETH_P_802_2), is_mask); in ovs_key_from_nlattrs()
1026 if (!is_mask && (arp_key->arp_op & htons(0xff00))) { in ovs_key_from_nlattrs()
1095 htons(icmp_key->icmp_type), is_mask); in ovs_key_from_nlattrs()
1097 htons(icmp_key->icmp_code), is_mask); in ovs_key_from_nlattrs()
1106 htons(icmpv6_key->icmpv6_type), is_mask); in ovs_key_from_nlattrs()
1108 htons(icmpv6_key->icmpv6_code), is_mask); in ovs_key_from_nlattrs()
1197 (nla_get_be16(a[OVS_KEY_ATTR_ETHERTYPE]) == htons(ETH_P_8021Q))) { in ovs_nla_get_match()
1212 if (tci & htons(VLAN_TAG_PRESENT)) { in ovs_nla_get_match()
1267 SW_FLOW_KEY_PUT(match, eth.tci, htons(0xffff), true); in ovs_nla_get_match()
1283 if (eth_type == htons(0xffff)) { in ovs_nla_get_match()
1300 if (!(tci & htons(VLAN_TAG_PRESENT))) { in ovs_nla_get_match()
1466 if (swkey->eth.tci || swkey->eth.type == htons(ETH_P_8021Q)) { in __ovs_nla_put_key()
1468 eth_type = !is_mask ? htons(ETH_P_8021Q) : htons(0xffff); in __ovs_nla_put_key()
1478 if (swkey->eth.type == htons(ETH_P_802_2)) { in __ovs_nla_put_key()
1495 if (swkey->eth.type == htons(ETH_P_IP)) { in __ovs_nla_put_key()
1508 } else if (swkey->eth.type == htons(ETH_P_IPV6)) { in __ovs_nla_put_key()
1524 } else if (swkey->eth.type == htons(ETH_P_ARP) || in __ovs_nla_put_key()
1525 swkey->eth.type == htons(ETH_P_RARP)) { in __ovs_nla_put_key()
1535 arp_key->arp_op = htons(output->ip.proto); in __ovs_nla_put_key()
1548 if ((swkey->eth.type == htons(ETH_P_IP) || in __ovs_nla_put_key()
1549 swkey->eth.type == htons(ETH_P_IPV6)) && in __ovs_nla_put_key()
1582 } else if (swkey->eth.type == htons(ETH_P_IP) && in __ovs_nla_put_key()
1592 } else if (swkey->eth.type == htons(ETH_P_IPV6) && in __ovs_nla_put_key()
2054 if (eth_type != htons(ETH_P_IP)) in validate_set()
2075 if (eth_type != htons(ETH_P_IPV6)) in validate_set()
2103 if ((eth_type != htons(ETH_P_IP) && in validate_set()
2104 eth_type != htons(ETH_P_IPV6)) || in validate_set()
2111 if ((eth_type != htons(ETH_P_IP) && in validate_set()
2112 eth_type != htons(ETH_P_IPV6)) || in validate_set()
2124 if ((eth_type != htons(ETH_P_IP) && in validate_set()
2125 eth_type != htons(ETH_P_IPV6)) || in validate_set()
2268 vlan_tci = htons(0); in __ovs_nla_copy_actions()
2273 if (vlan->vlan_tpid != htons(ETH_P_8021Q)) in __ovs_nla_copy_actions()
2275 if (!(vlan->vlan_tci & htons(VLAN_TAG_PRESENT))) in __ovs_nla_copy_actions()
2291 if (vlan_tci & htons(VLAN_TAG_PRESENT) || in __ovs_nla_copy_actions()
2292 (eth_type != htons(ETH_P_IP) && in __ovs_nla_copy_actions()
2293 eth_type != htons(ETH_P_IPV6) && in __ovs_nla_copy_actions()
2294 eth_type != htons(ETH_P_ARP) && in __ovs_nla_copy_actions()
2295 eth_type != htons(ETH_P_RARP) && in __ovs_nla_copy_actions()
2303 if (vlan_tci & htons(VLAN_TAG_PRESENT) || in __ovs_nla_copy_actions()
2316 eth_type = htons(0); in __ovs_nla_copy_actions()