summaryrefslogtreecommitdiffstats
path: root/scripts/external_libs/scapy-python3-0.18/scapy/layers/mgcp.py
diff options
context:
space:
mode:
authorimarom <imarom@cisco.com>2016-03-21 16:03:47 +0200
committerimarom <imarom@cisco.com>2016-03-21 16:03:47 +0200
commitb89efa188810bf95a9d245e69e2961b5721c3b0f (patch)
tree454273ac6c4ae972ebb8a2c86b893296970b4fa9 /scripts/external_libs/scapy-python3-0.18/scapy/layers/mgcp.py
parentf72c6df9d2e9998ae1f3529d729ab7930b35785a (diff)
scapy python 2/3
Diffstat (limited to 'scripts/external_libs/scapy-python3-0.18/scapy/layers/mgcp.py')
-rw-r--r--scripts/external_libs/scapy-python3-0.18/scapy/layers/mgcp.py45
1 files changed, 0 insertions, 45 deletions
diff --git a/scripts/external_libs/scapy-python3-0.18/scapy/layers/mgcp.py b/scripts/external_libs/scapy-python3-0.18/scapy/layers/mgcp.py
deleted file mode 100644
index 5d8a064e..00000000
--- a/scripts/external_libs/scapy-python3-0.18/scapy/layers/mgcp.py
+++ /dev/null
@@ -1,45 +0,0 @@
-## This file is part of Scapy
-## See http://www.secdev.org/projects/scapy for more informations
-## Copyright (C) Philippe Biondi <phil@secdev.org>
-## This program is published under a GPLv2 license
-
-"""
-MGCP (Media Gateway Control Protocol)
-
-[RFC 2805]
-"""
-
-from scapy.packet import *
-from scapy.fields import *
-from scapy.layers.inet import UDP
-
-class MGCP(Packet):
- name = "MGCP"
- longname = "Media Gateway Control Protocol"
- fields_desc = [ StrStopField("verb","AUEP"," ", -1),
- StrFixedLenField("sep1"," ",1),
- StrStopField("transaction_id","1234567"," ", -1),
- StrFixedLenField("sep2"," ",1),
- StrStopField("endpoint","dummy@dummy.net"," ", -1),
- StrFixedLenField("sep3"," ",1),
- StrStopField("version","MGCP 1.0 NCS 1.0","\x0a", -1),
- StrFixedLenField("sep4","\x0a",1),
- ]
-
-
-#class MGCP(Packet):
-# name = "MGCP"
-# longname = "Media Gateway Control Protocol"
-# fields_desc = [ ByteEnumField("type",0, ["request","response","others"]),
-# ByteField("code0",0),
-# ByteField("code1",0),
-# ByteField("code2",0),
-# ByteField("code3",0),
-# ByteField("code4",0),
-# IntField("trasid",0),
-# IntField("req_time",0),
-# ByteField("is_duplicate",0),
-# ByteField("req_available",0) ]
-#
-bind_layers( UDP, MGCP, dport=2727)
-bind_layers( UDP, MGCP, sport=2727)