Lines Matching refs:htons
66 #define TCP_FLAGS_BE16(tp) (*(__be16 *)&tcp_flag_word(tp) & htons(0x0FFF))
278 if (frag_off & htons(~0x7)) in parse_ipv6hdr()
314 key->eth.tci = qp->tci | htons(VLAN_TAG_PRESENT); in parse_vlan()
339 return htons(ETH_P_802_2); in parse_ethertype()
342 return htons(0); in parse_ethertype()
348 return htons(ETH_P_802_2); in parse_ethertype()
355 return htons(ETH_P_802_2); in parse_ethertype()
366 key->tp.src = htons(icmp->icmp6_type); in parse_icmpv6()
367 key->tp.dst = htons(icmp->icmp6_code); in parse_icmpv6()
478 key->eth.tci = htons(skb->vlan_tci); in key_extract()
479 else if (eth->h_proto == htons(ETH_P_8021Q)) in key_extract()
484 if (unlikely(key->eth.type == htons(0))) in key_extract()
492 if (key->eth.type == htons(ETH_P_IP)) { in key_extract()
515 offset = nh->frag_off & htons(IP_OFFSET); in key_extract()
520 if (nh->frag_off & htons(IP_MF) || in key_extract()
559 key->tp.src = htons(icmp->type); in key_extract()
560 key->tp.dst = htons(icmp->code); in key_extract()
566 } else if (key->eth.type == htons(ETH_P_ARP) || in key_extract()
567 key->eth.type == htons(ETH_P_RARP)) { in key_extract()
574 arp->ar_hrd == htons(ARPHRD_ETHER) && in key_extract()
575 arp->ar_pro == htons(ETH_P_IP) && in key_extract()
620 } else if (key->eth.type == htons(ETH_P_IPV6)) { in key_extract()