Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/ip_output.c
Show First 20 Lines • Show All 507 Lines • ▼ Show 20 Lines | else if ((ifp->if_flags & IFF_BROADCAST) && (gw->sa_family == AF_INET)) | ||||
isbroadcast = in_ifaddr_broadcast(((const struct sockaddr_in *)gw)->sin_addr, ia); | isbroadcast = in_ifaddr_broadcast(((const struct sockaddr_in *)gw)->sin_addr, ia); | ||||
else | else | ||||
isbroadcast = 0; | isbroadcast = 0; | ||||
mtu = nh->nh_mtu; | mtu = nh->nh_mtu; | ||||
src = IA_SIN(ia)->sin_addr; | src = IA_SIN(ia)->sin_addr; | ||||
} else { | } else { | ||||
struct nhop_object *nh; | struct nhop_object *nh; | ||||
nh = fib4_lookup(M_GETFIB(m), ip->ip_dst, 0, NHR_NONE, | nh = fib4_lookup(M_GETFIB(m), dst->sin_addr, 0, NHR_NONE, | ||||
m->m_pkthdr.flowid); | m->m_pkthdr.flowid); | ||||
if (nh == NULL) { | if (nh == NULL) { | ||||
#if defined(IPSEC) || defined(IPSEC_SUPPORT) | #if defined(IPSEC) || defined(IPSEC_SUPPORT) | ||||
/* | /* | ||||
* There is no route for this packet, but it is | * There is no route for this packet, but it is | ||||
* possible that a matching SPD entry exists. | * possible that a matching SPD entry exists. | ||||
*/ | */ | ||||
no_route_but_check_spd = 1; | no_route_but_check_spd = 1; | ||||
▲ Show 20 Lines • Show All 1,077 Lines • Show Last 20 Lines |