]> 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)
commiteee6acc3c2d4f8d154517299ccae10a0b47006c0
tree215bc1012eddca60324250cb6d384a549babde50
parent02471e279f03b829b0de10fdb7e7028f9444252f
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