Actions
Bug #895
closedresponse: rst packet bug
Affected Versions:
Effort:
Difficulty:
Label:
Description
Reported privately:
In the function "RejectSendLibnet11L3IPv4TCP", why add 1 to ack?
It breaks the TCP protocol.
/* build the package */
if ((libnet_build_tcp (
lpacket.sp, /* source port */
lpacket.dp, /* dst port */
lpacket.seq, /* seq number */
lpacket.ack+1, /* ack number */
TH_RST|TH_ACK, /* flags */
lpacket.window, /* window size */
0, /* checksum */
0, /* urgent flag */
LIBNET_TCP_H, /* header length */
NULL, /* payload */
0, /* payload length */
c, /* libnet context */
0)) < 0) /* libnet ptag */
Actions