[SEBA-875] Filtering out LLDP packets
Change-Id: Ia25771e307daf724a00f9fa263a69ba280b4df9a
diff --git a/internal/bbsim/packetHandlers/filters.go b/internal/bbsim/packetHandlers/filters.go
index b43b677..9ada88c 100644
--- a/internal/bbsim/packetHandlers/filters.go
+++ b/internal/bbsim/packetHandlers/filters.go
@@ -30,6 +30,13 @@
return false
}
+func IsLldpPacket(pkt gopacket.Packet) bool {
+ if layer := pkt.Layer(layers.LayerTypeLinkLayerDiscovery); layer != nil {
+ return true
+ }
+ return false
+}
+
// return true if the packet is coming in the OLT from the NNI port
// it uses the ack to check if the source is the one we assigned to the
// dhcp server