Lines Matching refs:htons
57 #define TCP_FLAGS_BE16(tp) (*(__be16 *)&tcp_flag_word(tp) & htons(0x0FFF))
317 key_vh->tci = vh->tci | htons(VLAN_CFI_MASK);
350 key->eth.vlan.tci = htons(skb->vlan_tci) | htons(VLAN_CFI_MASK);
386 return htons(ETH_P_802_2);
389 return htons(0);
395 return htons(ETH_P_802_2);
402 return htons(ETH_P_802_2);
413 key->tp.src = htons(icmp->icmp6_type);
414 key->tp.dst = htons(icmp->icmp6_code);
537 if (key->eth.type == htons(ETH_P_IP)) {
560 offset = nh->frag_off & htons(IP_OFFSET);
566 if (nh->frag_off & htons(IP_MF) ||
605 key->tp.src = htons(icmp->type);
606 key->tp.dst = htons(icmp->code);
612 } else if (key->eth.type == htons(ETH_P_ARP) ||
613 key->eth.type == htons(ETH_P_RARP)) {
620 arp->ar_hrd == htons(ARPHRD_ETHER) &&
621 arp->ar_pro == htons(ETH_P_IP) &&
669 } else if (key->eth.type == htons(ETH_P_IPV6)) {
731 } else if (key->eth.type == htons(ETH_P_NSH)) {
795 if (unlikely(key->eth.type == htons(0)))
802 if (key->eth.cvlan.tci & htons(VLAN_CFI_MASK))
842 if (skb->protocol == htons(ETH_P_TEB))
943 key->eth.type != htons(ETH_P_IP))
946 (key->eth.type != htons(ETH_P_IPV6) ||