Lines Matching refs:iphdr
111 next_off = offsetof(struct iphdr, protocol); in setup_sock_filter()
224 struct iphdr *iph = buf; in fill_networklayer()
245 payload_len + sizeof(struct iphdr)); in fill_networklayer()
251 iph->check = checksum_fold(buf, sizeof(struct iphdr), 0); in fill_networklayer()
380 struct iphdr *iph = (struct iphdr *)(buf + ETH_HLEN); in recompute_packet()
392 iph->check = checksum_fold(iph, sizeof(struct iphdr), 0); in recompute_packet()
558 struct iphdr *iph; in add_ipv4_ts_option()
572 iph = (struct iphdr *)(optpkt + ETH_HLEN); in add_ipv4_ts_option()
576 iph->check = checksum_fold(iph, sizeof(struct iphdr) + optlen, 0); in add_ipv4_ts_option()
602 struct iphdr *iph = (struct iphdr *)(buf + ETH_HLEN); in send_fragment4()
619 iph->check = checksum_fold(iph, sizeof(struct iphdr), 0); in send_fragment4()
628 struct iphdr *iph = (struct iphdr *)(buf + ETH_HLEN); in send_changed_ttl()
636 iph->check = checksum_fold(iph, sizeof(struct iphdr), 0); in send_changed_ttl()
645 struct iphdr *iph = (struct iphdr *)(buf + ETH_HLEN); in send_changed_tos()
655 iph->check = checksum_fold(iph, sizeof(struct iphdr), 0); in send_changed_tos()
667 struct iphdr *iph = (struct iphdr *)(buf + ETH_HLEN); in send_changed_ECN()
676 iph->check = checksum_fold(iph, sizeof(struct iphdr), 0); in send_changed_ECN()
746 struct iphdr *iph = (struct iphdr *)(buffer + ETH_HLEN); in check_recv_pkts()
785 - sizeof(struct tcphdr) - sizeof(struct iphdr); in check_recv_pkts()
1087 tcp_offset = ETH_HLEN + sizeof(struct iphdr); in main()