From cb435b0c8abe8c2e98846a8eb1c40c4ed1aaa9ec Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Sun, 2 Aug 2020 12:04:38 +0200 Subject: sys/linux: refine some l2cap flags --- sys/linux/l2cap.txt | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'sys/linux/l2cap.txt') diff --git a/sys/linux/l2cap.txt b/sys/linux/l2cap.txt index 17ca6f27d..c085a436c 100644 --- a/sys/linux/l2cap.txt +++ b/sys/linux/l2cap.txt @@ -69,7 +69,7 @@ l2cap_cmd_rej_unk { } [packed] l2cap_conf_rfc { - mode int8 + mode flags[l2cap_rfc_mode, int8] txwin_size int8 max_transmit int8 retrans_timeout int16 @@ -77,15 +77,19 @@ l2cap_conf_rfc { max_pdu_size int16 } [packed] +l2cap_rfc_mode = L2CAP_MODE_BASIC, L2CAP_MODE_RETRANS, L2CAP_MODE_FLOWCTL, L2CAP_MODE_ERTM, L2CAP_MODE_STREAMING + l2cap_conf_efs { id int8 - stype int8 + stype flags[l2cap_serv_type, int8] msdu int16 sdu_itime int32 acc_lat int32 flush_to int32 } [packed] +l2cap_serv_type = L2CAP_SERV_NOTRAFIC, L2CAP_SERV_BESTEFFORT, L2CAP_SERV_GUARANTEED + type l2cap_conf_opt[TYPE, VAL] { type const[TYPE, int8] len bytesize[val, int8] @@ -97,10 +101,12 @@ l2cap_conf_opt_un [ l2cap_conf_efs l2cap_conf_opt[L2CAP_CONF_EFS, l2cap_conf_efs] l2cap_conf_mtu l2cap_conf_opt[L2CAP_CONF_MTU, int16] l2cap_conf_flushto l2cap_conf_opt[L2CAP_CONF_FLUSH_TO, int16] - l2cap_conf_fcs l2cap_conf_opt[L2CAP_CONF_FCS, int8] + l2cap_conf_fcs l2cap_conf_opt[L2CAP_CONF_FCS, flags[l2cap_fcs_type, int8]] l2cap_conf_ews l2cap_conf_opt[L2CAP_CONF_EWS, int16] ] [varlen] +l2cap_fcs_type = L2CAP_FCS_NONE, L2CAP_FCS_CRC16 + l2cap_conf_req { dcid int16 flags int16 -- cgit mrf-deployment