From: Marvin Liu <yong.liu@intel.com>
To: dts@dpdk.org
Cc: Marvin Liu <yong.liu@intel.com>
Subject: [dts] [PATCH 1/2] dep: add module for 802.1br protocal
Date: Thu, 21 Apr 2016 10:59:49 +0800 [thread overview]
Message-ID: <1461207590-30373-1-git-send-email-yong.liu@intel.com> (raw)
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
next reply other threads:[~2016-04-21 3:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-21 2:59 Marvin Liu [this message]
2016-04-21 2:59 ` [dts] [PATCH 2/2] test_plans: add test plan for Sageville etag feature Marvin Liu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1461207590-30373-1-git-send-email-yong.liu@intel.com \
--to=yong.liu@intel.com \
--cc=dts@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).