Skip to content
Snippets Groups Projects
Commit 45eaa358 authored by Guillaume Valadon's avatar Guillaume Valadon
Browse files

Merged in tweksteen/scapy (pull request #24)

Modify the default domain for DTP. The NULL domain only contains one "\x00".
parents 66d55d5c 060f9562
No related branches found
No related tags found
No related merge requests found
...@@ -63,7 +63,7 @@ class DTPDomain(DtpGenericTlv): ...@@ -63,7 +63,7 @@ class DTPDomain(DtpGenericTlv):
name = "DTP Domain" name = "DTP Domain"
fields_desc = [ ShortField("type", 1), fields_desc = [ ShortField("type", 1),
FieldLenField("length", None, "domain", adjust=lambda pkt,x:x + 4), FieldLenField("length", None, "domain", adjust=lambda pkt,x:x + 4),
StrLenField("domain", "\x00\x00\x00\x00\x00\x00\x00\x00\x00", length_from=lambda pkt:pkt.length - 4) StrLenField("domain", "\x00", length_from=lambda pkt:pkt.length - 4)
] ]
class DTPStatus(DtpGenericTlv): class DTPStatus(DtpGenericTlv):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment