Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/ip_output.c
Show First 20 Lines • Show All 139 Lines • ▼ Show 20 Lines | |||||
#ifdef IPSEC | #ifdef IPSEC | ||||
int no_route_but_check_spd = 0; | int no_route_but_check_spd = 0; | ||||
#endif | #endif | ||||
M_ASSERTPKTHDR(m); | M_ASSERTPKTHDR(m); | ||||
if (inp != NULL) { | if (inp != NULL) { | ||||
INP_LOCK_ASSERT(inp); | INP_LOCK_ASSERT(inp); | ||||
M_SETFIB(m, inp->inp_inc.inc_fibnum); | M_SETFIB(m, inp->inp_inc.inc_fibnum); | ||||
if (inp->inp_flags & (INP_HW_FLOWID|INP_SW_FLOWID)) { | /* | ||||
* Force the flowid / flowtype for outbound data to match the | |||||
* inp. | |||||
*/ | |||||
if (((flags & IP_NODEFAULTFLOWID) == 0) && | |||||
inp->inp_flags & (INP_HW_FLOWID|INP_SW_FLOWID)) { | |||||
m->m_pkthdr.flowid = inp->inp_flowid; | m->m_pkthdr.flowid = inp->inp_flowid; | ||||
M_HASHTYPE_SET(m, inp->inp_flowtype); | M_HASHTYPE_SET(m, inp->inp_flowtype); | ||||
m->m_flags |= M_FLOWID; | m->m_flags |= M_FLOWID; | ||||
} | } | ||||
} | } | ||||
if (ro == NULL) { | if (ro == NULL) { | ||||
ro = &iproute; | ro = &iproute; | ||||
▲ Show 20 Lines • Show All 1,242 Lines • Show Last 20 Lines |