sys/linux: add l2cap_conf_opt options

This commit is contained in:
Andy Nguyen 2020-08-01 19:54:03 +02:00 committed by Dmitry Vyukov
parent 63a7334112
commit cfd7c91a0a
9 changed files with 81 additions and 6 deletions

View File

@ -68,23 +68,50 @@ l2cap_cmd_rej_unk {
reason int16
} [packed]
l2cap_conf_opt {
type int8
len bytesize[val, int8]
val array[int8]
l2cap_conf_rfc {
mode int8
txwin_size int8
max_transmit int8
retrans_timeout int16
monitor_timeout int16
max_pdu_size int16
} [packed]
l2cap_conf_efs {
id int8
stype int8
msdu int16
sdu_itime int32
acc_lat int32
flush_to int32
} [packed]
type l2cap_conf_opt[TYPE, VAL] {
type const[TYPE, int8]
len bytesize[val, int8]
val VAL
} [packed]
l2cap_conf_opt_un [
l2cap_conf_rfc l2cap_conf_opt[L2CAP_CONF_RFC, l2cap_conf_rfc]
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_ews l2cap_conf_opt[L2CAP_CONF_EWS, int16]
] [varlen]
l2cap_conf_req {
dcid int16
flags int16
data array[l2cap_conf_opt]
data array[l2cap_conf_opt_un]
} [packed]
l2cap_conf_rsp {
scid int16
flags int16
result int16
data array[l2cap_conf_opt]
data array[l2cap_conf_opt_un]
} [packed]
l2cap_conn_param_update_req {

View File

@ -2,7 +2,13 @@
L2CAP_CID_LE_SIGNALING = 5
L2CAP_CID_SIGNALING = 1
L2CAP_COMMAND_REJ = 1
L2CAP_CONF_EFS = 6
L2CAP_CONF_EWS = 7
L2CAP_CONF_FCS = 5
L2CAP_CONF_FLUSH_TO = 2
L2CAP_CONF_MTU = 1
L2CAP_CONF_REQ = 4
L2CAP_CONF_RFC = 4
L2CAP_CONF_RSP = 5
L2CAP_CONN_PARAM_UPDATE_REQ = 18
L2CAP_CONN_PARAM_UPDATE_RSP = 19

View File

@ -2,7 +2,13 @@
L2CAP_CID_LE_SIGNALING = 5
L2CAP_CID_SIGNALING = 1
L2CAP_COMMAND_REJ = 1
L2CAP_CONF_EFS = 6
L2CAP_CONF_EWS = 7
L2CAP_CONF_FCS = 5
L2CAP_CONF_FLUSH_TO = 2
L2CAP_CONF_MTU = 1
L2CAP_CONF_REQ = 4
L2CAP_CONF_RFC = 4
L2CAP_CONF_RSP = 5
L2CAP_CONN_PARAM_UPDATE_REQ = 18
L2CAP_CONN_PARAM_UPDATE_RSP = 19

View File

@ -2,7 +2,13 @@
L2CAP_CID_LE_SIGNALING = 5
L2CAP_CID_SIGNALING = 1
L2CAP_COMMAND_REJ = 1
L2CAP_CONF_EFS = 6
L2CAP_CONF_EWS = 7
L2CAP_CONF_FCS = 5
L2CAP_CONF_FLUSH_TO = 2
L2CAP_CONF_MTU = 1
L2CAP_CONF_REQ = 4
L2CAP_CONF_RFC = 4
L2CAP_CONF_RSP = 5
L2CAP_CONN_PARAM_UPDATE_REQ = 18
L2CAP_CONN_PARAM_UPDATE_RSP = 19

View File

@ -2,7 +2,13 @@
L2CAP_CID_LE_SIGNALING = 5
L2CAP_CID_SIGNALING = 1
L2CAP_COMMAND_REJ = 1
L2CAP_CONF_EFS = 6
L2CAP_CONF_EWS = 7
L2CAP_CONF_FCS = 5
L2CAP_CONF_FLUSH_TO = 2
L2CAP_CONF_MTU = 1
L2CAP_CONF_REQ = 4
L2CAP_CONF_RFC = 4
L2CAP_CONF_RSP = 5
L2CAP_CONN_PARAM_UPDATE_REQ = 18
L2CAP_CONN_PARAM_UPDATE_RSP = 19

View File

@ -2,7 +2,13 @@
L2CAP_CID_LE_SIGNALING = 5
L2CAP_CID_SIGNALING = 1
L2CAP_COMMAND_REJ = 1
L2CAP_CONF_EFS = 6
L2CAP_CONF_EWS = 7
L2CAP_CONF_FCS = 5
L2CAP_CONF_FLUSH_TO = 2
L2CAP_CONF_MTU = 1
L2CAP_CONF_REQ = 4
L2CAP_CONF_RFC = 4
L2CAP_CONF_RSP = 5
L2CAP_CONN_PARAM_UPDATE_REQ = 18
L2CAP_CONN_PARAM_UPDATE_RSP = 19

View File

@ -2,7 +2,13 @@
L2CAP_CID_LE_SIGNALING = 5
L2CAP_CID_SIGNALING = 1
L2CAP_COMMAND_REJ = 1
L2CAP_CONF_EFS = 6
L2CAP_CONF_EWS = 7
L2CAP_CONF_FCS = 5
L2CAP_CONF_FLUSH_TO = 2
L2CAP_CONF_MTU = 1
L2CAP_CONF_REQ = 4
L2CAP_CONF_RFC = 4
L2CAP_CONF_RSP = 5
L2CAP_CONN_PARAM_UPDATE_REQ = 18
L2CAP_CONN_PARAM_UPDATE_RSP = 19

View File

@ -2,7 +2,13 @@
L2CAP_CID_LE_SIGNALING = 5
L2CAP_CID_SIGNALING = 1
L2CAP_COMMAND_REJ = 1
L2CAP_CONF_EFS = 6
L2CAP_CONF_EWS = 7
L2CAP_CONF_FCS = 5
L2CAP_CONF_FLUSH_TO = 2
L2CAP_CONF_MTU = 1
L2CAP_CONF_REQ = 4
L2CAP_CONF_RFC = 4
L2CAP_CONF_RSP = 5
L2CAP_CONN_PARAM_UPDATE_REQ = 18
L2CAP_CONN_PARAM_UPDATE_RSP = 19

View File

@ -2,7 +2,13 @@
L2CAP_CID_LE_SIGNALING = 5
L2CAP_CID_SIGNALING = 1
L2CAP_COMMAND_REJ = 1
L2CAP_CONF_EFS = 6
L2CAP_CONF_EWS = 7
L2CAP_CONF_FCS = 5
L2CAP_CONF_FLUSH_TO = 2
L2CAP_CONF_MTU = 1
L2CAP_CONF_REQ = 4
L2CAP_CONF_RFC = 4
L2CAP_CONF_RSP = 5
L2CAP_CONN_PARAM_UPDATE_REQ = 18
L2CAP_CONN_PARAM_UPDATE_RSP = 19