Home
last modified time | relevance | path

Searched refs:struct_type (Results 1 – 3 of 3) sorted by relevance

/kernel/tests/net/test/
Dpf_key.py168 struct_type = None
170 struct_type = SadbSa
173 struct_type = SadbLifetime
176 struct_type = SadbAddress
178 struct_type = SadbKey
180 struct_type = SadbXSa2
182 struct_type = SadbXNatTType
184 struct_type = SadbXNatTPort
186 if struct_type:
187 ext, attrs = cstruct.Read(data, struct_type)
[all …]
Dxfrm.py353 struct_type = XfrmUsersaInfo
355 struct_type = XfrmUsersaId
357 struct_type = XfrmUsersaId
359 struct_type = XfrmUserSpiInfo
361 struct_type = XfrmUserpolicyInfo
363 struct_type = None
366 if struct_type:
367 print("%s %s" % (cmdname, str(self._ParseNLMsg(data, struct_type))))
Dcstruct.py276 def Read(data, struct_type): argument
277 length = len(struct_type)
278 return struct_type(data), data[length:]