示例#1
0
 def pack(self):
     opt = ((o.CODE if is_subclass(o, DHCPOption) else o)
            for o in self.options)
     return b''.join(chr(x) for x in opt)
示例#2
0
文件: dhcp.py 项目: LeGaulois/pox_nac
 def pack (self):
   opt = ((o.CODE if is_subclass(o, DHCPOption) else o) for o in self.options)
   return b''.join(chr(x) for x in opt)