Searched refs:proto (Results 1 – 11 of 11) sorted by relevance
/kernel/tests/net/test/ |
D | xfrm_algorithm_test.py | 95 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
|
D | packets.py | 135 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) /
|
D | xfrm.py | 307 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
|
D | pf_key_test.py | 61 self.assertEquals(xfrm.IPPROTO_ESP, state4.id.proto) 62 self.assertEquals(xfrm.IPPROTO_ESP, state6.id.proto)
|
D | forwarding_test.py | 154 def CheckForwardingByProto(self, proto): argument 161 self.CheckForwardingHandlerByProto(proto, netid, iface1, iface2)
|
D | xfrm_base.py | 215 packet.proto = IPPROTO_ESP 261 packet.proto = IPPROTO_UDP
|
D | net_test.py | 135 proto = {AF_INET: IPPROTO_ICMP, AF_INET6: IPPROTO_ICMPV6}[family] 136 return Socket(family, SOCK_DGRAM, proto)
|
D | iproute.py | 561 def _Route(self, version, proto, command, table, dest, prefixlen, nexthop, argument 567 proto, scope, route_type, 0)).Pack()
|
D | sock_diag_test.py | 213 def CheckFindsAllMySockets(self, socktype, proto): argument 216 sockets = self.sock_diag.DumpAllInetSockets(proto, NO_BYTECODE) 246 if proto == IPPROTO_UDP:
|
D | xfrm_test.py | 56 self.assertEquals(IPPROTO_UDP, packet.proto) 177 protocol = packet.nh if version == 6 else packet.proto
|
D | ping6_test.py | 131 if (ip.proto != IPPROTO_ICMP or
|