Project

General

Profile

Actions

Bug #895

closed

response: rst packet bug

Added by Victor Julien over 11 years ago. Updated about 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
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

Also available in: Atom PDF