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/fuzz.go b/vendor/github.com/mdlayher/ethernet/fuzz.go
new file mode 100644
index 0000000..5d22532
--- /dev/null
+++ b/vendor/github.com/mdlayher/ethernet/fuzz.go
@@ -0,0 +1,24 @@
+// +build gofuzz
+
+package ethernet
+
+func Fuzz(data []byte) int {
+ f := new(Frame)
+ if err := f.UnmarshalBinary(data); err != nil {
+ return 0
+ }
+
+ if _, err := f.MarshalBinary(); err != nil {
+ panic(err)
+ }
+
+ if err := f.UnmarshalFCS(data); err != nil {
+ return 0
+ }
+
+ if _, err := f.MarshalFCS(); err != nil {
+ panic(err)
+ }
+
+ return 1
+}