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);
499 key->eth.vlan.tci = htons(skb->vlan_tci) | htons(VLAN_CFI_MASK);
535 return htons(ETH_P_802_2);
538 return htons(0);
544 return htons(ETH_P_802_2);
551 return htons(ETH_P_802_2);
562 key->tp.src = htons(icmp->icmp6_type);
563 key->tp.dst = htons(icmp->icmp6_code);
688 if (key->eth.type == htons(ETH_P_IP)) {
711 offset = nh->frag_off & htons(IP_OFFSET);
717 if (nh->frag_off & htons(IP_MF) ||
756 key->tp.src = htons(icmp->type);
757 key->tp.dst = htons(icmp->code);
763 } else if (key->eth.type == htons(ETH_P_ARP) ||
764 key->eth.type == htons(ETH_P_RARP)) {
771 arp->ar_hrd == htons(ARPHRD_ETHER) &&
772 arp->ar_pro == htons(ETH_P_IP) &&
820 } else if (key->eth.type == htons(ETH_P_IPV6)) {
882 } else if (key->eth.type == htons(ETH_P_NSH)) {
946 if (unlikely(key->eth.type == htons(0)))
953 if (key->eth.cvlan.tci & htons(VLAN_CFI_MASK))
993 if (skb->protocol == htons(ETH_P_TEB))
1112 key->eth.type != htons(ETH_P_IP))
1115 (key->eth.type != htons(ETH_P_IPV6) ||