diff options
author | Pierre Pfister <ppfister@cisco.com> | 2016-04-25 14:15:15 +0100 |
---|---|---|
committer | Damjan Marion <damarion@cisco.com> | 2016-04-26 14:09:00 +0000 |
commit | 1dabaafcebb02699cae1ebd2b58e34dfe6b0f064 (patch) | |
tree | f07da13dee800ebbbdab85233249289c38c89203 /vnet/vnet/ip/format.h | |
parent | 0371807f7b1213ee474f8850dc85ae5dd0a24532 (diff) |
Port glean neighbor entry support to IPv6
This patch is more or less a port of I71f3ba0c8192 to IPv6.
In practice it allows creating a route via a neighbor which is not resolved yet.
It also adds static flag to IPv6 neighbor entries.
And as Damjan suggested, it formalizes ip46_address_t by using
the IPv4 embedded IPv6 address format.
Change-Id: Ifa7328a03380ea4ff118b7ca4897b4ab23a3e57c
Signed-off-by: Pierre Pfister <ppfister@cisco.com>
Diffstat (limited to 'vnet/vnet/ip/format.h')
-rw-r--r-- | vnet/vnet/ip/format.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/vnet/vnet/ip/format.h b/vnet/vnet/ip/format.h index 511a9346bf6..4d73d6b1bf2 100644 --- a/vnet/vnet/ip/format.h +++ b/vnet/vnet/ip/format.h @@ -51,6 +51,15 @@ unformat_function_t unformat_tcp_udp_port; format_function_t format_ip_adjacency; format_function_t format_ip_adjacency_packet_data; +format_function_t format_ip46_address; + +typedef enum { + IP46_TYPE_ANY, + IP46_TYPE_IP4, + IP46_TYPE_IP6 +} ip46_type_t; +/* unformat_ip46_address expects arguments (ip46_address_t *, ip46_type_t) + * The type argument is used to enforce a particular IP version. */ unformat_function_t unformat_ip46_address; /* IP4 */ |