.TH "rte_l2tpv2.h" 3 "Version 25.11.0" "DPDK" \" -*- nroff -*-
.ad l
.nh
.SH NAME
rte_l2tpv2.h
.SH SYNOPSIS
.br
.PP
\fR#include <stdint\&.h>\fP
.br
\fR#include <rte_byteorder\&.h>\fP
.br

.SS "Data Structures"

.in +1c
.ti -1c
.RI "struct \fBrte_l2tpv2_common_hdr\fP"
.br
.ti -1c
.RI "struct \fBrte_l2tpv2_msg_with_all_options\fP"
.br
.ti -1c
.RI "struct \fBrte_l2tpv2_msg_without_length\fP"
.br
.ti -1c
.RI "struct \fBrte_l2tpv2_msg_without_ns_nr\fP"
.br
.ti -1c
.RI "struct \fBrte_l2tpv2_msg_without_offset\fP"
.br
.ti -1c
.RI "struct \fBrte_l2tpv2_msg_with_offset\fP"
.br
.ti -1c
.RI "struct \fBrte_l2tpv2_msg_with_ns_nr\fP"
.br
.ti -1c
.RI "struct \fBrte_l2tpv2_msg_with_length\fP"
.br
.ti -1c
.RI "struct \fBrte_l2tpv2_msg_without_all_options\fP"
.br
.ti -1c
.RI "struct \fBrte_l2tpv2_combined_msg_hdr\fP"
.br
.in -1c
.SH "Detailed Description"
.PP 
L2TP header:

.PP
\fR-0--------------------1----------------2-------------------3\fP

.PP
\fR-0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1\fP

.PP
\fR+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+\fP

.PP
\fR|T|L|x|x|S|x|O|P|x|x|x|x|--Ver--|-----------Length (opt)--------|\fP

.PP
\fR+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+\fP

.PP
\fR|-----------Tunnel ID-----------|-----------Session ID----------|\fP

.PP
\fR+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+\fP

.PP
\fR|-----------Ns (opt)------------|-----------Nr (opt)------------|\fP

.PP
\fR+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+\fP

.PP
\fR|---------Offset Size (opt)-----|---------Offset pad\&.\&.\&. (opt)\fP

.PP
\fR+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+\fP

.PP
The Type (T) bit indicates the type of message\&. It is set to 0 for a data message and 1 for a control message\&.

.PP
If the Length (L) bit is 1, the Length field is present\&. This bit MUST be set to 1 for control messages\&.

.PP
The x bits are reserved for future extensions\&. All reserved bits MUST be set to 0 on outgoing messages and ignored on incoming messages\&.

.PP
If the Sequence (S) bit is set to 1 the Ns and Nr fields are present\&. The S bit MUST be set to 1 for control messages\&.

.PP
If the Offset (O) bit is 1, the Offset Size field is present\&. The O bit MUST be set to 0 for control messages\&.

.PP
If the Priority (P) bit is 1, this data message should receive preferential treatment in its local queuing and transmission\&. The P bit MUST be set to 0 for control messages\&.

.PP
Ver MUST be 2, indicating the version of the L2TP data message header\&.

.PP
The Length field indicates the total length of the message in octets\&.

.PP
Tunnel ID indicates the identifier for the control connection\&.

.PP
Session ID indicates the identifier for a session within a tunnel\&.

.PP
Ns indicates the sequence number for this data or control message\&.

.PP
Nr indicates the sequence number expected in the next control message to be received\&.

.PP
The Offset Size field, if present, specifies the number of octets past the L2TP header at which the payload data is expected to start\&. Actual data within the offset padding is undefined\&. If the offset field is present, the L2TP header ends after the last octet of the offset padding\&. 
.PP
Definition in file \fBrte_l2tpv2\&.h\fP\&.
.SH "Author"
.PP 
Generated automatically by Doxygen for DPDK from the source code\&.
