Home
last modified time | relevance | path

Searched refs:protocol (Results 1 – 4 of 4) sorted by relevance

/kernel/tests/net/test/
Dsock_diag.py307 def DumpAllInetSockets(self, protocol, bytecode, sock_id=None, ext=0, argument
317 diag_req = InetDiagReqV2((family, protocol, ext, states, sock_id))
356 protocol = s.getsockopt(net_test.SOL_SOCKET, net_test.SO_PROTOCOL)
375 return InetDiagReqV2((family, protocol, 0, 0xffffffff, sock_id))
408 def DiagReqFromDiagMsg(d, protocol): argument
410 return InetDiagReqV2((d.family, protocol, 0, 1 << d.state, d.id))
418 protocol = s.getsockopt(SOL_SOCKET, net_test.SO_PROTOCOL)
419 req = self.DiagReqFromDiagMsg(diag_msg, protocol)
Dnet_test.py129 def Socket(family, sock_type, protocol): argument
130 s = socket(family, sock_type, protocol)
424 def ReadProcNetSocket(self, protocol): argument
426 filename = "/proc/net/%s" % protocol
430 if protocol in ["icmp6", "raw6", "udp6"]:
435 if protocol.endswith("6"):
440 if protocol.startswith("tcp"):
443 elif re.match("icmp|udp|raw", protocol):
Dforwarding_test.py146 def CheckForwardingHandlerByProto(self, protocol, netid, iif, oif): argument
147 if protocol == IPPROTO_UDP:
149 elif protocol == IPPROTO_TCP:
Dxfrm_test.py177 protocol = packet.nh if version == 6 else packet.proto
178 self.assertEqual(IPPROTO_UDP, protocol)