Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
P
Pcap-Net
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Pcap-Net
Commits
72e02475
Commit
72e02475
authored
Jan 17, 2015
by
Brickner_cp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve TCP documentation (use the same field overview format used in Datagrams in TCP options).
parent
f6130fc7
Show whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
168 additions
and
85 deletions
+168
-85
TcpDatagram.cs
PcapDotNet/src/PcapDotNet.Packets/Transport/TcpDatagram.cs
+1
-0
TcpOptionAlternateChecksumData.cs
...otNet.Packets/Transport/TcpOptionAlternateChecksumData.cs
+10
-3
TcpOptionAlternateChecksumRequest.cs
...et.Packets/Transport/TcpOptionAlternateChecksumRequest.cs
+9
-3
TcpOptionAuthentication.cs
...c/PcapDotNet.Packets/Transport/TcpOptionAuthentication.cs
+15
-10
TcpOptionConnectionCount.cs
.../PcapDotNet.Packets/Transport/TcpOptionConnectionCount.cs
+8
-4
TcpOptionConnectionCountEcho.cs
...pDotNet.Packets/Transport/TcpOptionConnectionCountEcho.cs
+8
-4
TcpOptionConnectionCountNew.cs
...apDotNet.Packets/Transport/TcpOptionConnectionCountNew.cs
+8
-4
TcpOptionEcho.cs
PcapDotNet/src/PcapDotNet.Packets/Transport/TcpOptionEcho.cs
+8
-3
TcpOptionEchoReply.cs
...et/src/PcapDotNet.Packets/Transport/TcpOptionEchoReply.cs
+8
-3
TcpOptionMaximumSegmentSize.cs
...apDotNet.Packets/Transport/TcpOptionMaximumSegmentSize.cs
+7
-4
TcpOptionMd5Signature.cs
...src/PcapDotNet.Packets/Transport/TcpOptionMd5Signature.cs
+14
-11
TcpOptionMood.cs
PcapDotNet/src/PcapDotNet.Packets/Transport/TcpOptionMood.cs
+12
-4
TcpOptionPartialOrderConnectionPermitted.cs
...ets/Transport/TcpOptionPartialOrderConnectionPermitted.cs
+5
-3
TcpOptionPartialOrderServiceProfile.cs
....Packets/Transport/TcpOptionPartialOrderServiceProfile.cs
+9
-4
TcpOptionSelectiveAcknowledgment.cs
...Net.Packets/Transport/TcpOptionSelectiveAcknowledgment.cs
+20
-15
TcpOptionSelectiveAcknowledgmentPermitted.cs
...ts/Transport/TcpOptionSelectiveAcknowledgmentPermitted.cs
+5
-3
TcpOptionTimestamp.cs
...et/src/PcapDotNet.Packets/Transport/TcpOptionTimestamp.cs
+12
-4
TcpOptionWindowScale.cs
.../src/PcapDotNet.Packets/Transport/TcpOptionWindowScale.cs
+9
-3
No files found.
PcapDotNet/src/PcapDotNet.Packets/Transport/TcpDatagram.cs
View file @
72e02475
...
...
@@ -23,6 +23,7 @@ namespace PcapDotNet.Packets.Transport
/// | 128 | Checksum | Urgent Pointer |
/// +-----+-----------------------------------------------------------------------------+------------------+
/// | 160 | Options + Padding |
/// | ... | |
/// +-----+------------------------------------------------------------------------------------------------+
/// </pre>
/// </summary>
...
...
PcapDotNet/src/PcapDotNet.Packets/Transport/TcpOptionAlternateChecksumData.cs
View file @
72e02475
...
...
@@ -13,9 +13,16 @@ namespace PcapDotNet.Packets.Transport
/// <para>
/// The format of the TCP Alternate Checksum Data Option is:
/// <pre>
/// +---------+---------+---------+ +---------+
/// | Kind=15 |Length=N | data | ... | data |
/// +---------+---------+---------+ +---------+
/// +-----+--------+
/// | Bit | 0-7 |
/// +-----+--------+
/// | 0 | Kind |
/// +-----+--------+
/// | 8 | Length |
/// +-----+--------+
/// | 16 | Data |
/// | ... | |
/// +-----+--------+
/// </pre>
/// </para>
///
...
...
PcapDotNet/src/PcapDotNet.Packets/Transport/TcpOptionAlternateChecksumRequest.cs
View file @
72e02475
...
...
@@ -6,9 +6,15 @@ namespace PcapDotNet.Packets.Transport
/// <summary>
/// TCP Alternate Checksum Request Option (RFC 1146).
/// <pre>
/// +----------+----------+----------+
/// | Kind=14 | Length=3 | chksum |
/// +----------+----------+----------+
/// +-----+----------+
/// | Bit | 0-7 |
/// +-----+----------+
/// | 0 | Kind |
/// +-----+----------+
/// | 8 | Length |
/// +-----+----------+
/// | 16 | Checksum |
/// +-----+----------+
/// </pre>
///
/// <para>
...
...
PcapDotNet/src/PcapDotNet.Packets/Transport/TcpOptionAuthentication.cs
View file @
72e02475
...
...
@@ -13,15 +13,20 @@ namespace PcapDotNet.Packets.Transport
/// <para>
/// The format of the TCP Authentication Option is:
/// <pre>
/// +------------+------------+------------+------------+
/// | Kind=29 | Length=N | KeyId | RNextKeyId |
/// +------------+------------+------------+------------+
/// | MAC ...
/// +-----------------------------------...
///
/// ...-----------------+
/// ... MAC (con't) |
/// ...-----------------+
/// +-----+------------+
/// | Bit | 0-7 |
/// +-----+------------+
/// | 0 | Kind |
/// +-----+------------+
/// | 8 | Length |
/// +-----+------------+
/// | 16 | KeyId |
/// +-----+------------+
/// | 24 | RNextKeyId |
/// +-----+------------+
/// | 32 | MAC |
/// | ... | |
/// +-----+------------+
/// </pre>
/// </para>
///
...
...
@@ -41,7 +46,7 @@ namespace PcapDotNet.Packets.Transport
/// <summary>
/// The minimum number of bytes this option takes.
/// </summary>
public
const
int
OptionMinimumLength
=
OptionHeaderLength
+
2
;
public
const
int
OptionMinimumLength
=
OptionHeaderLength
+
sizeof
(
byte
)
+
sizeof
(
byte
)
;
/// <summary>
/// The minimum number of bytes this option's value takes.
...
...
PcapDotNet/src/PcapDotNet.Packets/Transport/TcpOptionConnectionCount.cs
View file @
72e02475
...
...
@@ -5,10 +5,14 @@ namespace PcapDotNet.Packets.Transport
/// <summary>
/// CC Option (RFC 1644).
/// <pre>
/// +--------+--------+--------+--------+--------+--------+
/// |00001011|00000110| Connection Count: SEG.CC |
/// +--------+--------+--------+--------+--------+--------+
/// Kind=11 Length=6
/// +-----+------+--------+
/// | Bit | 0-7 | 8-15 |
/// +-----+------+--------+
/// | 0 | Kind | Length |
/// +-----+------+--------+
/// | 16 | Connection |
/// | | Count |
/// +-----+---------------+
/// </pre>
///
/// <para>
...
...
PcapDotNet/src/PcapDotNet.Packets/Transport/TcpOptionConnectionCountEcho.cs
View file @
72e02475
...
...
@@ -5,10 +5,14 @@ namespace PcapDotNet.Packets.Transport
/// <summary>
/// CC.ECHO Option (RFC 1644).
/// <pre>
/// +--------+--------+--------+--------+--------+--------+
/// |00001101|00000110| Connection Count: SEG.CC |
/// +--------+--------+--------+--------+--------+--------+
/// Kind=13 Length=6
/// +-----+------+--------+
/// | Bit | 0-7 | 8-15 |
/// +-----+------+--------+
/// | 0 | Kind | Length |
/// +-----+------+--------+
/// | 16 | Connection |
/// | | Count |
/// +-----+---------------+
/// </pre>
///
/// <para>
...
...
PcapDotNet/src/PcapDotNet.Packets/Transport/TcpOptionConnectionCountNew.cs
View file @
72e02475
...
...
@@ -5,10 +5,14 @@ namespace PcapDotNet.Packets.Transport
/// <summary>
/// CC.NEW Option (RFC 1644).
/// <pre>
/// +--------+--------+--------+--------+--------+--------+
/// |00001100|00000110| Connection Count: SEG.CC |
/// +--------+--------+--------+--------+--------+--------+
/// Kind=12 Length=6
/// +-----+------+--------+
/// | Bit | 0-7 | 8-15 |
/// +-----+------+--------+
/// | 0 | Kind | Length |
/// +-----+------+--------+
/// | 16 | Connection |
/// | | Count |
/// +-----+---------------+
/// </pre>
///
/// <para>
...
...
PcapDotNet/src/PcapDotNet.Packets/Transport/TcpOptionEcho.cs
View file @
72e02475
...
...
@@ -6,9 +6,14 @@ namespace PcapDotNet.Packets.Transport
/// <summary>
/// TCP Echo Option:
/// <pre>
/// +--------+--------+--------+--------+--------+--------+
/// | Kind=6 | Length | 4 bytes of info to be echoed |
/// +--------+--------+--------+--------+--------+--------+
/// +-----+------+----------+
/// | Bit | 0-7 | 8-15 |
/// +-----+------+----------+
/// | 0 | Kind | Length |
/// +-----+------+----------+
/// | 16 | 4 bytes of info |
/// | | to be echoed |
/// +-----+-----------------+
/// </pre>
///
/// <para>
...
...
PcapDotNet/src/PcapDotNet.Packets/Transport/TcpOptionEchoReply.cs
View file @
72e02475
...
...
@@ -6,9 +6,14 @@ namespace PcapDotNet.Packets.Transport
/// <summary>
/// TCP Echo Reply Option:
/// <pre>
/// +--------+--------+--------+--------+--------+--------+
/// | Kind=7 | Length | 4 bytes of echoed info |
/// +--------+--------+--------+--------+--------+--------+
/// +-----+------+--------+
/// | Bit | 0-7 | 8-15 |
/// +-----+------+--------+
/// | 0 | Kind | Length |
/// +-----+------+--------+
/// | 16 | 4 bytes of |
/// | | echoed info |
/// +-----+---------------+
/// </pre>
///
/// <para>
...
...
PcapDotNet/src/PcapDotNet.Packets/Transport/TcpOptionMaximumSegmentSize.cs
View file @
72e02475
...
...
@@ -6,10 +6,13 @@ namespace PcapDotNet.Packets.Transport
/// <summary>
/// Maximum Segment Size (RFC 793)
/// <pre>
/// +--------+--------+---------+--------+
/// |00000010|00000100| max seg size |
/// +--------+--------+---------+--------+
/// Kind=2 Length=4
/// +-----+------+--------+
/// | Bit | 0-7 | 8-15 |
/// +-----+------+--------+
/// | 0 | Kind | Length |
/// +-----+------+--------+
/// | 16 | max seg size |
/// +-----+---------------+
/// </pre>
///
/// <para>
...
...
PcapDotNet/src/PcapDotNet.Packets/Transport/TcpOptionMd5Signature.cs
View file @
72e02475
...
...
@@ -9,17 +9,20 @@ namespace PcapDotNet.Packets.Transport
{
/// <summary>
/// <pre>
/// +---------+---------+-------------------+
/// | Kind=19 |Length=18| MD5 digest... |
/// +---------+---------+-------------------+
/// | |
/// +---------------------------------------+
/// | |
/// +---------------------------------------+
/// | |
/// +-------------------+-------------------+
/// | |
/// +-------------------+
/// +-----+------+--------+
/// | Bit | 0-7 | 8-15 |
/// +-----+------+--------+
/// | 0 | Kind | Length |
/// +-----+------+--------+
/// | 16 | MD5 digest |
/// | | |
/// | | |
/// | | |
/// | | |
/// | | |
/// | | |
/// | | |
/// +-----+---------------+
/// </pre>
///
/// <para>
...
...
PcapDotNet/src/PcapDotNet.Packets/Transport/TcpOptionMood.cs
View file @
72e02475
...
...
@@ -7,11 +7,19 @@ using PcapDotNet.Packets.Ip;
namespace
PcapDotNet.Packets.Transport
{
/// <summary>
/// RFC 5841.
/// TCP Mood Option:
/// <pre>
/// +---------+--------+------------+
/// | Kind=25 | Length | ASCII Mood |
/// +---------+--------+------------+
/// +-----+--------+
/// | Bit | 0-7 |
/// +-----+--------+
/// | 0 | Kind |
/// +-----+--------+
/// | 8 | Length |
/// +-----+--------+
/// | 16 | ASCII |
/// | ... | Mood |
/// +-----+--------+
/// </pre>
///
/// <para>
...
...
PcapDotNet/src/PcapDotNet.Packets/Transport/TcpOptionPartialOrderConnectionPermitted.cs
View file @
72e02475
...
...
@@ -6,9 +6,11 @@ namespace PcapDotNet.Packets.Transport
/// <summary>
/// TCP POC-permitted Option (RFC 1693)
/// <pre>
/// +-----------+-------------+
/// | Kind=9 | Length=2 |
/// +-----------+-------------+
/// +-----+------+--------+
/// | Bit | 0-7 | 8-15 |
/// +-----+------+--------+
/// | 0 | Kind | Length |
/// +-----+------+--------+
/// </pre>
/// </summary>
[
TcpOptionTypeRegistration
(
TcpOptionType
.
PartialOrderConnectionPermitted
)]
...
...
PcapDotNet/src/PcapDotNet.Packets/Transport/TcpOptionPartialOrderServiceProfile.cs
View file @
72e02475
...
...
@@ -8,10 +8,15 @@ namespace PcapDotNet.Packets.Transport
/// TCP POC-service-profile Option (RFC 1693).
///
/// <pre>
/// 1 bit 1 bit 6 bits
/// +----------+----------+------------+----------+--------+
/// | Kind=10 | Length=3 | Start_flag | End_flag | Filler |
/// +----------+----------+------------+----------+--------+
/// +-----+------------+----------+--------+
/// | Bit | 0 | 1 | 2-7 |
/// +-----+------------+----------+--------+
/// | 0 | Kind |
/// +-----+--------------------------------+
/// | 8 | Length |
/// +-----+------------+----------+--------+
/// | 16 | Start_flag | End_flag | Filler |
/// +-----+------------+----------+--------+
/// </pre>
///
/// <para>
...
...
PcapDotNet/src/PcapDotNet.Packets/Transport/TcpOptionSelectiveAcknowledgment.cs
View file @
72e02475
...
...
@@ -8,24 +8,29 @@ using PcapDotNet.Packets.Ip;
namespace
PcapDotNet.Packets.Transport
{
/// <summary>
/// RFC 2018.
/// The SACK option is to be used to convey extended acknowledgment information from the receiver to the sender over an established TCP connection.
///
/// <pre>
/// +--------+--------+
/// | Kind=5 | Length |
/// +--------+--------+--------+--------+
/// | Left Edge of 1st Block |
/// +--------+--------+--------+--------+
/// | Right Edge of 1st Block |
/// +--------+--------+--------+--------+
/// | |
/// / . . . /
/// | |
/// +--------+--------+--------+--------+
/// | Left Edge of nth Block |
/// +--------+--------+--------+--------+
/// | Right Edge of nth Block |
/// +--------+--------+--------+--------+
/// +-----+------+--------+
/// | Bit | 0-7 | 8-15 |
/// +-----+------+--------+
/// | 0 | Kind | Length |
/// +-----+------+--------+
/// | 16 | Left Edge of |
/// | | 1st Block |
/// +-----+---------------+
/// | 48 | Right Edge of |
/// | | 1st Block |
/// +-----+---------------+
/// ...
/// +-----+---------------+
/// | | Left Edge of |
/// | | nth Block |
/// +-----+---------------+
/// | | Right Edge of |
/// | | nth Block |
/// +-----+---------------+
/// </pre>
///
/// <para>
...
...
PcapDotNet/src/PcapDotNet.Packets/Transport/TcpOptionSelectiveAcknowledgmentPermitted.cs
View file @
72e02475
...
...
@@ -10,9 +10,11 @@ namespace PcapDotNet.Packets.Transport
/// It MUST NOT be sent on non-SYN segments.
///
/// <pre>
/// +---------+---------+
/// | Kind=4 | Length=2|
/// +---------+---------+
/// +-----+------+--------+
/// | Bit | 0-7 | 8-15 |
/// +-----+------+--------+
/// | 0 | Kind | Length |
/// +-----+------+--------+
/// </pre>
/// </summary>
[
TcpOptionTypeRegistration
(
TcpOptionType
.
SelectiveAcknowledgmentPermitted
)]
...
...
PcapDotNet/src/PcapDotNet.Packets/Transport/TcpOptionTimestamp.cs
View file @
72e02475
...
...
@@ -4,12 +4,20 @@ using PcapDotNet.Packets.Ip;
namespace
PcapDotNet.Packets.Transport
{
/// <summary>
/// RFC 1323.
/// TCP Timestamps Option (TSopt):
/// <pre>
/// +-------+-------+---------------------+---------------------+
/// |Kind=8 | 10 | TS Value (TSval) |TS Echo Reply (TSecr)|
/// +-------+-------+---------------------+---------------------+
/// 1 1 4 4
/// +-----+------+--------+
/// | Bit | 0-7 | 8-15 |
/// +-----+------+--------+
/// | 0 | Kind | Length |
/// +-----+------+--------+
/// | 16 | TS Value |
/// | | (TSval) |
/// +-----+---------------+
/// | 48 | TS Echo Reply |
/// | | (TSecr) |
/// +-----+---------------+
/// </pre>
///
/// <para>
...
...
PcapDotNet/src/PcapDotNet.Packets/Transport/TcpOptionWindowScale.cs
View file @
72e02475
...
...
@@ -12,9 +12,15 @@ namespace PcapDotNet.Packets.Transport
/// The scale factor is limited to a power of two and encoded logarithmically, so it may be implemented by binary shift operations.
///
/// <pre>
/// +---------+---------+---------+
/// | Kind=3 |Length=3 |shift.cnt|
/// +---------+---------+---------+
/// +-----+-----------+
/// | Bit | 0-7 |
/// +-----+-----------+
/// | 0 | Kind |
/// +-----+-----------+
/// | 8 | Length |
/// +-----+-----------+
/// | 16 | shift.cnt |
/// +-----+-----------+
/// </pre>
///
/// <para>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment