Home
last modified time | relevance | path

Searched refs:proto (Results 1 – 11 of 11) sorted by relevance

/kernel/tests/net/test/
Dxfrm_algorithm_test.py95 def TestNameGenerator(version, proto, auth, crypt, aead): argument
111 "UDP" if proto == SOCK_DGRAM else "TCP")
114 def ParamTestSocketPolicySimple(self, version, proto, auth, crypt, aead): argument
204 sock_left = socket(family, proto, 0)
208 sock_right = socket(family, proto, 0)
215 if proto == SOCK_STREAM:
271 target = TcpServer if proto == SOCK_STREAM else UdpServer
Dpackets.py135 def GRE(version, srcaddr, dstaddr, proto, packet): argument
137 ip = scapy.IP(src=srcaddr, dst=dstaddr, proto=net_test.IPPROTO_GRE)
140 packet = ip / scapy.GRE(proto=proto) / packet
148 scapy.IP(src=srcaddr, dst=dstaddr, proto=1, tos=0xc0) /
158 pkt = (scapy.IP(src=srcaddr, dst=dstaddr, proto=1) /
Dxfrm.py307 xfrmid = XfrmId(daddr=daddr, spi=spi, proto=IPPROTO_ESP)
507 proto = IPPROTO_ESP
508 xfrm_id = XfrmId((PaddedAddress(dst), spi, proto))
564 def DeleteSaInfo(self, dst, spi, proto, mark=None, xfrm_if_id=None): argument
576 usersa_id = XfrmUsersaId((PaddedAddress(dst), spi, family, proto))
584 def AllocSpi(self, dst, proto, min_spi, max_spi): argument
601 spi.info.id.proto = proto
Dpf_key_test.py61 self.assertEquals(xfrm.IPPROTO_ESP, state4.id.proto)
62 self.assertEquals(xfrm.IPPROTO_ESP, state6.id.proto)
Dforwarding_test.py154 def CheckForwardingByProto(self, proto): argument
161 self.CheckForwardingHandlerByProto(proto, netid, iface1, iface2)
Dxfrm_base.py215 packet.proto = IPPROTO_ESP
261 packet.proto = IPPROTO_UDP
Dnet_test.py135 proto = {AF_INET: IPPROTO_ICMP, AF_INET6: IPPROTO_ICMPV6}[family]
136 return Socket(family, SOCK_DGRAM, proto)
Diproute.py561 def _Route(self, version, proto, command, table, dest, prefixlen, nexthop, argument
567 proto, scope, route_type, 0)).Pack()
Dsock_diag_test.py213 def CheckFindsAllMySockets(self, socktype, proto): argument
216 sockets = self.sock_diag.DumpAllInetSockets(proto, NO_BYTECODE)
246 if proto == IPPROTO_UDP:
Dxfrm_test.py56 self.assertEquals(IPPROTO_UDP, packet.proto)
177 protocol = packet.nh if version == 6 else packet.proto
Dping6_test.py131 if (ip.proto != IPPROTO_ICMP or