Lines Matching refs:htons
192 if (match->key->eth.type == htons(ETH_P_ARP) in match_validate()
193 || match->key->eth.type == htons(ETH_P_RARP)) { in match_validate()
195 if (match->mask && (match->mask->key.eth.type == htons(0xffff))) in match_validate()
201 if (match->mask && (match->mask->key.eth.type == htons(0xffff))) in match_validate()
205 if (match->key->eth.type == htons(ETH_P_IP)) { in match_validate()
207 if (match->mask && match->mask->key.eth.type == htons(0xffff)) { in match_validate()
242 if (match->key->eth.type == htons(ETH_P_IPV6)) { in match_validate()
244 if (match->mask && match->mask->key.eth.type == htons(0xffff)) { in match_validate()
277 htons(NDISC_NEIGHBOUR_SOLICITATION) || in match_validate()
278 match->key->tp.src == htons(NDISC_NEIGHBOUR_ADVERTISEMENT)) { in match_validate()
286 if (match->mask && (match->mask->key.tp.src == htons(0xff))) in match_validate()
293 if (match->key->eth.type == htons(ETH_P_NSH)) { in match_validate()
296 match->mask->key.eth.type == htons(0xffff)) { in match_validate()
1033 if (!(tci & htons(VLAN_CFI_MASK))) { in validate_vlan_from_nlattrs()
1056 htons(VLAN_CFI_MASK)); in validate_vlan_mask_from_nlattrs()
1058 htons(VLAN_CFI_MASK)); in validate_vlan_mask_from_nlattrs()
1077 if (tpid != htons(0xffff)) { in validate_vlan_mask_from_nlattrs()
1082 if (!(tci & htons(VLAN_CFI_MASK))) { in validate_vlan_mask_from_nlattrs()
1138 encap_valid = !!(match->key->eth.vlan.tci & htons(VLAN_CFI_MASK)); in parse_vlan_from_nlattrs()
1158 eth_type = htons(0xffff); in parse_eth_type_from_nlattrs()
1557 SW_FLOW_KEY_PUT(match, eth.type, htons(ETH_P_802_2), is_mask); in ovs_key_from_nlattrs()
1641 if (!is_mask && (arp_key->arp_op & htons(0xff00))) { in ovs_key_from_nlattrs()
1732 htons(icmp_key->icmp_type), is_mask); in ovs_key_from_nlattrs()
1734 htons(icmp_key->icmp_code), is_mask); in ovs_key_from_nlattrs()
1743 htons(icmpv6_key->icmpv6_type), is_mask); in ovs_key_from_nlattrs()
1745 htons(icmpv6_key->icmpv6_code), is_mask); in ovs_key_from_nlattrs()
1870 SW_FLOW_KEY_PUT(match, eth.vlan.tci, htons(0xffff), true); in ovs_nla_get_match()
1871 SW_FLOW_KEY_PUT(match, eth.cvlan.tci, htons(0xffff), true); in ovs_nla_get_match()
1988 __be16 eth_type = !is_mask ? vh->tpid : htons(0xffff); in ovs_nla_put_vlan()
2098 if (swkey->eth.type == htons(ETH_P_802_2)) { in __ovs_nla_put_key()
2124 if (swkey->eth.type == htons(ETH_P_IP)) { in __ovs_nla_put_key()
2137 } else if (swkey->eth.type == htons(ETH_P_IPV6)) { in __ovs_nla_put_key()
2161 } else if (swkey->eth.type == htons(ETH_P_NSH)) { in __ovs_nla_put_key()
2164 } else if (swkey->eth.type == htons(ETH_P_ARP) || in __ovs_nla_put_key()
2165 swkey->eth.type == htons(ETH_P_RARP)) { in __ovs_nla_put_key()
2175 arp_key->arp_op = htons(output->ip.proto); in __ovs_nla_put_key()
2193 if ((swkey->eth.type == htons(ETH_P_IP) || in __ovs_nla_put_key()
2194 swkey->eth.type == htons(ETH_P_IPV6)) && in __ovs_nla_put_key()
2227 } else if (swkey->eth.type == htons(ETH_P_IP) && in __ovs_nla_put_key()
2237 } else if (swkey->eth.type == htons(ETH_P_IPV6) && in __ovs_nla_put_key()
2249 if (swkey->tp.src == htons(NDISC_NEIGHBOUR_SOLICITATION) || in __ovs_nla_put_key()
2250 swkey->tp.src == htons(NDISC_NEIGHBOUR_ADVERTISEMENT)) { in __ovs_nla_put_key()
2933 if (eth_type != htons(ETH_P_IP)) in validate_set()
2956 if (eth_type != htons(ETH_P_IPV6)) in validate_set()
2984 if ((eth_type != htons(ETH_P_IP) && in validate_set()
2985 eth_type != htons(ETH_P_IPV6)) || in validate_set()
2992 if ((eth_type != htons(ETH_P_IP) && in validate_set()
2993 eth_type != htons(ETH_P_IPV6)) || in validate_set()
3005 if ((eth_type != htons(ETH_P_IP) && in validate_set()
3006 eth_type != htons(ETH_P_IPV6)) || in validate_set()
3013 if (eth_type != htons(ETH_P_NSH)) in validate_set()
3291 vlan_tci = htons(0); in __ovs_nla_copy_actions()
3300 if (!(vlan->vlan_tci & htons(VLAN_CFI_MASK))) in __ovs_nla_copy_actions()
3315 if (vlan_tci & htons(VLAN_CFI_MASK) || in __ovs_nla_copy_actions()
3316 (eth_type != htons(ETH_P_IP) && in __ovs_nla_copy_actions()
3317 eth_type != htons(ETH_P_IPV6) && in __ovs_nla_copy_actions()
3318 eth_type != htons(ETH_P_ARP) && in __ovs_nla_copy_actions()
3319 eth_type != htons(ETH_P_RARP) && in __ovs_nla_copy_actions()
3343 if (vlan_tci & htons(VLAN_CFI_MASK) || in __ovs_nla_copy_actions()
3344 (eth_type != htons(ETH_P_IP) && in __ovs_nla_copy_actions()
3345 eth_type != htons(ETH_P_IPV6) && in __ovs_nla_copy_actions()
3346 eth_type != htons(ETH_P_ARP) && in __ovs_nla_copy_actions()
3347 eth_type != htons(ETH_P_RARP) && in __ovs_nla_copy_actions()
3357 if (vlan_tci & htons(VLAN_CFI_MASK) || in __ovs_nla_copy_actions()
3373 if (proto == htons(ETH_P_TEB) && in __ovs_nla_copy_actions()
3380 eth_type = htons(0); in __ovs_nla_copy_actions()
3437 if (vlan_tci & htons(VLAN_CFI_MASK)) in __ovs_nla_copy_actions()
3458 if (eth_type != htons(ETH_P_NSH)) in __ovs_nla_copy_actions()