Exemplo n.º 1
0
 def __init__(self, name, countfld, default, passon=1):
     StrField.__init__(self, name, None)
     self.countfld = countfld
     # Notes:
     # - self.rr: used by DNSRRCountField() to compute the records count
     # - self.default: used to set the default record
     self.rr = self.default = default
     self.passon = passon
Exemplo n.º 2
0
 def __init__(self,
              name,
              default,
              encoding="utf-16",
              padd="\x0c",
              fmt="H",
              remain=0):
     StrField.__init__(self, name, default, fmt, remain)
     self.encoding = encoding
     self.padd = padd
Exemplo n.º 3
0
 def __init__(self, name, default, encoding="utf-16", padd="\x0c",
              fmt="H", remain=0):
     StrField.__init__(self, name, default, fmt, remain)
     self.encoding = encoding
     self.padd = padd
Exemplo n.º 4
0
Arquivo: dns.py Projeto: netkey/scapy
 def __init__(self, name, countfld, passon=1):
     StrField.__init__(self, name, None)
     self.countfld = countfld
     self.passon = passon
Exemplo n.º 5
0
 def __init__(self, name, countfld, passon=1):
     StrField.__init__(self, name, None)
     self.countfld = countfld
     self.passon = passon
Exemplo n.º 6
0
 def __init__(self, name, default):
     self.real_name = name
     name = _strip_header_name(name)
     StrField.__init__(self, name, default, fmt="H")
Exemplo n.º 7
0
 def __init__(self, name, default, length=None, length_from=None):
     StrField.__init__(self, name, default)
     self.length_from = length_from
     if length is not None:
         self.length_from = lambda pkt, length=length: length
Exemplo n.º 8
0
 def __init__(self, name, default, remain=0, msgid=None, length_from=None):
     StrField.__init__(self, name, default, remain=remain)
     self.msgid = msgid
     self.length_from = length_from
Exemplo n.º 9
0
 def __init__(self, name, default, type_field, type_pkt, remain=0):
     StrField.__init__(self, name, default, remain=remain)
     self.type_pkt = type_pkt
     self.type_field = type_field
Exemplo n.º 10
0
 def __init__(self, name, default, length=None, length_from=None):
     StrField.__init__(self, name, default)
     self.length_from = length_from
     if length is not None:
         self.length_from = lambda pkt, length=length: length
Exemplo n.º 11
0
 def __init__(self, name, default):
     StrField.__init__(self, name, default)