fixup! implement l2tpd_tx_data including crc32

This commit is contained in:
Alexander Couzens 2016-11-02 20:56:32 +01:00 committed by Harald Welte
parent 0204667e06
commit 4c3607544f
1 changed files with 9 additions and 0 deletions

View File

@ -4,6 +4,15 @@
#define IPPROTO_L2TP 115
#endif
struct l2tp_data_hdr {
uint32_t session_id; /* session and message type */\
uint32_t sequence_id; /* sequence number */
uint32_t crc;
};
#define L2TP_DATA_SEQ_ID_MASK 0xffffff
#define L2TP_DATA_SEQ_BIT 0x40000000
struct l2tp_control_hdr {
uint16_t ver; /* Version and more */
uint16_t length; /* Length field */