Lines Matching refs:htons

212 		ph6.protocol = htons(IPPROTO_TCP);  in tcp_checksum()
213 ph6.payload_len = htons(sizeof(struct tcphdr) + payload_len); in tcp_checksum()
221 ph4.protocol = htons(IPPROTO_TCP); in tcp_checksum()
222 ph4.payload_len = htons(sizeof(struct tcphdr) + payload_len); in tcp_checksum()
256 ip6h->payload_len = htons(sizeof(struct tcphdr) + payload_len); in fill_networklayer()
270 iph->tot_len = htons(sizeof(struct tcphdr) + in fill_networklayer()
272 iph->frag_off = htons(0x4000); /* DF = 1, MF = 0 */ in fill_networklayer()
288 tcph->source = htons(SPORT); in fill_transportlayer()
289 tcph->dest = htons(DPORT); in fill_transportlayer()
295 tcph->window = htons(TCP_MAXWIN); in fill_transportlayer()
416 iph->tot_len = htons(ntohs(iph->tot_len) + extlen); in recompute_packet()
420 ip6h->payload_len = htons(ntohs(ip6h->payload_len) + extlen); in recompute_packet()
600 iph->tot_len = htons(ntohs(iph->tot_len) + optlen); in add_ipv4_ts_option()
621 iph->payload_len = htons(ntohs(iph->payload_len) + MIN_EXTHDR_SIZE); in add_ipv6_exthdr()
650 iph1->frag_off |= htons(IP_DF); in send_flush_id_case()
651 iph1->id = htons(8); in send_flush_id_case()
653 iph2->frag_off |= htons(IP_DF); in send_flush_id_case()
654 iph2->id = htons(9); in send_flush_id_case()
658 iph1->frag_off |= htons(IP_DF); in send_flush_id_case()
659 iph1->id = htons(8); in send_flush_id_case()
661 iph2->frag_off |= htons(IP_DF); in send_flush_id_case()
662 iph2->id = htons(8); in send_flush_id_case()
666 iph1->frag_off &= ~htons(IP_DF); in send_flush_id_case()
667 iph1->id = htons(8); in send_flush_id_case()
669 iph2->frag_off &= ~htons(IP_DF); in send_flush_id_case()
670 iph2->id = htons(9); in send_flush_id_case()
674 iph1->frag_off &= ~htons(IP_DF); in send_flush_id_case()
675 iph1->id = htons(8); in send_flush_id_case()
677 iph2->frag_off &= ~htons(IP_DF); in send_flush_id_case()
678 iph2->id = htons(8); in send_flush_id_case()
684 iph1->frag_off |= htons(IP_DF); in send_flush_id_case()
685 iph1->id = htons(8); in send_flush_id_case()
687 iph2->frag_off |= htons(IP_DF); in send_flush_id_case()
688 iph2->id = htons(9); in send_flush_id_case()
690 iph3->frag_off |= htons(IP_DF); in send_flush_id_case()
691 iph3->id = htons(9); in send_flush_id_case()
698 iph1->frag_off |= htons(IP_DF); in send_flush_id_case()
699 iph1->id = htons(8); in send_flush_id_case()
701 iph2->frag_off |= htons(IP_DF); in send_flush_id_case()
702 iph2->id = htons(8); in send_flush_id_case()
704 iph3->frag_off |= htons(IP_DF); in send_flush_id_case()
705 iph3->id = htons(9); in send_flush_id_case()
783 iph->frag_off = htons(0x6000); // DF = 1, MF = 1 in send_fragment4()
871 ip6h->payload_len = htons(ntohs(ip6h->payload_len) + extlen); in send_fragment6()
1095 rxfd = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_NONE)); in gro_receiver()
1267 ethhdr_proto = htons(ETH_P_IP); in parse_args()
1271 ethhdr_proto = htons(ETH_P_IPV6); in parse_args()