Lines Matching refs:iphdr
110 next_off = offsetof(struct iphdr, protocol); in setup_sock_filter()
223 struct iphdr *iph = buf; in fill_networklayer()
244 payload_len + sizeof(struct iphdr)); in fill_networklayer()
250 iph->check = checksum_fold(buf, sizeof(struct iphdr), 0); in fill_networklayer()
379 struct iphdr *iph = (struct iphdr *)(buf + ETH_HLEN); in recompute_packet()
391 iph->check = checksum_fold(iph, sizeof(struct iphdr), 0); in recompute_packet()
557 struct iphdr *iph; in add_ipv4_ts_option()
571 iph = (struct iphdr *)(optpkt + ETH_HLEN); in add_ipv4_ts_option()
575 iph->check = checksum_fold(iph, sizeof(struct iphdr) + optlen, 0); in add_ipv4_ts_option()
601 struct iphdr *iph = (struct iphdr *)(buf + ETH_HLEN); in send_fragment4()
618 iph->check = checksum_fold(iph, sizeof(struct iphdr), 0); in send_fragment4()
627 struct iphdr *iph = (struct iphdr *)(buf + ETH_HLEN); in send_changed_ttl()
635 iph->check = checksum_fold(iph, sizeof(struct iphdr), 0); in send_changed_ttl()
644 struct iphdr *iph = (struct iphdr *)(buf + ETH_HLEN); in send_changed_tos()
654 iph->check = checksum_fold(iph, sizeof(struct iphdr), 0); in send_changed_tos()
666 struct iphdr *iph = (struct iphdr *)(buf + ETH_HLEN); in send_changed_ECN()
675 iph->check = checksum_fold(iph, sizeof(struct iphdr), 0); in send_changed_ECN()
745 struct iphdr *iph = (struct iphdr *)(buffer + ETH_HLEN); in check_recv_pkts()
784 - sizeof(struct tcphdr) - sizeof(struct iphdr); in check_recv_pkts()
1078 tcp_offset = ETH_HLEN + sizeof(struct iphdr); in main()