-/* $OpenBSD: ip_input.c,v 1.257 2015/10/13 10:29:16 mpi Exp $ */
+/* $OpenBSD: ip_input.c,v 1.258 2015/10/19 11:59:26 mpi Exp $ */
/* $NetBSD: ip_input.c,v 1.30 1996/03/16 23:53:58 christos Exp $ */
/*
satosin(rt_key(rt))->sin_addr.s_addr != 0 &&
ipsendredirects && !srcrt &&
!arpproxy(satosin(rt_key(rt))->sin_addr, m->m_pkthdr.ph_rtableid)) {
- if (rt->rt_ifa &&
- (ip->ip_src.s_addr & ifatoia(rt->rt_ifa)->ia_netmask) ==
+ if ((ip->ip_src.s_addr & ifatoia(rt->rt_ifa)->ia_netmask) ==
ifatoia(rt->rt_ifa)->ia_net) {
if (rt->rt_flags & RTF_GATEWAY)
dest = satosin(rt->rt_gateway)->sin_addr.s_addr;
-/* $OpenBSD: frag6.c,v 1.63 2015/09/10 16:39:39 mpi Exp $ */
+/* $OpenBSD: frag6.c,v 1.64 2015/10/19 11:59:26 mpi Exp $ */
/* $KAME: frag6.c,v 1.40 2002/05/27 21:40:31 itojun Exp $ */
/*
rt = rtalloc_mpath(sin6tosa(&dst), &ip6->ip6_src.s6_addr32[0],
m->m_pkthdr.ph_rtableid);
-
if (rt != NULL) {
- if (rt->rt_ifa != NULL)
- dstifp = ifatoia6(rt->rt_ifa)->ia_ifp;
+ dstifp = ifatoia6(rt->rt_ifa)->ia_ifp;
rtfree(rt);
rt = NULL;
}