Lines Matching refs:ip
74 #include <netinet/ip.h>
1706 struct ip *ip = NULL;
1719 sizeof(struct ip);
1763 ip = mtod(m, struct ip *);
1764 ip->ip_v = IPVERSION;
1765 ip->ip_hl = sizeof(struct ip) >> 2;
1766 ip->ip_len = htons(tlen);
1767 ip->ip_id = 0;
1768 ip->ip_off = 0;
1769 ip->ip_sum = 0;
1770 ip->ip_p = IPPROTO_TCP;
1771 ip->ip_src = sc->sc_inc.inc_laddr;
1772 ip->ip_dst = sc->sc_inc.inc_faddr;
1773 ip->ip_ttl = sc->sc_ip_ttl;
1774 ip->ip_tos = sc->sc_ip_tos;
1784 ip->ip_off |= htons(IP_DF);
1786 th = (struct tcphdr *)(ip + 1);
1849 ip->ip_len = htons(ntohs(ip->ip_len) + optlen);
1902 th->th_sum = in_pseudo(ip->ip_src.s_addr, ip->ip_dst.s_addr,
1913 TCP_PROBE5(send, NULL, NULL, ip, NULL, th);