sctp: fix parameter type in NAT status message

Thanks to Sriram Yagnaraman for providing the patch for the
userland stack.

MFC after:	3 days
This commit is contained in:
Michael Tuexen 2022-04-13 19:46:28 +02:00
parent 9ab4dfce8f
commit 595ac4a118

View File

@ -3336,7 +3336,7 @@ sctp_asconf_send_nat_state_update(struct sctp_tcb *stcb, struct sctp_nets *net)
aa_add->ap.addrp.ph.param_type = SCTP_IPV4_ADDRESS;
aa_add->ap.addrp.ph.param_length = sizeof(struct sctp_ipv4addr_param);
/* No need to fill the address, we are using 0.0.0.0 */
aa_del->ap.aph.ph.param_type = SCTP_ADD_IP_ADDRESS;
aa_del->ap.aph.ph.param_type = SCTP_DEL_IP_ADDRESS;
aa_del->ap.aph.ph.param_length = sizeof(struct sctp_asconf_addrv4_param);
aa_del->ap.addrp.ph.param_type = SCTP_IPV4_ADDRESS;
aa_del->ap.addrp.ph.param_length = sizeof(struct sctp_ipv4addr_param);