Home
last modified time | relevance | path

Searched refs:seq (Results 1 – 14 of 14) sorted by relevance

/kernel/tests/net/test/
Dpackets.py78 def SYN(dport, version, srcaddr, dstaddr, sport=0, seq=-1): argument
82 if seq == -1: # Can't use None because it means unspecified.
83 seq = random.getrandbits(32)
87 seq=seq, ack=0,
97 ack=original.seq + was_syn_or_fin,
98 seq=original.ack,
107 ack=original.seq + 1, seq=None,
120 ack=original.seq + ack_delta, seq=original.ack,
132 ack=original.seq + ack_delta, seq=original.ack,
176 icmp(id=PING_IDENT, seq=PING_SEQ) / PING_PAYLOAD)
[all …]
Dpf_key.py200 self.seq = 0
211 self.seq += 1
212 msg.seq = self.seq
273 msg.reserved, msg.seq, msg.pid))
310 if msg.seq == 0: # End of dump.
Dxfrm_base.py145 def EncryptPacketWithNull(packet, spi, seq, tun_addrs): argument
176 esp_packet = scapy.Raw(xfrm.EspHdr((spi, seq)).Pack())
273 def _ExpectEspPacketOn(self, netid, spi, seq, length, src_addr, dst_addr): argument
298 self.assertEquals(xfrm.EspHdr((spi, seq)), esp_hdr)
Dnetlink.py158 self.seq = 0
168 self.seq += 1
199 nlmsg = NLMsgHdr((length, command, flags, self.seq, self.pid)).Pack()
261 nlmsghdr = NLMsgHdr((length, command, flags, self.seq, self.pid))
Dall_tests.sh59 for iteration in $(seq $RETRIES); do
Dtcp_fastopen_test.py83 desc, syn = packets.SYN(53, version, myaddr, remoteaddr, port, seq=None)
115 desc, syn = packets.SYN(53, version, myaddr, remoteaddr, port, seq=None)
Dtcp_repair_test.py85 desc, expect_syn = packets.SYN(TEST_PORT, version, myaddr, remoteaddr, port, seq=None)
89 synack.getlayer("TCP").seq = random.getrandbits(32)
166 expect_sequence = self.last_sent.getlayer("TCP").seq
175 expect_sequence = self.last_received.getlayer("TCP").seq + 1
Dxfrm.py537 seq = 0
558 cur, stats, seq, reqid, family, mode, replay, flags))
Drun_net_test.sh199 for id in $(seq 0 $(( NUMTAPINTERFACES - 1 )) ); do
Dmultinetwork_base.py659 if expectedtcp.seq is None:
660 actualtcp.seq = None
Dping6_test.py398 scapy.ICMP(type=8, id=port, seq=1))
404 scapy.ICMPv6EchoRequest(id=port, seq=1, data="foobarbaz"))
Dxfrm_test.py55 def assertIsUdpEncapEsp(self, packet, spi, seq, length): argument
63 self.assertEquals(xfrm.EspHdr((spi, seq)), esp_hdr)
Dsock_diag_test.py583 sport=None, seq=None)
802 remoteaddr, sport=sport, seq=None)
Dmultinetwork_test.py83 sport=None, seq=None)