]> git.baikalelectronics.ru Git - kernel.git/commit
net-ipv6-ndisc: add support for RFC7710 RA Captive Portal Identifier
authorMaciej Żenczykowski <maze@google.com>
Fri, 19 Jul 2019 06:30:03 +0000 (23:30 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 Jul 2019 19:10:54 +0000 (12:10 -0700)
commit7562e975a28c014f841ef3d94153bc3c90cab607
tree05625afbad5cdc50dc46b95ed9fc9d4aa3d190a2
parentec768f57ebfa347d1c4e002eee53fcdea2250e5e
net-ipv6-ndisc: add support for RFC7710 RA Captive Portal Identifier

This is trivial since we already have support for the entirely
identical (from the kernel's point of view) RDNSS and DNSSL that
also contain opaque data that needs to be passed down to userspace.

As specified in RFC7710, Captive Portal option contains a URL.
8-bit identifier of the option type as assigned by the IANA is 37.
This option should also be treated as userland.

Hence, treat ND option 37 as userland (Captive Portal support)

See:
  https://tools.ietf.org/html/rfc7710
  https://www.iana.org/assignments/icmpv6-parameters/icmpv6-parameters.xhtml

Fixes: adf0562248881
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Cc: Lorenzo Colitti <lorenzo@google.com>
Cc: Remin Nguyen Van <reminv@google.com>
Cc: Alexey I. Froloff <raorn@raorn.name>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ndisc.h
net/ipv6/ndisc.c