Lines Matching refs:in_addr
306 struct in_addr dst; /* final destination */
309 struct in_addr route[MAX_IPOPTLEN/sizeof(struct in_addr)];
313 static void save_rte(u_char *, struct in_addr);
542 struct in_addr pkt_dst;
1649 struct in_addr *sin, dst;
1718 if (off > optlen - (int)sizeof(struct in_addr)) {
1775 sizeof(struct in_addr));
1778 cp[IPOPT_OFFSET] += sizeof(struct in_addr);
1798 if (off > optlen - (int)sizeof(struct in_addr))
1814 sizeof(struct in_addr));
1817 cp[IPOPT_OFFSET] += sizeof(struct in_addr);
1840 sin = (struct in_addr *)(cp + ipt->ipt_ptr - 1);
1848 sizeof(struct in_addr) > ipt->ipt_len) {
1859 sizeof(struct in_addr));
1860 ipt->ipt_ptr += sizeof(struct in_addr);
1867 sizeof(struct in_addr) > ipt->ipt_len) {
1873 sizeof(struct in_addr));
1878 ipt->ipt_ptr += sizeof(struct in_addr);
1914 ip_rtaddr(struct in_addr dst, struct route *rt)
1949 save_rte(u_char *option, struct in_addr dst)
1961 ip_nhops = (olen - IPOPT_OFFSET - 1) / sizeof(struct in_addr);
1973 struct in_addr *p, *q;
1985 m->m_len = ip_nhops * sizeof(struct in_addr) + sizeof(struct in_addr) +
1996 *(mtod(m, struct in_addr *)) = *p--;
1999 printf(" hops %lx", (u_long)ntohl(mtod(m, struct in_addr *)->s_addr));
2007 (void)memcpy(mtod(m, caddr_t) + sizeof(struct in_addr),
2009 q = (struct in_addr *)(mtod(m, caddr_t) +
2010 sizeof(struct in_addr) + OPTSIZ);
2091 struct in_addr pkt_dst;
2385 sizeof(struct in_addr), IP_RECVDSTADDR, IPPROTO_IP);
2397 sizeof(struct in_addr), IP_RECVOPTS, IPPROTO_IP);
2404 sizeof(struct in_addr), IP_RECVRETOPTS, IPPROTO_IP);