#include <net/if_llc.h>
net/if_llc.h
46 macros · 2 structs
size 8, align 1 · packed
| u_int8_t | llc_dsap | |
| u_int8_t | llc_ssap | |
| unnamed union at net/if_llc.h:75:2 | llc_un | |
| | unnamed struct at net/if_llc.h:76:3 | type_u | | | | | unnamed struct at net/if_llc.h:82:3 | type_i | | | | | unnamed struct at net/if_llc.h:86:3 | type_s | | | | | unnamed struct at net/if_llc.h:90:3 | type_frmr | | | | | unnamed struct at net/if_llc.h:102:3 | type_snap | | | | | unnamed struct at net/if_llc.h:107:3 | type_raw | | | |
|
#define llc_control llc_un.type_u.control
#define llc_control_ext llc_un.type_raw.control_ext
#define llc_fid llc_un.type_u.format_id
#define llc_class llc_un.type_u.class
#define llc_window llc_un.type_u.window_x2
#define llc_frmrinfo llc_un.type_frmr.frmr_rej_pdu0
#define llc_frmr_pdu0 llc_un.type_frmr.frmr_rej_pdu0
#define llc_frmr_pdu1 llc_un.type_frmr.frmr_rej_pdu1
#define llc_frmr_control llc_un.type_frmr.frmr_control
#define llc_frmr_control_ext llc_un.type_frmr.frmr_control_ext
#define llc_frmr_cause llc_un.type_frmr.frmr_cause
#define llc_snap llc_un.type_snap
Don't use sizeof(struct llc_un) for LLC header sizes
#define LLC_ISFRAMELEN 4
#define LLC_SNAPFRAMELEN 8
Unnumbered LLC format commands
#define LLC_UI 0x3
Supervisory LLC commands
#define LLC_RR 0x01
Info format - dummy only
#define LLC_INFO 0x00
ISO PDTR 10178 contains among others
#define LLC_8021D_LSAP 0x42
#define LLC_X25_LSAP 0x7e
#define LLC_SNAP_LSAP 0xaa
#define LLC_ISO_LSAP 0xfe
#define LLC_XID_CLASS_I 0x1
#define LLC_XID_CLASS_II 0x3
#define LLC_XID_CLASS_III 0x5
#define LLC_XID_CLASS_IV 0x7