Lines Matching refs:htons
2673 iph->tot_len = htons(skb->len - ETH_HLEN); in process_ipsec()
2697 return htons(id | (cfi << 12) | (prio << 13)); in build_tci()
2805 __be16 protocol = htons(ETH_P_IP); in fill_packet_ipv4()
2814 protocol = htons(ETH_P_MPLS_UC); in fill_packet_ipv4()
2817 protocol = htons(ETH_P_8021Q); in fill_packet_ipv4()
2849 *svlan_encapsulated_proto = htons(ETH_P_8021Q); in fill_packet_ipv4()
2856 *vlan_encapsulated_proto = htons(ETH_P_IP); in fill_packet_ipv4()
2877 udph->source = htons(pkt_dev->cur_udp_src); in fill_packet_ipv4()
2878 udph->dest = htons(pkt_dev->cur_udp_dst); in fill_packet_ipv4()
2879 udph->len = htons(datalen + 8); /* DATA + udphdr */ in fill_packet_ipv4()
2889 iph->id = htons(pkt_dev->ip_id); in fill_packet_ipv4()
2893 iph->tot_len = htons(iplen); in fill_packet_ipv4()
2934 __be16 protocol = htons(ETH_P_IPV6); in fill_packet_ipv6()
2943 protocol = htons(ETH_P_MPLS_UC); in fill_packet_ipv6()
2946 protocol = htons(ETH_P_8021Q); in fill_packet_ipv6()
2976 *svlan_encapsulated_proto = htons(ETH_P_8021Q); in fill_packet_ipv6()
2983 *vlan_encapsulated_proto = htons(ETH_P_IPV6); in fill_packet_ipv6()
3009 udph->source = htons(pkt_dev->cur_udp_src); in fill_packet_ipv6()
3010 udph->dest = htons(pkt_dev->cur_udp_dst); in fill_packet_ipv6()
3011 udph->len = htons(udplen); in fill_packet_ipv6()
3023 iph->payload_len = htons(udplen); in fill_packet_ipv6()