Fix reporting the MTU in spinfo_mtu for AF_CONN sockets.
@@ -3244,6 +3244,11 @@ sctp_getopt(struct socket *so, int optname, void *optval, size_t *optsize,
case AF_INET6:
paddri->spinfo_mtu -= SCTP_MIN_OVERHEAD;
break;
+#endif
+#if defined(__Userspace__)
+ case AF_CONN:
+ paddri->spinfo_mtu -= sizeof(struct sctphdr);
+ break;
#endif
default:
break;
@@ -3341,6 +3346,11 @@ sctp_getopt(struct socket *so, int optname, void *optval, size_t *optsize,
case AF_INET6:
sstat->sstat_primary.spinfo_mtu -= SCTP_MIN_OVERHEAD;
break;
+#endif
+#if defined(__Userspace__)
+ case AF_CONN:
+ sstat->sstat_primary.spinfo_mtu -= sizeof(struct sctphdr);
+ break;
#endif
default:
break;
