https://tools.ietf.org/html/draft-ietf-dhc-implementation-02#section-4.7.2
states that DHCP relays should use source port 67 and dest port 67.
---
ryu/lib/packet/udp.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/ryu/lib/packet/udp.py b/ryu/lib/packet/udp.py
index bae6d73..30130e1 100644
--- a/ryu/lib/packet/udp.py
+++ b/ryu/lib/packet/udp.py
@@ -51,7 +51,9 @@ class udp(packet_base.PacketBase):
@classmethod
def get_packet_type(cls, src_port, dst_port):
- if (src_port == 68 and dst_port == 67) or (src_port == 67 and
dst_port == 68):
+ if ((src_port == 68 and dst_port == 67) or
+ (src_port == 67 and dst_port == 68) or
+ (src_port == 67 and dst_port == 67)):
return dhcp.dhcp
return None
--
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel