Lines Matching refs:htons

191 	if (match->key->eth.type == htons(ETH_P_ARP)  in match_validate()
192 || match->key->eth.type == htons(ETH_P_RARP)) { in match_validate()
194 if (match->mask && (match->mask->key.eth.type == htons(0xffff))) in match_validate()
200 if (match->mask && (match->mask->key.eth.type == htons(0xffff))) in match_validate()
204 if (match->key->eth.type == htons(ETH_P_IP)) { in match_validate()
206 if (match->mask && match->mask->key.eth.type == htons(0xffff)) { in match_validate()
241 if (match->key->eth.type == htons(ETH_P_IPV6)) { in match_validate()
243 if (match->mask && match->mask->key.eth.type == htons(0xffff)) { in match_validate()
276 htons(NDISC_NEIGHBOUR_SOLICITATION) || in match_validate()
277 match->key->tp.src == htons(NDISC_NEIGHBOUR_ADVERTISEMENT)) { in match_validate()
285 if (match->mask && (match->mask->key.tp.src == htons(0xff))) in match_validate()
292 if (match->key->eth.type == htons(ETH_P_NSH)) { in match_validate()
295 match->mask->key.eth.type == htons(0xffff)) { in match_validate()
993 if (!(tci & htons(VLAN_TAG_PRESENT))) { in validate_vlan_from_nlattrs()
1016 htons(VLAN_TAG_PRESENT)); in validate_vlan_mask_from_nlattrs()
1018 htons(VLAN_TAG_PRESENT)); in validate_vlan_mask_from_nlattrs()
1037 if (tpid != htons(0xffff)) { in validate_vlan_mask_from_nlattrs()
1042 if (!(tci & htons(VLAN_TAG_PRESENT))) { in validate_vlan_mask_from_nlattrs()
1098 encap_valid = !!(match->key->eth.vlan.tci & htons(VLAN_TAG_PRESENT)); in parse_vlan_from_nlattrs()
1118 eth_type = htons(0xffff); in parse_eth_type_from_nlattrs()
1517 SW_FLOW_KEY_PUT(match, eth.type, htons(ETH_P_802_2), is_mask); in ovs_key_from_nlattrs()
1590 if (!is_mask && (arp_key->arp_op & htons(0xff00))) { in ovs_key_from_nlattrs()
1666 htons(icmp_key->icmp_type), is_mask); in ovs_key_from_nlattrs()
1668 htons(icmp_key->icmp_code), is_mask); in ovs_key_from_nlattrs()
1677 htons(icmpv6_key->icmpv6_type), is_mask); in ovs_key_from_nlattrs()
1679 htons(icmpv6_key->icmpv6_code), is_mask); in ovs_key_from_nlattrs()
1804 SW_FLOW_KEY_PUT(match, eth.vlan.tci, htons(0xffff), true); in ovs_nla_get_match()
1805 SW_FLOW_KEY_PUT(match, eth.cvlan.tci, htons(0xffff), true); in ovs_nla_get_match()
1922 __be16 eth_type = !is_mask ? vh->tpid : htons(0xffff); in ovs_nla_put_vlan()
2031 if (swkey->eth.type == htons(ETH_P_802_2)) { in __ovs_nla_put_key()
2057 if (swkey->eth.type == htons(ETH_P_IP)) { in __ovs_nla_put_key()
2070 } else if (swkey->eth.type == htons(ETH_P_IPV6)) { in __ovs_nla_put_key()
2086 } else if (swkey->eth.type == htons(ETH_P_NSH)) { in __ovs_nla_put_key()
2089 } else if (swkey->eth.type == htons(ETH_P_ARP) || in __ovs_nla_put_key()
2090 swkey->eth.type == htons(ETH_P_RARP)) { in __ovs_nla_put_key()
2100 arp_key->arp_op = htons(output->ip.proto); in __ovs_nla_put_key()
2113 if ((swkey->eth.type == htons(ETH_P_IP) || in __ovs_nla_put_key()
2114 swkey->eth.type == htons(ETH_P_IPV6)) && in __ovs_nla_put_key()
2147 } else if (swkey->eth.type == htons(ETH_P_IP) && in __ovs_nla_put_key()
2157 } else if (swkey->eth.type == htons(ETH_P_IPV6) && in __ovs_nla_put_key()
2700 if (eth_type != htons(ETH_P_IP)) in validate_set()
2721 if (eth_type != htons(ETH_P_IPV6)) in validate_set()
2749 if ((eth_type != htons(ETH_P_IP) && in validate_set()
2750 eth_type != htons(ETH_P_IPV6)) || in validate_set()
2757 if ((eth_type != htons(ETH_P_IP) && in validate_set()
2758 eth_type != htons(ETH_P_IPV6)) || in validate_set()
2770 if ((eth_type != htons(ETH_P_IP) && in validate_set()
2771 eth_type != htons(ETH_P_IPV6)) || in validate_set()
2778 if (eth_type != htons(ETH_P_NSH)) in validate_set()
2937 vlan_tci = htons(0); in __ovs_nla_copy_actions()
2946 if (!(vlan->vlan_tci & htons(VLAN_TAG_PRESENT))) in __ovs_nla_copy_actions()
2962 if (vlan_tci & htons(VLAN_TAG_PRESENT) || in __ovs_nla_copy_actions()
2963 (eth_type != htons(ETH_P_IP) && in __ovs_nla_copy_actions()
2964 eth_type != htons(ETH_P_IPV6) && in __ovs_nla_copy_actions()
2965 eth_type != htons(ETH_P_ARP) && in __ovs_nla_copy_actions()
2966 eth_type != htons(ETH_P_RARP) && in __ovs_nla_copy_actions()
2974 if (vlan_tci & htons(VLAN_TAG_PRESENT) || in __ovs_nla_copy_actions()
2987 eth_type = htons(0); in __ovs_nla_copy_actions()
3039 if (vlan_tci & htons(VLAN_TAG_PRESENT)) in __ovs_nla_copy_actions()
3060 if (eth_type != htons(ETH_P_NSH)) in __ovs_nla_copy_actions()