Home
last modified time | relevance | path

Searched refs:length (Results 1 – 5 of 5) sorted by relevance

/kernel/tests/net/test/
Dnetlink.py52 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))
Dxfrm_test.py65 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))
Dcsocket.py89 def PaddedLength(length): argument
90 return CMSG_ALIGNTO * ((length / CMSG_ALIGNTO) + (length % CMSG_ALIGNTO != 0))
Dcstruct.py222 length = len(struct_type)
223 return struct_type(data), data[length:]
Dsock_diag.py243 length = len(InetDiagBcOp) + len(arg)
244 positions.append(positions[-1] + length)