Home
last modified time | relevance | path

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

/system/extras/tests/net_test/
Dnetlink.py74 return NLAttr((nla_len, nla_type)).Pack() + data + padding
175 nlmsg = NLMsgHdr((length, command, flags, self.seq, self.pid)).Pack()
240 self._Send(nlmsghdr.Pack() + msg.Pack() + attrs)
Dcstruct.py158 return value.Pack()
162 def Pack(self): member in Struct.CStruct
184 buf = ctypes.create_string_buffer(self.Pack())
Dsock_diag.py198 arg = InetDiagHostcond((family, prefixlen, port)).Pack() + addr
216 instruction = InetDiagBcOp((op, yes, no)).Pack() + args[i]
313 self._SendNlRequest(SOCK_DIAG_BY_FAMILY, req.Pack(), netlink.NLM_F_REQUEST)
322 self._SendNlRequest(SOCK_DESTROY, req.Pack(),
Dtcp_nuke_addr_test.py112 ifreq = In6Ifreq((addr, 128, LOOPBACK_IFINDEX)).Pack()
115 sockaddr = csocket.SockaddrIn((AF_INET, 0, addr)).Pack()
116 ifreq = Ifreq((LOOPBACK_DEV, sockaddr)).Pack()
Dcsocket.py104 msg_control += CMsgHdr((msg_len, msg_level, msg_type)).Pack()
176 msg_control, msg_controllen, flags)).Pack()
Diproute.py337 RTPROT_STATIC, RT_SCOPE_UNIVERSE, rule_type, 0)).Pack()
351 RTPROT_STATIC, RT_SCOPE_UNIVERSE, RTN_UNICAST, 0)).Pack()
430 ifaddrmsg = IfAddrMsg((family, prefixlen, flags, scope, ifindex)).Pack()
461 RTPROT_STATIC, scope, RTN_UNICAST, 0)).Pack()
510 ndmsg = NdMsg((family, dev, state, 0, RTN_UNICAST)).Pack()
Danycast_test.py74 s.setsockopt(IPPROTO_IPV6, option, ipv6mreq.Pack())
Dsock_diag_test.py201 self.assertEquals(diag_msg.Pack(), sockets[0][0].Pack())
253 self.sock_diag.DumpAllInetSockets, IPPROTO_TCP, bytecode.Pack())
Dmultinetwork_base.py97 return In6Pktinfo((addr, ifindex)).Pack()
99 return InPktinfo((ifindex, addr, "\x00" * 4)).Pack()
Dping6_test.py370 ipv4sockaddr.Pack() +