netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v5 net-next 0/7] ipv6: Extension header infrastructure
@ 2019-10-03 21:57 Tom Herbert
  2019-10-03 21:57 ` [PATCH v5 net-next 1/7] ipeh: Create exthdrs_options.c and ipeh.h Tom Herbert
                   ` (6 more replies)
  0 siblings, 7 replies; 20+ messages in thread
From: Tom Herbert @ 2019-10-03 21:57 UTC (permalink / raw)
  To: davem, netdev; +Cc: Tom Herbert

This patchset improves the IPv6 extension header infrastructure
to make extension headers more usable and scalable.

  - Reorganize extension header files to separate out common
    API components
  - Create common TLV handler that will can be used in other use
    cases (e.g. segment routing TLVs, UDP options)
  - Allow registration of TLV handlers
  - Elaborate on the TLV tables to include more characteristics
  - Add a netlink interface to set TLV parameters (such as
    alignment requirements, authorization to send, etc.)
  - Enhance validation of TLVs being sent. Validation is strict
    (unless overridden by admin) following that sending clause
    of the robustness principle
  - Allow non-privileged users to set Hop-by-Hop and Destination
    Options if authorized by the admin

v2:
  - Fix build errors from missing include file.

v3:
  - Fix kbuild issue for ipv6_opt_hdr declared inside parameter list
    in ipeh.h

v4:
  - Resubmit

v5:
  - Fix reverse christmas tree issue

Tom Herbert (7):
  ipeh: Create exthdrs_options.c and ipeh.h
  ipeh: Move generic EH functions to exthdrs_common.c
  ipeh: Generic TLV parser
  ip6tlvs: Registration of TLV handlers and parameters
  ip6tlvs: Add TX parameters
  ip6tlvs: Add netlink interface
  ip6tlvs: Validation of TX Destination and Hop-by-Hop options

 include/net/ipeh.h         |  208 ++++++++
 include/net/ipv6.h         |   12 +-
 include/uapi/linux/in6.h   |    6 +
 include/uapi/linux/ipeh.h  |   53 ++
 net/dccp/ipv6.c            |    2 +-
 net/ipv6/Kconfig           |    4 +
 net/ipv6/Makefile          |    3 +-
 net/ipv6/calipso.c         |    6 +-
 net/ipv6/datagram.c        |   51 +-
 net/ipv6/exthdrs.c         |  505 ++-----------------
 net/ipv6/exthdrs_common.c  | 1158 ++++++++++++++++++++++++++++++++++++++++++++
 net/ipv6/exthdrs_options.c |  342 +++++++++++++
 net/ipv6/ipv6_sockglue.c   |   39 +-
 net/ipv6/raw.c             |    2 +-
 net/ipv6/tcp_ipv6.c        |    2 +-
 net/ipv6/udp.c             |    2 +-
 net/l2tp/l2tp_ip6.c        |    2 +-
 net/sctp/ipv6.c            |    2 +-
 18 files changed, 1881 insertions(+), 518 deletions(-)
 create mode 100644 include/net/ipeh.h
 create mode 100644 include/uapi/linux/ipeh.h
 create mode 100644 net/ipv6/exthdrs_common.c
 create mode 100644 net/ipv6/exthdrs_options.c

-- 
2.7.4


^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2019-12-18 10:56 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-03 21:57 [PATCH v5 net-next 0/7] ipv6: Extension header infrastructure Tom Herbert
2019-10-03 21:57 ` [PATCH v5 net-next 1/7] ipeh: Create exthdrs_options.c and ipeh.h Tom Herbert
2019-10-06 13:02   ` Simon Horman
2019-12-14 18:44     ` Tom Herbert
2019-10-03 21:57 ` [PATCH v5 net-next 2/7] ipeh: Move generic EH functions to exthdrs_common.c Tom Herbert
2019-10-06 13:00   ` Simon Horman
2019-12-14 18:47     ` Tom Herbert
2019-12-18 10:56       ` Simon Horman
2019-10-03 21:58 ` [PATCH v5 net-next 3/7] ipeh: Generic TLV parser Tom Herbert
2019-10-06 13:05   ` Simon Horman
2019-12-14 19:08     ` Tom Herbert
2019-10-03 21:58 ` [PATCH v5 net-next 4/7] ip6tlvs: Registration of TLV handlers and parameters Tom Herbert
2019-10-06 13:18   ` Simon Horman
2019-10-03 21:58 ` [PATCH v5 net-next 5/7] ip6tlvs: Add TX parameters Tom Herbert
2019-10-06 13:25   ` Simon Horman
2019-12-14 19:19     ` Tom Herbert
2019-10-03 21:58 ` [PATCH v5 net-next 6/7] ip6tlvs: Add netlink interface Tom Herbert
2019-10-07 12:39   ` Simon Horman
2019-12-14 19:25     ` Tom Herbert
2019-10-03 21:58 ` [PATCH v5 net-next 7/7] ip6tlvs: Validation of TX Destination and Hop-by-Hop options Tom Herbert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).