Lines Matching refs:htons
2625 iph->tot_len = htons(skb->len - ETH_HLEN); in process_ipsec()
2649 return htons(id | (cfi << 12) | (prio << 13)); in build_tci()
2754 __be16 protocol = htons(ETH_P_IP); in fill_packet_ipv4()
2763 protocol = htons(ETH_P_MPLS_UC); in fill_packet_ipv4()
2766 protocol = htons(ETH_P_8021Q); in fill_packet_ipv4()
2798 *svlan_encapsulated_proto = htons(ETH_P_8021Q); in fill_packet_ipv4()
2805 *vlan_encapsulated_proto = htons(ETH_P_IP); in fill_packet_ipv4()
2826 udph->source = htons(pkt_dev->cur_udp_src); in fill_packet_ipv4()
2827 udph->dest = htons(pkt_dev->cur_udp_dst); in fill_packet_ipv4()
2828 udph->len = htons(datalen + 8); /* DATA + udphdr */ in fill_packet_ipv4()
2838 iph->id = htons(pkt_dev->ip_id); in fill_packet_ipv4()
2842 iph->tot_len = htons(iplen); in fill_packet_ipv4()
2883 __be16 protocol = htons(ETH_P_IPV6); in fill_packet_ipv6()
2892 protocol = htons(ETH_P_MPLS_UC); in fill_packet_ipv6()
2895 protocol = htons(ETH_P_8021Q); in fill_packet_ipv6()
2925 *svlan_encapsulated_proto = htons(ETH_P_8021Q); in fill_packet_ipv6()
2932 *vlan_encapsulated_proto = htons(ETH_P_IPV6); in fill_packet_ipv6()
2958 udph->source = htons(pkt_dev->cur_udp_src); in fill_packet_ipv6()
2959 udph->dest = htons(pkt_dev->cur_udp_dst); in fill_packet_ipv6()
2960 udph->len = htons(udplen); in fill_packet_ipv6()
2972 iph->payload_len = htons(udplen); in fill_packet_ipv6()