Searched refs:Pack (Results 1 – 10 of 10) sorted by relevance
/system/extras/tests/net_test/ |
D | netlink.py | 74 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)
|
D | cstruct.py | 158 return value.Pack() 162 def Pack(self): member in Struct.CStruct 184 buf = ctypes.create_string_buffer(self.Pack())
|
D | sock_diag.py | 198 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(),
|
D | tcp_nuke_addr_test.py | 112 ifreq = In6Ifreq((addr, 128, LOOPBACK_IFINDEX)).Pack() 115 sockaddr = csocket.SockaddrIn((AF_INET, 0, addr)).Pack() 116 ifreq = Ifreq((LOOPBACK_DEV, sockaddr)).Pack()
|
D | csocket.py | 104 msg_control += CMsgHdr((msg_len, msg_level, msg_type)).Pack() 176 msg_control, msg_controllen, flags)).Pack()
|
D | iproute.py | 337 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()
|
D | anycast_test.py | 74 s.setsockopt(IPPROTO_IPV6, option, ipv6mreq.Pack())
|
D | sock_diag_test.py | 201 self.assertEquals(diag_msg.Pack(), sockets[0][0].Pack()) 253 self.sock_diag.DumpAllInetSockets, IPPROTO_TCP, bytecode.Pack())
|
D | multinetwork_base.py | 97 return In6Pktinfo((addr, ifindex)).Pack() 99 return InPktinfo((ifindex, addr, "\x00" * 4)).Pack()
|
D | ping6_test.py | 370 ipv4sockaddr.Pack() +
|