test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH 1/2] dep: add module for 802.1br protocal
@ 2016-04-21  2:59 Marvin Liu
  2016-04-21  2:59 ` [dts] [PATCH 2/2] test_plans: add test plan for Sageville etag feature Marvin Liu
  0 siblings, 1 reply; 2+ messages in thread
From: Marvin Liu @ 2016-04-21  2:59 UTC (permalink / raw)
  To: dts; +Cc: Marvin Liu

Signed-off-by: Marvin Liu <yong.liu@intel.com>

diff --git a/dep/Dot1BR.py b/dep/Dot1BR.py
new file mode 100644
index 0000000..f985f6a
--- /dev/null
+++ b/dep/Dot1BR.py
@@ -0,0 +1,33 @@
+#!/usr/bin/env python
+## 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
+
+## Copyright (c) 2016 Marvin liu <yong.liu@intel.com>
+
+"""
+VBPE (virtual brige port extenstion)
+"""
+
+from scapy.packet import *
+from scapy.fields import *
+from scapy.layers.l2 import Ether
+
+class Dot1BR(Packet):
+    name = "802.1BR"
+    aliastypes = [ Ether ]
+    fields_desc =  [ 
+                     BitField("EPCP", 0, 3),
+                     BitField("EEDI", 0, 1),
+                     BitField("IngressECIDbase", 0, 12),
+                     BitField("Reserverd", 0, 2),
+                     BitField("GRP", 0, 2),
+                     BitField("ECIDbase", 0, 12),
+                     BitField("IngressECIDext", 0, 8),
+                     BitField("ECIDext", 0, 8),
+                     XShortEnumField("type", 0x0000, ETHER_TYPES) ]
+    def mysummary(self):
+        return self.sprintf("802.1BR E-CID %Ingress_E-CID_base%")
+
+bind_layers(Ether, Dot1BR, type=0x893F)
-- 
1.9.3

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-04-21  3:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-21  2:59 [dts] [PATCH 1/2] dep: add module for 802.1br protocal Marvin Liu
2016-04-21  2:59 ` [dts] [PATCH 2/2] test_plans: add test plan for Sageville etag feature Marvin Liu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).