The MTU is handled as a 32-bit entity within the SCTP stack.

This was reported by Peter Kasting from Google.

MFC after: 3 days
This commit is contained in:
Michael Tuexen 2014-09-16 09:22:43 +00:00
parent 835c4dd436
commit 43f9f175c5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=271665

View File

@ -322,7 +322,7 @@ typedef struct callout sctp_os_timer_t;
/* MTU */
/*************************/
#define SCTP_GATHER_MTU_FROM_IFN_INFO(ifn, ifn_index, af) ((struct ifnet *)ifn)->if_mtu
#define SCTP_GATHER_MTU_FROM_ROUTE(sctp_ifa, sa, rt) ((rt != NULL) ? rt->rt_mtu : 0)
#define SCTP_GATHER_MTU_FROM_ROUTE(sctp_ifa, sa, rt) ((uint32_t)((rt != NULL) ? rt->rt_mtu : 0))
#define SCTP_GATHER_MTU_FROM_INTFC(sctp_ifn) ((sctp_ifn->ifn_p != NULL) ? ((struct ifnet *)(sctp_ifn->ifn_p))->if_mtu : 0)
#define SCTP_SET_MTU_OF_ROUTE(sa, rt, mtu) do { \
if (rt != NULL) \