aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/net/lapb/lapb_timer.c
diff options
context:
space:
mode:
authorWillem de Bruijn <willemb@google.com>2025-02-14 17:27:01 -0500
committerJakub Kicinski <kuba@kernel.org>2025-02-18 18:27:19 -0800
commit9329b58395e51bba9c847419cc4ba176df3dd2b7 (patch)
tree56c4494fdefca33e1f627224b1adc13d47297a52 /net/lapb/lapb_timer.c
parentipv4: initialize inet socket cookies with sockcm_init (diff)
downloadwireguard-linux-9329b58395e51bba9c847419cc4ba176df3dd2b7.tar.xz
wireguard-linux-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 <willemb@google.com> Reviewed-by: David Ahern <dsahern@kernel.org> Link: https://patch.msgid.link/20250214222720.3205500-5-willemdebruijn.kernel@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions