Lines Matching refs:iphdr
118 next_off = offsetof(struct iphdr, protocol); in setup_sock_filter()
250 struct iphdr *iph = buf; in fill_networklayer()
271 payload_len + sizeof(struct iphdr)); in fill_networklayer()
277 iph->check = checksum_fold(buf, sizeof(struct iphdr), 0); in fill_networklayer()
406 struct iphdr *iph = (struct iphdr *)(buf + ETH_HLEN); in recompute_packet()
418 iph->check = checksum_fold(iph, sizeof(struct iphdr), 0); in recompute_packet()
584 struct iphdr *iph; in add_ipv4_ts_option()
598 iph = (struct iphdr *)(optpkt + ETH_HLEN); in add_ipv4_ts_option()
602 iph->check = checksum_fold(iph, sizeof(struct iphdr) + optlen, 0); in add_ipv4_ts_option()
624 static void fix_ip4_checksum(struct iphdr *iph) in fix_ip4_checksum()
627 iph->check = checksum_fold(iph, sizeof(struct iphdr), 0); in fix_ip4_checksum()
636 struct iphdr *iph1; in send_flush_id_case()
637 struct iphdr *iph2; in send_flush_id_case()
638 struct iphdr *iph3; in send_flush_id_case()
640 iph1 = (struct iphdr *)(buf1 + ETH_HLEN); in send_flush_id_case()
641 iph2 = (struct iphdr *)(buf2 + ETH_HLEN); in send_flush_id_case()
642 iph3 = (struct iphdr *)(buf3 + ETH_HLEN); in send_flush_id_case()
768 struct iphdr *iph = (struct iphdr *)(buf + ETH_HLEN); in send_fragment4()
785 iph->check = checksum_fold(iph, sizeof(struct iphdr), 0); in send_fragment4()
794 struct iphdr *iph = (struct iphdr *)(buf + ETH_HLEN); in send_changed_ttl()
802 iph->check = checksum_fold(iph, sizeof(struct iphdr), 0); in send_changed_ttl()
811 struct iphdr *iph = (struct iphdr *)(buf + ETH_HLEN); in send_changed_tos()
821 iph->check = checksum_fold(iph, sizeof(struct iphdr), 0); in send_changed_tos()
833 struct iphdr *iph = (struct iphdr *)(buf + ETH_HLEN); in send_changed_ECN()
842 iph->check = checksum_fold(iph, sizeof(struct iphdr), 0); in send_changed_ECN()
912 struct iphdr *iph = (struct iphdr *)(buffer + ETH_HLEN); in check_recv_pkts()
952 - sizeof(struct tcphdr) - sizeof(struct iphdr); in check_recv_pkts()
1309 tcp_offset = ETH_HLEN + sizeof(struct iphdr); in main()