Exemple #1
0
 def __init__(self):
     GenericNetlinkSocket.__init__(self)
     self.marshal = self.marshal_class()
     if kernel[0] <= 2:
         self.bind(groups=0xffffff)
     else:
         self.bind()
     for group in self.mcast_groups:
         self.add_membership(group)
Exemple #2
0
 def __init__(self):
     GenericNetlinkSocket.__init__(self)
     self.bind(WG_GENL_NAME, wgmsg)
Exemple #3
0
 def bind(self, groups=0, **kwarg):
     GenericNetlinkSocket.bind(
         self, 'devlink', devlinkcmd, groups, None, **kwarg
     )
Exemple #4
0
 def __init__(self):
     GenericNetlinkSocket.__init__(self)
     self.marshal = MarshalDevlink()
Exemple #5
0
 def bind(self, groups=0, **kwarg):
     GenericNetlinkSocket.bind(
         self, 'nl80211', nl80211cmd, groups, None, **kwarg
     )
Exemple #6
0
 def __init__(self):
     GenericNetlinkSocket.__init__(self)
     self.marshal = MarshalNl80211()
Exemple #7
0
 def bind(self, groups=0, **kwarg):
     GenericNetlinkSocket.bind(self, self.genl_family,
                               self.marshal_class.msg_map[0], groups, None,
                               **kwarg)
Exemple #8
0
 def bind(self):
     GenericNetlinkSocket.bind(self, 'TASKSTATS', taskstatsmsg)
Exemple #9
0
 def __init__(self):
     GenericNetlinkSocket.__init__(self)
Exemple #10
0
 def __init__(self):
     GenericNetlinkSocket.__init__(self)
     self.bind(L2TP_GENL_NAME, l2tpmsg)