diff options
| author | Willem de Bruijn <[email protected]> | 2025-02-14 22:27:01 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2025-02-19 02:27:19 +0000 |
| commit | 9329b58395e51bba9c847419cc4ba176df3dd2b7 (patch) | |
| tree | 56c4494fdefca33e1f627224b1adc13d47297a52 /net/unix/af_unix.c | |
| parent | ipv4: initialize inet socket cookies with sockcm_init (diff) | |
| download | kernel-9329b58395e51bba9c847419cc4ba176df3dd2b7.tar.gz kernel-9329b58395e51bba9c847419cc4ba176df3dd2b7.zip | |
ipv4: remove get_rttos
Initialize the ip cookie tos field when initializing the cookie, in
ipcm_init_sk.
The existing code inverts the standard pattern for initializing cookie
fields. Default is to initialize the field from the sk, then possibly
overwrite that when parsing cmsgs (the unlikely case).
This field inverts that, setting the field to an illegal value and
after cmsg parsing checking whether the value is still illegal and
thus should be overridden.
Be careful to always apply mask INET_DSCP_MASK, as before.
Signed-off-by: Willem de Bruijn <[email protected]>
Reviewed-by: David Ahern <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
