HomeFreeBSD

sctp: use the correct traffic class when sending SCTP/IPv6 packets

Description

sctp: use the correct traffic class when sending SCTP/IPv6 packets

When sending packets the stcb was used to access the inp and then
access the endpoint specific IPv6 level options. This fails when
there exists an inp, but no stcb yet. This is the case for sending
an INIT-ACK in response to an INIT when no association already
exists. Fix this by just providing the inp instead of the stcb.

PR: 260120
MFC after: 1 week

Details

Provenance
tuexenAuthored on Dec 3 2021, 8:28 PM
Parents
rG13e3f3349f42: in_pcb: fix TCP local ephemeral port accounting
Branches
Unknown
Tags
Unknown