summaryrefslogtreecommitdiffstats
path: root/scripts/external_libs/scapy-python3-0.18/scapy/layers/ir.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/ir.py
parentf72c6df9d2e9998ae1f3529d729ab7930b35785a (diff)
scapy python 2/3
Diffstat (limited to 'scripts/external_libs/scapy-python3-0.18/scapy/layers/ir.py')
-rw-r--r--scripts/external_libs/scapy-python3-0.18/scapy/layers/ir.py44
1 files changed, 0 insertions, 44 deletions
diff --git a/scripts/external_libs/scapy-python3-0.18/scapy/layers/ir.py b/scripts/external_libs/scapy-python3-0.18/scapy/layers/ir.py
deleted file mode 100644
index 90935aa3..00000000
--- a/scripts/external_libs/scapy-python3-0.18/scapy/layers/ir.py
+++ /dev/null
@@ -1,44 +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
-
-"""
-IrDA infrared data communication.
-"""
-
-from scapy.packet import *
-from scapy.fields import *
-from scapy.layers.l2 import CookedLinux
-
-
-
-# IR
-
-class IrLAPHead(Packet):
- name = "IrDA Link Access Protocol Header"
- fields_desc = [ XBitField("Address", 0x7f, 7),
- BitEnumField("Type", 1, 1, {"Response":0,
- "Command":1})]
-
-class IrLAPCommand(Packet):
- name = "IrDA Link Access Protocol Command"
- fields_desc = [ XByteField("Control", 0),
- XByteField("Format identifier", 0),
- XIntField("Source address", 0),
- XIntField("Destination address", 0xffffffff),
- XByteField("Discovery flags", 0x1),
- ByteEnumField("Slot number", 255, {"final":255}),
- XByteField("Version", 0)]
-
-
-class IrLMP(Packet):
- name = "IrDA Link Management Protocol"
- fields_desc = [ XShortField("Service hints", 0),
- XByteField("Character set", 0),
- StrField("Device name", "") ]
-
-
-bind_layers( CookedLinux, IrLAPHead, proto=23)
-bind_layers( IrLAPHead, IrLAPCommand, Type=1)
-bind_layers( IrLAPCommand, IrLMP, )