Lines Matching defs:ip
140 struct ip *ip;
156 ip = mtod(m, struct ip *);
157 udp = (struct udphdr *)&ip[1]; /* ip attributes */
159 iphlen = sizeof(struct ip);
161 m->m_len += sizeof(struct ip);
165 ip->ip_src.s_addr = so->so_laddr.s_addr;
166 ip->ip_dst.s_addr = RT_H2N_U32(RT_N2H_U32(pData->special_addr.s_addr) | CTL_DNS);
199 * mbuf points on ip header to easy fetch information about source and destination.
200 * iphlen - len of ip header
217 struct ip *ip;
326 ip = mtod(m, struct ip *);
329 fromaddr.sin_addr.s_addr = ip->ip_src.s_addr;
333 /* iphlen equals to lenght of ip header */
334 Assert(iphlen == sizeof(struct ip));