Page MenuHomeFreeBSD

ECN incorrectly set
ClosedPublic

Authored by rrs on Feb 12 2020, 12:44 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Sep 10, 4:08 AM
Unknown Object (File)
Tue, Sep 8, 9:28 PM
Unknown Object (File)
Tue, Sep 8, 10:22 AM
Unknown Object (File)
Mon, Sep 7, 8:42 PM
Unknown Object (File)
Mon, Sep 7, 6:03 AM
Unknown Object (File)
Mon, Sep 7, 2:33 AM
Unknown Object (File)
Sun, Sep 6, 10:12 PM
Unknown Object (File)
Sun, Sep 6, 9:25 AM
Subscribers

Details

Summary

ECN requires that on the SYN both the CWR and ECT bits be set in order
for it to be considered a "request" for ECN. We therefore did not
correctly check for this condition. This fix should make it so we
enforce the RFC properly.

Test Plan

We can use pkt-drill to send in a SYN and make sure that it only
responds to the correct "ECN condtion" i.e. both bits set.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Feb 12 2020, 12:47 PM
This revision was automatically updated to reflect the committed changes.

Good catch!

I should have found that in D23230, when extending the meaning of V_tcp_do_ecn (for ECN+ and ECN++).

Please have a look into D23373 (simultaneous opens) also.