Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Oct 2022 11:49:47 +0000
From:      bugzilla-noreply@freebsd.org
To:        net@FreeBSD.org
Subject:   [Bug 265588] [TCP] - tcp send a retransmission identical sequence number packet with different payload
Message-ID:  <bug-265588-7501-YPwkwa4LBm@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-265588-7501@https.bugs.freebsd.org/bugzilla/>
References:  <bug-265588-7501@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D265588

--- Comment #18 from Richard Scheffenegger <rscheff@freebsd.org> ---
For completeness, the awk script with proper indexing:

cat output | awk '
//{
        fr=3Dint($5/1448);=20
        if ((fr*1448 =3D=3D $5) && (fr > 0)) {
                print $1" "$2" "$3" "$4" "$5" "fr;=20
                gsub("[^0-9a-fA-F]", "", $6);
                for (i=3D0;i<fr;i++) {=20
                        s =3D 0;
                        for (n=3D0;n<(1448/4);n++) {=20
                                idx =3D (i*1448 + n*4)*2 + 1;
                                v =3D sprintf("%d ", "0x" substr($6,idx,8));
                                s =3D s + v;
                        }
                        f[s]++;
                        if (f[s] > 1) { printf("#") };
                        printf("0x%08x\t", s);
                }
        }
        printf("\n");
}
'

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-265588-7501-YPwkwa4LBm>