Lines Matching refs:htons
181 if (match->key->eth.type == htons(ETH_P_ARP) in match_validate()
182 || match->key->eth.type == htons(ETH_P_RARP)) { in match_validate()
184 if (match->mask && (match->mask->key.eth.type == htons(0xffff))) in match_validate()
190 if (match->mask && (match->mask->key.eth.type == htons(0xffff))) in match_validate()
194 if (match->key->eth.type == htons(ETH_P_IP)) { in match_validate()
196 if (match->mask && match->mask->key.eth.type == htons(0xffff)) { in match_validate()
231 if (match->key->eth.type == htons(ETH_P_IPV6)) { in match_validate()
233 if (match->mask && match->mask->key.eth.type == htons(0xffff)) { in match_validate()
266 htons(NDISC_NEIGHBOUR_SOLICITATION) || in match_validate()
267 match->key->tp.src == htons(NDISC_NEIGHBOUR_ADVERTISEMENT)) { in match_validate()
275 if (match->mask && (match->mask->key.tp.src == htons(0xff))) in match_validate()
282 if (match->key->eth.type == htons(ETH_P_NSH)) { in match_validate()
285 match->mask->key.eth.type == htons(0xffff)) { in match_validate()
1007 if (!(tci & htons(VLAN_CFI_MASK))) { in validate_vlan_from_nlattrs()
1030 htons(VLAN_CFI_MASK)); in validate_vlan_mask_from_nlattrs()
1032 htons(VLAN_CFI_MASK)); in validate_vlan_mask_from_nlattrs()
1051 if (tpid != htons(0xffff)) { in validate_vlan_mask_from_nlattrs()
1056 if (!(tci & htons(VLAN_CFI_MASK))) { in validate_vlan_mask_from_nlattrs()
1112 encap_valid = !!(match->key->eth.vlan.tci & htons(VLAN_CFI_MASK)); in parse_vlan_from_nlattrs()
1132 eth_type = htons(0xffff); in parse_eth_type_from_nlattrs()
1531 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()
2116 } else if (swkey->eth.type == htons(ETH_P_NSH)) { in __ovs_nla_put_key()
2119 } else if (swkey->eth.type == htons(ETH_P_ARP) || in __ovs_nla_put_key()
2120 swkey->eth.type == htons(ETH_P_RARP)) { in __ovs_nla_put_key()
2130 arp_key->arp_op = htons(output->ip.proto); in __ovs_nla_put_key()
2148 if ((swkey->eth.type == htons(ETH_P_IP) || in __ovs_nla_put_key()
2149 swkey->eth.type == htons(ETH_P_IPV6)) && in __ovs_nla_put_key()
2182 } else if (swkey->eth.type == htons(ETH_P_IP) && in __ovs_nla_put_key()
2192 } else if (swkey->eth.type == htons(ETH_P_IPV6) && in __ovs_nla_put_key()
2204 if (swkey->tp.src == htons(NDISC_NEIGHBOUR_SOLICITATION) || in __ovs_nla_put_key()
2205 swkey->tp.src == htons(NDISC_NEIGHBOUR_ADVERTISEMENT)) { in __ovs_nla_put_key()
2870 if (eth_type != htons(ETH_P_IP)) in validate_set()
2893 if (eth_type != htons(ETH_P_IPV6)) in validate_set()
2921 if ((eth_type != htons(ETH_P_IP) && in validate_set()
2922 eth_type != htons(ETH_P_IPV6)) || in validate_set()
2929 if ((eth_type != htons(ETH_P_IP) && in validate_set()
2930 eth_type != htons(ETH_P_IPV6)) || in validate_set()
2942 if ((eth_type != htons(ETH_P_IP) && in validate_set()
2943 eth_type != htons(ETH_P_IPV6)) || in validate_set()
2950 if (eth_type != htons(ETH_P_NSH)) in validate_set()
3196 vlan_tci = htons(0); in __ovs_nla_copy_actions()
3205 if (!(vlan->vlan_tci & htons(VLAN_CFI_MASK))) in __ovs_nla_copy_actions()
3220 if (vlan_tci & htons(VLAN_CFI_MASK) || in __ovs_nla_copy_actions()
3221 (eth_type != htons(ETH_P_IP) && in __ovs_nla_copy_actions()
3222 eth_type != htons(ETH_P_IPV6) && in __ovs_nla_copy_actions()
3223 eth_type != htons(ETH_P_ARP) && in __ovs_nla_copy_actions()
3224 eth_type != htons(ETH_P_RARP) && in __ovs_nla_copy_actions()
3248 if (vlan_tci & htons(VLAN_CFI_MASK) || in __ovs_nla_copy_actions()
3249 (eth_type != htons(ETH_P_IP) && in __ovs_nla_copy_actions()
3250 eth_type != htons(ETH_P_IPV6) && in __ovs_nla_copy_actions()
3251 eth_type != htons(ETH_P_ARP) && in __ovs_nla_copy_actions()
3252 eth_type != htons(ETH_P_RARP) && in __ovs_nla_copy_actions()
3262 if (vlan_tci & htons(VLAN_CFI_MASK) || in __ovs_nla_copy_actions()
3278 if (proto == htons(ETH_P_TEB) && in __ovs_nla_copy_actions()
3285 eth_type = htons(0); in __ovs_nla_copy_actions()
3342 if (vlan_tci & htons(VLAN_CFI_MASK)) in __ovs_nla_copy_actions()
3363 if (eth_type != htons(ETH_P_NSH)) in __ovs_nla_copy_actions()