Lines Matching refs:htons
148 if (match->key->eth.type == htons(ETH_P_ARP) in match_validate()
149 || match->key->eth.type == htons(ETH_P_RARP)) { in match_validate()
151 if (match->mask && (match->mask->key.eth.type == htons(0xffff))) in match_validate()
157 if (match->mask && (match->mask->key.eth.type == htons(0xffff))) in match_validate()
161 if (match->key->eth.type == htons(ETH_P_IP)) { in match_validate()
163 if (match->mask && (match->mask->key.eth.type == htons(0xffff))) in match_validate()
196 if (match->key->eth.type == htons(ETH_P_IPV6)) { in match_validate()
198 if (match->mask && (match->mask->key.eth.type == htons(0xffff))) in match_validate()
229 htons(NDISC_NEIGHBOUR_SOLICITATION) || in match_validate()
230 match->key->tp.src == htons(NDISC_NEIGHBOUR_ADVERTISEMENT)) { in match_validate()
232 if (match->mask && (match->mask->key.tp.src == htons(0xff))) in match_validate()
799 if (!(tci & htons(VLAN_TAG_PRESENT))) { in ovs_key_from_nlattrs()
818 eth_type = htons(0xffff); in ovs_key_from_nlattrs()
828 SW_FLOW_KEY_PUT(match, eth.type, htons(ETH_P_802_2), is_mask); in ovs_key_from_nlattrs()
897 if (!is_mask && (arp_key->arp_op & htons(0xff00))) { in ovs_key_from_nlattrs()
966 htons(icmp_key->icmp_type), is_mask); in ovs_key_from_nlattrs()
968 htons(icmp_key->icmp_code), is_mask); in ovs_key_from_nlattrs()
977 htons(icmpv6_key->icmpv6_type), is_mask); in ovs_key_from_nlattrs()
979 htons(icmpv6_key->icmpv6_code), is_mask); in ovs_key_from_nlattrs()
1061 (nla_get_be16(a[OVS_KEY_ATTR_ETHERTYPE]) == htons(ETH_P_8021Q))) { in ovs_nla_get_match()
1076 if (tci & htons(VLAN_TAG_PRESENT)) { in ovs_nla_get_match()
1131 SW_FLOW_KEY_PUT(match, eth.tci, htons(0xffff), true); in ovs_nla_get_match()
1147 if (eth_type == htons(0xffff)) { in ovs_nla_get_match()
1164 if (!(tci & htons(VLAN_TAG_PRESENT))) { in ovs_nla_get_match()
1325 if (swkey->eth.tci || swkey->eth.type == htons(ETH_P_8021Q)) { in __ovs_nla_put_key()
1327 eth_type = !is_mask ? htons(ETH_P_8021Q) : htons(0xffff); in __ovs_nla_put_key()
1337 if (swkey->eth.type == htons(ETH_P_802_2)) { in __ovs_nla_put_key()
1354 if (swkey->eth.type == htons(ETH_P_IP)) { in __ovs_nla_put_key()
1367 } else if (swkey->eth.type == htons(ETH_P_IPV6)) { in __ovs_nla_put_key()
1383 } else if (swkey->eth.type == htons(ETH_P_ARP) || in __ovs_nla_put_key()
1384 swkey->eth.type == htons(ETH_P_RARP)) { in __ovs_nla_put_key()
1394 arp_key->arp_op = htons(output->ip.proto); in __ovs_nla_put_key()
1407 if ((swkey->eth.type == htons(ETH_P_IP) || in __ovs_nla_put_key()
1408 swkey->eth.type == htons(ETH_P_IPV6)) && in __ovs_nla_put_key()
1441 } else if (swkey->eth.type == htons(ETH_P_IP) && in __ovs_nla_put_key()
1451 } else if (swkey->eth.type == htons(ETH_P_IPV6) && in __ovs_nla_put_key()
1863 if (eth_type != htons(ETH_P_IP)) in validate_set()
1884 if (eth_type != htons(ETH_P_IPV6)) in validate_set()
1912 if ((eth_type != htons(ETH_P_IP) && in validate_set()
1913 eth_type != htons(ETH_P_IPV6)) || in validate_set()
1920 if ((eth_type != htons(ETH_P_IP) && in validate_set()
1921 eth_type != htons(ETH_P_IPV6)) || in validate_set()
1933 if ((eth_type != htons(ETH_P_IP) && in validate_set()
1934 eth_type != htons(ETH_P_IPV6)) || in validate_set()
2076 vlan_tci = htons(0); in __ovs_nla_copy_actions()
2081 if (vlan->vlan_tpid != htons(ETH_P_8021Q)) in __ovs_nla_copy_actions()
2083 if (!(vlan->vlan_tci & htons(VLAN_TAG_PRESENT))) in __ovs_nla_copy_actions()
2099 if (vlan_tci & htons(VLAN_TAG_PRESENT) || in __ovs_nla_copy_actions()
2100 (eth_type != htons(ETH_P_IP) && in __ovs_nla_copy_actions()
2101 eth_type != htons(ETH_P_IPV6) && in __ovs_nla_copy_actions()
2102 eth_type != htons(ETH_P_ARP) && in __ovs_nla_copy_actions()
2103 eth_type != htons(ETH_P_RARP) && in __ovs_nla_copy_actions()
2111 if (vlan_tci & htons(VLAN_TAG_PRESENT) || in __ovs_nla_copy_actions()
2124 eth_type = htons(0); in __ovs_nla_copy_actions()