Lines Matching refs:ip
50 #include <netinet/ip.h>
71 struct in_addr laddr; /* local ip address */
72 struct in_addr paddr; /* public ip address */
73 struct in_addr raddr; /* remote ip address */
90 struct in_addr ip; /* nat ip address */
130 ptr->ip = ((struct sockaddr_in *)
132 LibAliasSetAddress(ptr->lib, ptr->ip);
297 struct ip *ip;
310 ip = mtod(mcl, struct ip *);
407 mcl->m_pkthdr.len = mcl->m_len = ntohs(ip->ip_len);
414 if ((ip->ip_off & htons(IP_OFFMASK)) == 0 &&
415 ip->ip_p == IPPROTO_TCP) {
418 th = (struct tcphdr *)(ip + 1);
428 ip_len = ntohs(ip->ip_len);
429 cksum = in_pseudo(ip->ip_src.s_addr, ip->ip_dst.s_addr,
430 htons(ip->ip_p + ip_len - (ip->ip_hl << 2)));
432 switch (ip->ip_p) {
434 th = (struct tcphdr *)(ip + 1);
445 uh = (struct udphdr *)(ip + 1);
525 * XXX - what if this rule doesn't nat any ip and just
529 ptr->ip = ucfg->ip;
536 LibAliasSetAddress(ptr->lib, ptr->ip);
662 ucfg->ip = ptr->ip;
924 struct in_addr ip;
965 ucfg->ip = cfg->ip;
1070 ucfg->ip = n->ip;