wenquan2015 opened a new pull request, #17683:
URL: https://github.com/apache/nuttx/pull/17683
## Summary
According to RFC793, the flags of TCP reply packet should be as follows:
1. `RST` if flags of request packet has `ACK`
2. `RST|ACK` if flags of request packet has no `ACK`, at the same time, the
sequence should be set to zero.
## Impact
tcp reset packet
## Testing
python test codeļ¼
from scapy.all import *
syn_pkt = IP(dst="10.0.1.2")/TCP(
dport=800,
flags="S",
seq= 123456,
ack= 654321
)
# send packet(need root privilege)
send(syn_pkt, verbose=1)
syn_ack_pkt = IP(dst="10.0.1.2")/TCP(
dport=800,
flags="SA",
seq= 123456,
ack= 654321
)
send(syn_ack_pkt, verbose=1)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]