Home
last modified time | relevance | path

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

/kernel/tests/net/test/
Dbpf.py214 return ret.Pack()
221 return ret.Pack()
228 return ret.Pack()
235 return ret.Pack()
242 return ret.Pack()
249 return ret.Pack()
254 return ret.Pack()
261 return ret.Pack()
267 return ret.Pack()
275 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.py252 msg = sa.Pack() + nlattrs
263 encryption.Pack() + encryption_key)
265 auth_trunc.Pack() + auth_trunc_key)
267 nlattrs += self._NlAttr(XFRMA_ENCAP, encap.Pack())
276 self._SendNlRequest(XFRM_MSG_DELSA, usersa_id.Pack(), flags)
Dsock_diag.py154 addr = csocket.SockaddrIn(addr.Pack())
156 addr = csocket.SockaddrIn6(addr.Pack())
232 arg = InetDiagHostcond((family, prefixlen, port)).Pack() + addr
238 arg = InetDiagMarkcond((mark, mask)).Pack()
256 instruction = InetDiagBcOp((op, yes, no)).Pack() + args[i]
400 self._SendNlRequest(SOCK_DIAG_BY_FAMILY, req.Pack(), netlink.NLM_F_REQUEST)
409 self._SendNlRequest(SOCK_DESTROY, req.Pack(),
Dxfrm_test.py140 data = info.Pack() + tmpl.Pack()
235 data = info.Pack() + usertmpl.Pack()
288 data = info.Pack() + usertmpl.Pack()
Dnetlink.py74 return NLAttr((nla_len, nla_type)).Pack() + data + padding
178 nlmsg = NLMsgHdr((length, command, flags, self.seq, self.pid)).Pack()
238 msg = "" if msg is None else msg.Pack()
243 request = nlmsghdr.Pack() + msg + attrs
Dcstruct.py185 return value.Pack()
189 def Pack(self): member in Struct.CStruct
213 buf = ctypes.create_string_buffer(self.Pack())
Diproute.py330 RTPROT_STATIC, RT_SCOPE_UNIVERSE, rule_type, 0)).Pack()
344 RTPROT_STATIC, RT_SCOPE_UNIVERSE, RTN_UNICAST, 0)).Pack()
370 FibRuleUidRange((start, end)).Pack())
428 ifaddrmsg = IfAddrMsg((family, prefixlen, flags, scope, ifindex)).Pack()
459 RTPROT_STATIC, scope, RTN_UNICAST, 0)).Pack()
513 ndmsg = NdMsg((family, dev, state, 0, RTN_UNICAST)).Pack()
Danycast_test.py74 s.setsockopt(IPPROTO_IPV6, option, ipv6mreq.Pack())
Dcsocket.py149 msg_control += CMsgHdr((msg_len, msg_level, msg_type)).Pack()
253 msg_control, msg_controllen, flags)).Pack()
Dcstruct_test.py93 self.assertEquals(expected, d.Pack())
Dmultinetwork_base.py72 return csocket.In6Pktinfo((addr, ifindex)).Pack()
74 return csocket.InPktinfo((ifindex, addr, "\x00" * 4)).Pack()
Dsock_diag_test.py235 self.assertEquals(diag_msg.Pack(), sockets[0][0].Pack())
295 self.sock_diag.DumpAllInetSockets, IPPROTO_TCP, bytecode.Pack())
Dping6_test.py423 ipv4sockaddr.Pack() +