Home
last modified time | relevance | path

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

/kernel/tests/net/test/
Dnet_test.py128 def Socket(family, sock_type, protocol): argument
129 s = socket(family, sock_type, protocol)
417 def ReadProcNetSocket(self, protocol): argument
419 filename = "/proc/net/%s" % protocol
423 if protocol in ["icmp6", "raw6", "udp6"]:
428 if protocol.endswith("6"):
433 if protocol.startswith("tcp"):
436 elif re.match("icmp|udp|raw", protocol):
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)
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.assertEquals(IPPROTO_UDP, protocol)