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()
2795 if (eth_type != htons(ETH_P_IP)) in validate_set()
2818 if (eth_type != htons(ETH_P_IPV6)) in validate_set()
2846 if ((eth_type != htons(ETH_P_IP) && in validate_set()
2847 eth_type != htons(ETH_P_IPV6)) || in validate_set()
2854 if ((eth_type != htons(ETH_P_IP) && in validate_set()
2855 eth_type != htons(ETH_P_IPV6)) || in validate_set()
2867 if ((eth_type != htons(ETH_P_IP) && in validate_set()
2868 eth_type != htons(ETH_P_IPV6)) || in validate_set()
2875 if (eth_type != htons(ETH_P_NSH)) in validate_set()
3121 vlan_tci = htons(0); in __ovs_nla_copy_actions()
3130 if (!(vlan->vlan_tci & htons(VLAN_CFI_MASK))) in __ovs_nla_copy_actions()
3145 if (vlan_tci & htons(VLAN_CFI_MASK) || in __ovs_nla_copy_actions()
3146 (eth_type != htons(ETH_P_IP) && in __ovs_nla_copy_actions()
3147 eth_type != htons(ETH_P_IPV6) && in __ovs_nla_copy_actions()
3148 eth_type != htons(ETH_P_ARP) && in __ovs_nla_copy_actions()
3149 eth_type != htons(ETH_P_RARP) && in __ovs_nla_copy_actions()
3173 if (vlan_tci & htons(VLAN_CFI_MASK) || in __ovs_nla_copy_actions()
3174 (eth_type != htons(ETH_P_IP) && in __ovs_nla_copy_actions()
3175 eth_type != htons(ETH_P_IPV6) && in __ovs_nla_copy_actions()
3176 eth_type != htons(ETH_P_ARP) && in __ovs_nla_copy_actions()
3177 eth_type != htons(ETH_P_RARP) && in __ovs_nla_copy_actions()
3187 if (vlan_tci & htons(VLAN_CFI_MASK) || in __ovs_nla_copy_actions()
3203 if (proto == htons(ETH_P_TEB) && in __ovs_nla_copy_actions()
3210 eth_type = htons(0); in __ovs_nla_copy_actions()
3267 if (vlan_tci & htons(VLAN_CFI_MASK)) in __ovs_nla_copy_actions()
3288 if (eth_type != htons(ETH_P_NSH)) in __ovs_nla_copy_actions()