Home
last modified time | relevance | path

Searched refs:Pack (Results 1 – 14 of 14) sorted by relevance

/kernel/tests/net/test/
Dbpf.py296 return ret.Pack()
303 return ret.Pack()
310 return ret.Pack()
317 return ret.Pack()
324 return ret.Pack()
331 return ret.Pack()
336 return ret.Pack()
343 return ret.Pack()
349 return ret.Pack()
357 return insn1.Pack() + insn2.Pack()
[all …]
Dtcp_nuke_addr_test.py50 ifreq = In6Ifreq((addr, 128, LOOPBACK_IFINDEX)).Pack()
53 sockaddr = csocket.SockaddrIn((AF_INET, 0, addr)).Pack()
54 ifreq = Ifreq((LOOPBACK_DEV, sockaddr)).Pack()
Dxfrm.py462 msg = req.Pack()
489 attr_msg = attr_msg.Pack()
522 nlattrs += self._NlAttr(XFRMA_ALG_CRYPT, enc.Pack() + key)
526 nlattrs += self._NlAttr(XFRMA_ALG_AUTH_TRUNC, auth.Pack() + key)
530 nlattrs += self._NlAttr(XFRMA_ALG_AEAD, aead_alg.Pack() + key)
534 nlattrs += self._NlAttr(XFRMA_MARK, mark.Pack())
536 nlattrs += self._NlAttr(XFRMA_ENCAP, encap.Pack())
567 msg = sa.Pack() + nlattrs
612 msg = spi.Pack()
643 self._SendNlRequest(XFRM_MSG_FLUSHSA, usersa_flush.Pack(), flags)
Dcstruct_test.py93 self.assertEqual(expected, d.Pack())
122 self.assertEqual("\x00" * len(TestStruct), t.Pack())
133 self.assertEqual(expected, t1.Pack())
138 self.assertEqual(expected, t1.Pack())
Dsock_diag.py153 addr = csocket.SockaddrIn(addr.Pack())
155 addr = csocket.SockaddrIn6(addr.Pack())
231 arg = InetDiagHostcond((family, prefixlen, port)).Pack() + addr
237 arg = InetDiagMarkcond((mark, mask)).Pack()
255 instruction = InetDiagBcOp((op, yes, no)).Pack() + args[i]
404 self._SendNlRequest(SOCK_DIAG_BY_FAMILY, req.Pack(), netlink.NLM_F_REQUEST)
413 self._SendNlRequest(SOCK_DESTROY, req.Pack(),
Dpf_key.py216 self.sock.send(msg.Pack() + extensions)
223 extdata = extstruct.Pack()
225 extensions += ext.Pack() + extdata + attrs
234 packed = addr.Pack()
Dcstruct.py240 return value.Pack()
244 def Pack(self): member in Struct.CStruct
268 buf = ctypes.create_string_buffer(self.Pack())
Dgenetlink.py62 self._SendNlRequest(family, genlmsghdr.Pack() + data, flags)
Danycast_test.py74 s.setsockopt(IPPROTO_IPV6, option, ipv6mreq.Pack())
Dcsocket.py165 msg_control += CMsgHdr((msg_len, msg_level, msg_type)).Pack()
270 msg_control, msg_controllen, flags)).Pack()
Dmultinetwork_base.py73 return csocket.In6Pktinfo((addr, ifindex)).Pack()
75 return csocket.InPktinfo((ifindex, addr, "\x00" * 4)).Pack()
Dsock_diag_test.py312 self.assertEqual(diag_msg.Pack(), sockets[0][0].Pack())
372 self.sock_diag.DumpAllInetSockets, IPPROTO_TCP, bytecode.Pack())
Dxfrm_test.py296 spi_seq = xfrm.EspHdr((in_spi, seq_num)).Pack()
Dping6_test.py439 ipv4sockaddr.Pack() +