Fix the reporting of the PMTUD state for specific paths.

MFC after: 3 days
This commit is contained in:
tuexen 2015-06-12 18:59:29 +00:00
parent 146839518d
commit dd78cae9d3

View File

@ -2464,9 +2464,9 @@ sctp_getopt(struct socket *so, int optname, void *optval, size_t *optsize,
}
/* get flags for PMTU */
if (net->dest_state & SCTP_ADDR_NO_PMTUD) {
paddrp->spp_flags |= SPP_PMTUD_ENABLE;
} else {
paddrp->spp_flags |= SPP_PMTUD_DISABLE;
} else {
paddrp->spp_flags |= SPP_PMTUD_ENABLE;
}
if (net->dscp & 0x01) {
paddrp->spp_dscp = net->dscp & 0xfc;