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()
1520 SW_FLOW_KEY_PUT(match, eth.type, htons(ETH_P_802_2), is_mask); in ovs_key_from_nlattrs()
1604 if (!is_mask && (arp_key->arp_op & htons(0xff00))) { in ovs_key_from_nlattrs()
1695 htons(icmp_key->icmp_type), is_mask); in ovs_key_from_nlattrs()
1697 htons(icmp_key->icmp_code), is_mask); in ovs_key_from_nlattrs()
1706 htons(icmpv6_key->icmpv6_type), is_mask); in ovs_key_from_nlattrs()
1708 htons(icmpv6_key->icmpv6_code), is_mask); in ovs_key_from_nlattrs()
1833 SW_FLOW_KEY_PUT(match, eth.vlan.tci, htons(0xffff), true); in ovs_nla_get_match()
1834 SW_FLOW_KEY_PUT(match, eth.cvlan.tci, htons(0xffff), true); in ovs_nla_get_match()
1951 __be16 eth_type = !is_mask ? vh->tpid : htons(0xffff); in ovs_nla_put_vlan()
2061 if (swkey->eth.type == htons(ETH_P_802_2)) { in __ovs_nla_put_key()
2087 if (swkey->eth.type == htons(ETH_P_IP)) { in __ovs_nla_put_key()
2100 } else if (swkey->eth.type == htons(ETH_P_IPV6)) { in __ovs_nla_put_key()
2124 } else if (swkey->eth.type == htons(ETH_P_NSH)) { in __ovs_nla_put_key()
2127 } else if (swkey->eth.type == htons(ETH_P_ARP) || in __ovs_nla_put_key()
2128 swkey->eth.type == htons(ETH_P_RARP)) { in __ovs_nla_put_key()
2138 arp_key->arp_op = htons(output->ip.proto); in __ovs_nla_put_key()
2156 if ((swkey->eth.type == htons(ETH_P_IP) || in __ovs_nla_put_key()
2157 swkey->eth.type == htons(ETH_P_IPV6)) && in __ovs_nla_put_key()
2190 } else if (swkey->eth.type == htons(ETH_P_IP) && in __ovs_nla_put_key()
2200 } else if (swkey->eth.type == htons(ETH_P_IPV6) && in __ovs_nla_put_key()
2212 if (swkey->tp.src == htons(NDISC_NEIGHBOUR_SOLICITATION) || in __ovs_nla_put_key()
2213 swkey->tp.src == htons(NDISC_NEIGHBOUR_ADVERTISEMENT)) { in __ovs_nla_put_key()
2887 if (eth_type != htons(ETH_P_IP)) in validate_set()
2910 if (eth_type != htons(ETH_P_IPV6)) in validate_set()
2938 if ((eth_type != htons(ETH_P_IP) && in validate_set()
2939 eth_type != htons(ETH_P_IPV6)) || in validate_set()
2946 if ((eth_type != htons(ETH_P_IP) && in validate_set()
2947 eth_type != htons(ETH_P_IPV6)) || in validate_set()
2961 if ((eth_type != htons(ETH_P_IP) && in validate_set()
2962 eth_type != htons(ETH_P_IPV6)) || in validate_set()
3241 vlan_tci = htons(0); in __ovs_nla_copy_actions()
3250 if (!(vlan->vlan_tci & htons(VLAN_CFI_MASK))) in __ovs_nla_copy_actions()
3265 if (vlan_tci & htons(VLAN_CFI_MASK) || in __ovs_nla_copy_actions()
3266 (eth_type != htons(ETH_P_IP) && in __ovs_nla_copy_actions()
3267 eth_type != htons(ETH_P_IPV6) && in __ovs_nla_copy_actions()
3268 eth_type != htons(ETH_P_ARP) && in __ovs_nla_copy_actions()
3269 eth_type != htons(ETH_P_RARP) && in __ovs_nla_copy_actions()
3293 if (vlan_tci & htons(VLAN_CFI_MASK) || in __ovs_nla_copy_actions()
3294 (eth_type != htons(ETH_P_IP) && in __ovs_nla_copy_actions()
3295 eth_type != htons(ETH_P_IPV6) && in __ovs_nla_copy_actions()
3296 eth_type != htons(ETH_P_ARP) && in __ovs_nla_copy_actions()
3297 eth_type != htons(ETH_P_RARP) && in __ovs_nla_copy_actions()
3307 if (vlan_tci & htons(VLAN_CFI_MASK) || in __ovs_nla_copy_actions()
3323 if (proto == htons(ETH_P_TEB) && in __ovs_nla_copy_actions()
3330 eth_type = htons(0); in __ovs_nla_copy_actions()
3387 if (vlan_tci & htons(VLAN_CFI_MASK)) in __ovs_nla_copy_actions()
3408 if (eth_type != htons(ETH_P_NSH)) in __ovs_nla_copy_actions()