Lines Matching defs:ip
65 #include <netinet/ip.h>
196 struct ip *ip = NULL;
510 * IPv4 handling has a clear separation of ip options and ip header
512 * the right thing below to provide length of just ip options and thus
513 * checking for ipoptlen is enough to decide if ip options are present.
1111 ip = mtod(m, struct ip *);
1113 ipov = (struct ipovly *)ip;
1115 th = (struct tcphdr *)(ip + 1);
1116 tcpip_fillheaders(tp->t_inpcb, ip, th);
1157 ip->ip_tos |= IPTOS_ECN_ECT0;
1299 th->th_sum = in_pseudo(ip->ip_src.s_addr, ip->ip_dst.s_addr,
1303 KASSERT(ip->ip_v == IPVERSION,
1304 ("%s: IP version incorrect: %d", __func__, ip->ip_v));
1411 ip->ip_len = htons(m->m_pkthdr.len);
1414 ip->ip_ttl = in6_selecthlim(tp->t_inpcb, NULL);
1425 ip->ip_off |= htons(IP_DF);
1432 TCP_PROBE5(connect__request, NULL, tp, ip, tp, th);
1434 TCP_PROBE5(send, NULL, tp, ip, tp, th);