Updated Adapter to support to handle DHCP trap on NNI and packet-in/out and Bug Fixing.
Tested EAPOL/DHCP/HSIA functionality E2E with EdgeCore OLT and TWSH ONU KIT.
patch: PON port is derived from platform and sent to core and bug fixes
Retested EAPOL/DHCP/HSIA use case end to end with EdgeCore OLT and TWSH ONU KIT
Change-Id: I99df82fd7a1385c10878f6fe09ce0d30c48d8e99
diff --git a/vendor/github.com/mdlayher/ethernet/string.go b/vendor/github.com/mdlayher/ethernet/string.go
new file mode 100644
index 0000000..89a3e01
--- /dev/null
+++ b/vendor/github.com/mdlayher/ethernet/string.go
@@ -0,0 +1,38 @@
+// Code generated by "stringer -output=string.go -type=EtherType"; DO NOT EDIT.
+
+package ethernet
+
+import "fmt"
+
+const (
+ _EtherType_name_0 = "EtherTypeIPv4"
+ _EtherType_name_1 = "EtherTypeARP"
+ _EtherType_name_2 = "EtherTypeVLAN"
+ _EtherType_name_3 = "EtherTypeIPv6"
+ _EtherType_name_4 = "EtherTypeServiceVLAN"
+)
+
+var (
+ _EtherType_index_0 = [...]uint8{0, 13}
+ _EtherType_index_1 = [...]uint8{0, 12}
+ _EtherType_index_2 = [...]uint8{0, 13}
+ _EtherType_index_3 = [...]uint8{0, 13}
+ _EtherType_index_4 = [...]uint8{0, 20}
+)
+
+func (i EtherType) String() string {
+ switch {
+ case i == 2048:
+ return _EtherType_name_0
+ case i == 2054:
+ return _EtherType_name_1
+ case i == 33024:
+ return _EtherType_name_2
+ case i == 34525:
+ return _EtherType_name_3
+ case i == 34984:
+ return _EtherType_name_4
+ default:
+ return fmt.Sprintf("EtherType(%d)", i)
+ }
+}