parent
ac99fd86d4
commit
454d389645
@ -61,6 +61,8 @@ __FBSDID("$FreeBSD$");
|
||||
#include <net/nhop.h>
|
||||
#include <net/rss_config.h>
|
||||
#endif
|
||||
#include <net/route.h>
|
||||
#include <net/route/nhop.h>
|
||||
#if defined(INET) || defined(INET6)
|
||||
#include <netinet/in.h>
|
||||
#include <netinet/in_pcb.h>
|
||||
|
@ -13901,7 +13901,7 @@ sctp_v4src_match_nexthop(struct sctp_ifa *sifa, sctp_route_t *ro)
|
||||
sin = &ro->ro_nh->gw4_sa;
|
||||
gwnetaddr.s_addr = (sin->sin_addr.s_addr & mask->sin_addr.s_addr);
|
||||
SCTPDBG(SCTP_DEBUG_OUTPUT1, "match_nexthop4: nexthop is ");
|
||||
SCTPDBG_ADDR(SCTP_DEBUG_OUTPUT2, &ro->ro_nh->gw4_sa);
|
||||
SCTPDBG_ADDR(SCTP_DEBUG_OUTPUT2, &ro->ro_nh->gw_sa);
|
||||
SCTPDBG(SCTP_DEBUG_OUTPUT1, "network address is %x\n", gwnetaddr.s_addr);
|
||||
if (srcnetaddr.s_addr == gwnetaddr.s_addr) {
|
||||
return (1);
|
||||
|
@ -68,6 +68,7 @@ __FBSDID("$FreeBSD$");
|
||||
#include <vm/uma.h>
|
||||
|
||||
#include <net/route.h>
|
||||
#include <net/route/nhop.h>
|
||||
#include <net/vnet.h>
|
||||
|
||||
#define TCPSTATES /* for logging */
|
||||
@ -9778,8 +9779,8 @@ send:
|
||||
((so->so_options & SO_DONTROUTE) ? IP_ROUTETOIF : 0),
|
||||
NULL, NULL, inp);
|
||||
|
||||
if (error == EMSGSIZE && inp->inp_route6.ro_rt != NULL)
|
||||
mtu = inp->inp_route6.ro_rt->rt_mtu;
|
||||
if (error == EMSGSIZE && inp->inp_route6.ro_nh != NULL)
|
||||
mtu = inp->inp_route6.ro_nh->nh_mtu;
|
||||
}
|
||||
#endif /* INET6 */
|
||||
#if defined(INET) && defined(INET6)
|
||||
@ -9819,8 +9820,8 @@ send:
|
||||
error = ip_output(m, tp->t_inpcb->inp_options, &inp->inp_route,
|
||||
((so->so_options & SO_DONTROUTE) ? IP_ROUTETOIF : 0), 0,
|
||||
inp);
|
||||
if (error == EMSGSIZE && inp->inp_route.ro_rt != NULL)
|
||||
mtu = inp->inp_route.ro_rt->rt_mtu;
|
||||
if (error == EMSGSIZE && inp->inp_route.ro_nh != NULL)
|
||||
mtu = inp->inp_route.ro_nh->nh_mtu;
|
||||
}
|
||||
#endif /* INET */
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user