HomeFreeBSD

tcp: Prevent setting of ECN bits with setsockopt()

Description

tcp: Prevent setting of ECN bits with setsockopt()

setsockopt() grants full access to the deprecated
TOS byte. For TCP, mask out the ECN codepoint, so that
only the DSCP portion can be adjusted.

Reviewed By: tuexen, hselasky, manpages, transport, debdrup
Sponsored by: NetApp, Inc.
Differential Revision: https://reviews.freebsd.org/D34154

Details

Provenance
rscheffAuthored on Feb 3 2022, 6:50 PM
Reviewer
manpages
Differential Revision
D34154: Disallow setting of ECN bits with setsockopt()
Parents
rGea07ba11700f: sys/arm64/iommu/iommu_pmap.c readd sys/systm.h
Branches
Unknown
Tags
Unknown