向大神请教一段python代码

unshine 发布于 2015/05/19 19:41
阅读 433
收藏 0

@xrzs 你好,想跟你请教个问题:大神您好,我在学习一个项目,想向您请教一下这段代码的具体意义,感谢!然后我们现在想给fields-desc 里面的成员BitField赋值,应该怎么做呢?

class Dot11(Packet):

    name = "802.11"

    fields_desc = [

                    BitField("subtype", 0, 4),

                    BitEnumField("type", 0, 2, ["Management", "Control", "Data", "Reserved"]),

                    BitField("proto", 0, 2),

                    FlagsField("FCfield", 0, 8, ["to-DS", "from-DS", "MF", "retry", "pw-mgt", "MD", "wep", "order"]),

                    ShortField("ID",0),

                    MACField("addr1", ETHER_ANY),

                    Dot11Addr2MACField("addr2", ETHER_ANY),

                    Dot11Addr3MACField("addr3", ETHER_ANY),

                    Dot11SCField("SC", 0),

                    Dot11Addr4MACField("addr4", ETHER_ANY)

                    ]

加载中
0
颓废的幻想者
颓废的幻想者
scrapy 源码 么  坐等答案
u
unshine
对,kali_linux 里面scapy的类dot11
返回顶部
顶部