Lines Matching refs:htons

59 #define TCP_FLAGS_BE16(tp) (*(__be16 *)&tcp_flag_word(tp) & htons(0x0FFF))
466 key_vh->tci = vh->tci | htons(VLAN_CFI_MASK); in parse_vlan_tag()
499 key->eth.vlan.tci = htons(skb->vlan_tci) | htons(VLAN_CFI_MASK); in parse_vlan()
535 return htons(ETH_P_802_2); in parse_ethertype()
538 return htons(0); in parse_ethertype()
544 return htons(ETH_P_802_2); in parse_ethertype()
551 return htons(ETH_P_802_2); in parse_ethertype()
562 key->tp.src = htons(icmp->icmp6_type); in parse_icmpv6()
563 key->tp.dst = htons(icmp->icmp6_code); in parse_icmpv6()
688 if (key->eth.type == htons(ETH_P_IP)) { in key_extract_l3l4()
711 offset = nh->frag_off & htons(IP_OFFSET); in key_extract_l3l4()
717 if (nh->frag_off & htons(IP_MF) || in key_extract_l3l4()
756 key->tp.src = htons(icmp->type); in key_extract_l3l4()
757 key->tp.dst = htons(icmp->code); in key_extract_l3l4()
763 } else if (key->eth.type == htons(ETH_P_ARP) || in key_extract_l3l4()
764 key->eth.type == htons(ETH_P_RARP)) { in key_extract_l3l4()
771 arp->ar_hrd == htons(ARPHRD_ETHER) && in key_extract_l3l4()
772 arp->ar_pro == htons(ETH_P_IP) && in key_extract_l3l4()
820 } else if (key->eth.type == htons(ETH_P_IPV6)) { in key_extract_l3l4()
882 } else if (key->eth.type == htons(ETH_P_NSH)) { in key_extract_l3l4()
946 if (unlikely(key->eth.type == htons(0))) in key_extract()
953 if (key->eth.cvlan.tci & htons(VLAN_CFI_MASK)) in key_extract()
993 if (skb->protocol == htons(ETH_P_TEB)) in key_extract_mac_proto()
1112 key->eth.type != htons(ETH_P_IP)) in ovs_flow_key_extract_userspace()
1115 (key->eth.type != htons(ETH_P_IPV6) || in ovs_flow_key_extract_userspace()