Home
last modified time | relevance | path

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

/kernel/tests/net/test/
Dsock_diag.py310 def DumpAllInetSockets(self, protocol, bytecode, sock_id=None, ext=0, argument
320 diag_req = InetDiagReqV2((family, protocol, ext, states, sock_id))
359 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.py189 def Socket(family, sock_type, protocol): argument
190 s = socket(family, sock_type, protocol)
511 def ReadProcNetSocket(self, protocol): argument
513 filename = "/proc/net/%s" % protocol
518 if protocol in ["icmp6", "raw6", "udp6"]:
523 if protocol.endswith("6"):
528 if protocol.startswith("tcp"):
531 elif re.match("icmp|udp|raw", protocol):
Dxfrm_test.py57 protocol = packet.nh if packet.version == 6 else packet.proto
58 self.assertEqual(IPPROTO_UDP, protocol)
179 protocol = packet.nh if version == 6 else packet.proto
180 self.assertEqual(IPPROTO_UDP, protocol)