Lines Matching refs:dest
116 ip_redir_alloc(struct mbuf *m, struct ip *ip, struct in_addr dest,
121 ip_redir_alloc(struct mbuf *m, struct ip *ip, struct in_addr dest,
131 if (fib4_lookup_nh_ext(M_GETFIB(m), dest, 0, 0, &nh) != 0)
170 ip_findroute(struct nhop4_basic *pnh, struct in_addr dest, struct mbuf *m)
174 if (fib4_lookup_nh_basic(M_GETFIB(m), dest, 0, 0, pnh) != 0) {
212 struct in_addr dest, odest, rtdest;
283 odest.s_addr = dest.s_addr = ip->ip_dst.s_addr;
300 dest.s_addr = ip->ip_dst.s_addr;
305 if (odest.s_addr != dest.s_addr) {
309 if (in_localip(dest))
361 dest.s_addr = ((struct sockaddr_in *)
370 if (ip_findroute(&nh, dest, m) != 0)
376 rtdest.s_addr = dest.s_addr;
393 dest.s_addr = ip->ip_dst.s_addr;
402 if (odest.s_addr != dest.s_addr || fwd_tag != NULL) {
406 if (m->m_flags & M_FASTFWD_OURS || in_localip(dest)) {
418 dest.s_addr = ((struct sockaddr_in *)
423 if (dest.s_addr != rtdest.s_addr &&
424 ip_findroute(&nh, dest, m) != 0)
445 mcopy = ip_redir_alloc(m, ip, dest, &redest.s_addr);