]> www.infradead.org Git - users/willy/xarray.git/commit
ioam6: improve checks on user data
authorJustin Iurman <justin.iurman@uliege.be>
Fri, 30 Aug 2024 19:19:19 +0000 (21:19 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 3 Sep 2024 18:38:32 +0000 (11:38 -0700)
commit1a5c486300e5ae9dac9bc294023a4667b75a5418
tree71a279785c10625ca0a71430b27917fc25bced97
parent54f1a107bd034e8d9052f5642280876090ebe31c
ioam6: improve checks on user data

This patch improves two checks on user data.

The first one prevents bit 23 from being set, as specified by RFC 9197
(Sec 4.4.1):

  Bit 23    Reserved; MUST be set to zero upon transmission and be
            ignored upon receipt.  This bit is reserved to allow for
            future extensions of the IOAM Trace-Type bit field.

The second one checks that the tunnel destination address !=
IPV6_ADDR_ANY, just like we already do for the tunnel source address.

Signed-off-by: Justin Iurman <justin.iurman@uliege.be>
Link: https://patch.msgid.link/20240830191919.51439-1-justin.iurman@uliege.be
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv6/ioam6_iptunnel.c