]> git.baikalelectronics.ru Git - kernel.git/commit
ila: Add struct definitions and helpers
authorTom Herbert <tom@herbertland.com>
Sat, 23 Apr 2016 18:46:55 +0000 (11:46 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 Apr 2016 05:25:22 +0000 (01:25 -0400)
commita757c03fb3bf2f1315be4f493c277f1ed7995b20
tree215bc1012eddca60324250cb6d384a549babde50
parent8aa4c50be906bd1edd923eb368e52dcdd553eb22
ila: Add struct definitions and helpers

Add structures for identifiers, locators, and an ila address which
is composed of a locator and identifier and in6_addr can be cast to
it. This includes a three bit type field and enums for the types defined
in ILA I-D.

In ILA lwt don't allow user to set a translation for a non-ILA
address (type of identifier is zero meaning it is an IID). This also
requires that the destination prefix is at least 65 bytes (64
bit locator and first byte of identifier).

Signed-off-by: Tom Herbert <tom@herbertland.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ila/ila.h
net/ipv6/ila/ila_common.c
net/ipv6/ila/ila_lwt.c
net/ipv6/ila/ila_xlat.c