Lines Matching refs:htons
183 if (match->key->eth.type == htons(ETH_P_ARP) in match_validate()
184 || match->key->eth.type == htons(ETH_P_RARP)) { in match_validate()
186 if (match->mask && (match->mask->key.eth.type == htons(0xffff))) in match_validate()
192 if (match->mask && (match->mask->key.eth.type == htons(0xffff))) in match_validate()
196 if (match->key->eth.type == htons(ETH_P_IP)) { in match_validate()
198 if (match->mask && match->mask->key.eth.type == htons(0xffff)) { in match_validate()
233 if (match->key->eth.type == htons(ETH_P_IPV6)) { in match_validate()
235 if (match->mask && match->mask->key.eth.type == htons(0xffff)) { in match_validate()
268 htons(NDISC_NEIGHBOUR_SOLICITATION) || in match_validate()
269 match->key->tp.src == htons(NDISC_NEIGHBOUR_ADVERTISEMENT)) { in match_validate()
277 if (match->mask && (match->mask->key.tp.src == htons(0xff))) in match_validate()
284 if (match->key->eth.type == htons(ETH_P_NSH)) { in match_validate()
287 match->mask->key.eth.type == htons(0xffff)) { in match_validate()
1019 if (!(tci & htons(VLAN_CFI_MASK))) { in validate_vlan_from_nlattrs()
1042 htons(VLAN_CFI_MASK)); in validate_vlan_mask_from_nlattrs()
1044 htons(VLAN_CFI_MASK)); in validate_vlan_mask_from_nlattrs()
1063 if (tpid != htons(0xffff)) { in validate_vlan_mask_from_nlattrs()
1068 if (!(tci & htons(VLAN_CFI_MASK))) { in validate_vlan_mask_from_nlattrs()
1124 encap_valid = !!(match->key->eth.vlan.tci & htons(VLAN_CFI_MASK)); in parse_vlan_from_nlattrs()
1144 eth_type = htons(0xffff); in parse_eth_type_from_nlattrs()
1543 SW_FLOW_KEY_PUT(match, eth.type, htons(ETH_P_802_2), is_mask); in ovs_key_from_nlattrs()
1627 if (!is_mask && (arp_key->arp_op & htons(0xff00))) { in ovs_key_from_nlattrs()
1718 htons(icmp_key->icmp_type), is_mask); in ovs_key_from_nlattrs()
1720 htons(icmp_key->icmp_code), is_mask); in ovs_key_from_nlattrs()
1729 htons(icmpv6_key->icmpv6_type), is_mask); in ovs_key_from_nlattrs()
1731 htons(icmpv6_key->icmpv6_code), is_mask); in ovs_key_from_nlattrs()
1856 SW_FLOW_KEY_PUT(match, eth.vlan.tci, htons(0xffff), true); in ovs_nla_get_match()
1857 SW_FLOW_KEY_PUT(match, eth.cvlan.tci, htons(0xffff), true); in ovs_nla_get_match()
1974 __be16 eth_type = !is_mask ? vh->tpid : htons(0xffff); in ovs_nla_put_vlan()
2084 if (swkey->eth.type == htons(ETH_P_802_2)) { in __ovs_nla_put_key()
2110 if (swkey->eth.type == htons(ETH_P_IP)) { in __ovs_nla_put_key()
2123 } else if (swkey->eth.type == htons(ETH_P_IPV6)) { in __ovs_nla_put_key()
2147 } else if (swkey->eth.type == htons(ETH_P_NSH)) { in __ovs_nla_put_key()
2150 } else if (swkey->eth.type == htons(ETH_P_ARP) || in __ovs_nla_put_key()
2151 swkey->eth.type == htons(ETH_P_RARP)) { in __ovs_nla_put_key()
2161 arp_key->arp_op = htons(output->ip.proto); in __ovs_nla_put_key()
2179 if ((swkey->eth.type == htons(ETH_P_IP) || in __ovs_nla_put_key()
2180 swkey->eth.type == htons(ETH_P_IPV6)) && in __ovs_nla_put_key()
2213 } else if (swkey->eth.type == htons(ETH_P_IP) && in __ovs_nla_put_key()
2223 } else if (swkey->eth.type == htons(ETH_P_IPV6) && in __ovs_nla_put_key()
2235 if (swkey->tp.src == htons(NDISC_NEIGHBOUR_SOLICITATION) || in __ovs_nla_put_key()
2236 swkey->tp.src == htons(NDISC_NEIGHBOUR_ADVERTISEMENT)) { in __ovs_nla_put_key()
2911 if (eth_type != htons(ETH_P_IP)) in validate_set()
2934 if (eth_type != htons(ETH_P_IPV6)) in validate_set()
2962 if ((eth_type != htons(ETH_P_IP) && in validate_set()
2963 eth_type != htons(ETH_P_IPV6)) || in validate_set()
2970 if ((eth_type != htons(ETH_P_IP) && in validate_set()
2971 eth_type != htons(ETH_P_IPV6)) || in validate_set()
2983 if ((eth_type != htons(ETH_P_IP) && in validate_set()
2984 eth_type != htons(ETH_P_IPV6)) || in validate_set()
2991 if (eth_type != htons(ETH_P_NSH)) in validate_set()
3240 vlan_tci = htons(0); in __ovs_nla_copy_actions()
3249 if (!(vlan->vlan_tci & htons(VLAN_CFI_MASK))) in __ovs_nla_copy_actions()
3264 if (vlan_tci & htons(VLAN_CFI_MASK) || in __ovs_nla_copy_actions()
3265 (eth_type != htons(ETH_P_IP) && in __ovs_nla_copy_actions()
3266 eth_type != htons(ETH_P_IPV6) && in __ovs_nla_copy_actions()
3267 eth_type != htons(ETH_P_ARP) && in __ovs_nla_copy_actions()
3268 eth_type != htons(ETH_P_RARP) && in __ovs_nla_copy_actions()
3292 if (vlan_tci & htons(VLAN_CFI_MASK) || in __ovs_nla_copy_actions()
3293 (eth_type != htons(ETH_P_IP) && in __ovs_nla_copy_actions()
3294 eth_type != htons(ETH_P_IPV6) && in __ovs_nla_copy_actions()
3295 eth_type != htons(ETH_P_ARP) && in __ovs_nla_copy_actions()
3296 eth_type != htons(ETH_P_RARP) && in __ovs_nla_copy_actions()
3306 if (vlan_tci & htons(VLAN_CFI_MASK) || in __ovs_nla_copy_actions()
3322 if (proto == htons(ETH_P_TEB) && in __ovs_nla_copy_actions()
3329 eth_type = htons(0); in __ovs_nla_copy_actions()
3386 if (vlan_tci & htons(VLAN_CFI_MASK)) in __ovs_nla_copy_actions()
3407 if (eth_type != htons(ETH_P_NSH)) in __ovs_nla_copy_actions()