aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/dhcp/dhcp6_packet.h
diff options
context:
space:
mode:
authorJohn Lo <loj@cisco.com>2017-11-14 13:19:26 -0500
committerDave Barach <openvpp@barachs.net>2017-11-16 11:25:51 +0000
commit70bfcaf47779340951c1e6f169b1cedcabe708d1 (patch)
treeb6e1378942f278e914b7139d1210562d943cb680 /src/vnet/dhcp/dhcp6_packet.h
parent9d72120a6986e642c5b16c8650ad266188adf142 (diff)
Add Support of DHCP VSS Type 0 where VPN-ID is ASCII
Enhence support of DHCP VSS (Virtual Subnet Selection) to include VSS type 0 where VSS info is a NVT (Network Virtual Terminal) ASCII VPN ID where the ASCII string MUST NOT be terminated with a zero byte. Existing code already support VSS type 1, where VSS information is a RFC 2685 VPN-ID of 7 bytes with 3 bytes OUI and 4 bytes VPN index, and VSS type 255 indicating global VPN. Change-Id: I54edbc447c89a2aacd1cc9fc72bd5ba386037608 Signed-off-by: John Lo <loj@cisco.com>
Diffstat (limited to 'src/vnet/dhcp/dhcp6_packet.h')
-rw-r--r--src/vnet/dhcp/dhcp6_packet.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vnet/dhcp/dhcp6_packet.h b/src/vnet/dhcp/dhcp6_packet.h
index ddcde7a0dd9..24a18144b16 100644
--- a/src/vnet/dhcp/dhcp6_packet.h
+++ b/src/vnet/dhcp/dhcp6_packet.h
@@ -164,7 +164,8 @@ typedef CLIB_PACKED (struct {
typedef CLIB_PACKED (struct {
dhcpv6_option_t opt;
- u8 data[8]; // data[0]:type, data[1..7]: VPN ID
+ u8 vss_type;
+ u8 data[0];
}) dhcpv6_vss_t;
typedef CLIB_PACKED (struct {