Searched refs:length (Results 1 – 5 of 5) sorted by relevance
/kernel/tests/net/test/ |
D | netlink.py | 52 def PaddedLength(length): argument 54 return NLA_ALIGNTO * ((length / NLA_ALIGNTO) + (length % NLA_ALIGNTO != 0)) 177 length = len(NLMsgHdr) + len(data) 178 nlmsg = NLMsgHdr((length, command, flags, self.seq, self.pid)).Pack() 201 attrlen = nlmsghdr.length - len(nlmsghdr) - len(nlmsg) 239 length = len(NLMsgHdr) + len(msg) + len(attrs) 240 nlmsghdr = NLMsgHdr((length, command, flags, self.seq, self.pid))
|
D | xfrm_test.py | 65 def expectIPv6EspPacketOn(self, netid, spi, seq, length): argument 72 self.assertEquals(length, len(packet.payload)) 74 def assertIsUdpEncapEsp(self, packet, spi, seq, length): argument 79 self.assertEquals(length, len(payload))
|
D | csocket.py | 89 def PaddedLength(length): argument 90 return CMSG_ALIGNTO * ((length / CMSG_ALIGNTO) + (length % CMSG_ALIGNTO != 0))
|
D | cstruct.py | 222 length = len(struct_type) 223 return struct_type(data), data[length:]
|
D | sock_diag.py | 243 length = len(InetDiagBcOp) + len(arg) 244 positions.append(positions[-1] + length)
|