Home
last modified time | relevance | path

Searched refs:seq (Results 1 – 13 of 13) 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 …]
Dxfrm_base.py158 def EncryptPacketWithNull(packet, spi, seq, tun_addrs): argument
189 esp_packet = scapy.Raw(xfrm.EspHdr((spi, seq)).Pack())
284 def _ExpectEspPacketOn(self, netid, spi, seq, length, src_addr, dst_addr): argument
313 self.assertEqual(xfrm.EspHdr((spi, seq)), esp_hdr)
Dnetlink.py179 self.seq = 0
197 self.seq += 1
228 nlmsg = NLMsgHdr((length, command, flags, self.seq, self.pid)).Pack()
290 nlmsghdr = NLMsgHdr((length, command, flags, self.seq, self.pid))
Dall_tests.sh59 for iteration in $(seq $RETRIES); do
Dtcp_fastopen_test.py92 desc, syn = packets.SYN(53, version, myaddr, remoteaddr, port, seq=None)
124 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.py545 seq = 0
566 cur, stats, seq, reqid, family, mode, replay, flags))
Drun_net_test.sh255 for id in $(seq 0 $(( NUMTAPINTERFACES - 1 )) ); do
Dmultinetwork_base.py681 if expectedtcp.seq is None:
682 actualtcp.seq = None
Dxfrm_test.py56 def assertIsUdpEncapEsp(self, packet, spi, seq, length): argument
65 self.assertEqual(xfrm.EspHdr((spi, seq)), esp_hdr)
Dping6_test.py407 scapy.ICMP(type=8, id=port, seq=1))
413 scapy.ICMPv6EchoRequest(id=port, seq=1, data="foobarbaz"))
Dsock_diag_test.py570 sport=None, seq=None)
783 remoteaddr, sport=sport, seq=None)
Dmultinetwork_test.py77 sport=None, seq=None)