Home
last modified time | relevance | path

Searched refs:mtu (Results 1 – 25 of 46) sorted by relevance

12

/Zephyr-Core-2.7.6/subsys/bluetooth/host/
Drfcomm_internal.h28 uint16_t mtu; member
67 uint16_t mtu; member
128 #define BT_RFCOMM_CHECK_MTU(mtu) (!!((mtu) >= BT_RFCOMM_SIG_MIN_MTU && \ argument
129 (mtu) <= BT_RFCOMM_SIG_MAX_MTU))
135 #define BT_RFCOMM_BUF_SIZE(mtu) (BT_BUF_RESERVE + \ argument
137 sizeof(struct bt_rfcomm_hdr) + 1 + (mtu) + \
Dl2cap.c478 req->mtu = sys_cpu_to_le16(ch->rx.mtu); in l2cap_le_conn_req()
512 req->mtu = sys_cpu_to_le16(ch->rx.mtu); in l2cap_ecred_conn_req()
799 if (!chan->rx.mtu) { in l2cap_chan_rx_init()
803 chan->rx.mtu = BT_L2CAP_SDU_RX_MTU; in l2cap_chan_rx_init()
809 chan->rx.mps = MIN(chan->rx.mtu + BT_L2CAP_SDU_HDR_SIZE, in l2cap_chan_rx_init()
816 (chan->rx.mps < chan->rx.mtu + BT_L2CAP_SDU_HDR_SIZE)) { in l2cap_chan_rx_init()
818 chan->rx.mtu = chan->rx.mps - BT_L2CAP_SDU_HDR_SIZE; in l2cap_chan_rx_init()
826 ceiling_fraction(chan->rx.mtu, in l2cap_chan_rx_init()
837 chan->rx.mtu + BT_L2CAP_SDU_HDR_SIZE) { in l2cap_chan_rx_init()
979 uint16_t mtu, uint16_t mps, uint16_t credits, in l2cap_chan_accept() argument
[all …]
Drfcomm.c410 session->mtu = MIN(session->br_chan.rx.mtu, in rfcomm_connected()
411 session->br_chan.tx.mtu) - in rfcomm_connected()
482 if (!BT_RFCOMM_CHECK_MTU(dlc->mtu)) { in rfcomm_dlc_accept()
488 dlc->mtu = MIN(dlc->mtu, session->mtu); in rfcomm_dlc_accept()
907 BT_DBG("mtu %x", dlc->mtu); in rfcomm_send_pn()
911 pn->mtu = sys_cpu_to_le16(dlc->mtu); in rfcomm_send_pn()
970 dlc->mtu = MIN(dlc->mtu, dlc->session->mtu); in rfcomm_dlc_start()
1175 if (!BT_RFCOMM_CHECK_MTU(pn->mtu)) { in rfcomm_handle_pn()
1176 BT_ERR("Invalid mtu %d", pn->mtu); in rfcomm_handle_pn()
1189 dlc->mtu = MIN(dlc->mtu, sys_le16_to_cpu(pn->mtu)); in rfcomm_handle_pn()
[all …]
Dl2cap_br.c517 static void l2cap_br_conf_add_mtu(struct net_buf *buf, const uint16_t mtu) in l2cap_br_conf_add_mtu() argument
520 net_buf_add_u8(buf, sizeof(mtu)); in l2cap_br_conf_add_mtu()
521 net_buf_add_le16(buf, mtu); in l2cap_br_conf_add_mtu()
544 if (BR_CHAN(chan)->rx.mtu != L2CAP_BR_DEFAULT_MTU) { in l2cap_br_conf()
545 l2cap_br_conf_add_mtu(buf, BR_CHAN(chan)->rx.mtu); in l2cap_br_conf()
756 BR_CHAN(chan)->rx.mtu = MIN(BR_CHAN(chan)->rx.mtu, BT_L2CAP_RX_MTU); in l2cap_br_conn_req()
833 BR_CHAN(chan)->rx.cid, BR_CHAN(chan)->rx.mtu, in l2cap_br_conf_rsp()
834 BR_CHAN(chan)->tx.cid, BR_CHAN(chan)->tx.mtu); in l2cap_br_conf_rsp()
912 uint16_t mtu, result = BT_L2CAP_CONF_SUCCESS; in l2cap_br_conf_opt_mtu() local
922 mtu = net_buf_pull_le16(buf); in l2cap_br_conf_opt_mtu()
[all …]
Dl2cap_internal.h161 uint16_t mtu; member
182 uint16_t mtu; member
197 uint16_t mtu; member
205 uint16_t mtu; member
214 uint16_t mtu; member
Datt.c237 if (chan->chan.tx.mtu < net_buf_frags_len(req->buf)) { in chan_req_send()
403 if (len + sizeof(op) > chan->chan.tx.mtu) { in bt_att_chan_create_pdu()
405 chan->chan.tx.mtu, len + sizeof(op)); in bt_att_chan_create_pdu()
522 mtu_client = sys_le16_to_cpu(req->mtu); in att_mtu_req()
541 rsp->mtu = sys_cpu_to_le16(mtu_server); in att_mtu_req()
550 chan->chan.rx.mtu = MIN(mtu_client, mtu_server); in att_mtu_req()
551 chan->chan.tx.mtu = chan->chan.rx.mtu; in att_mtu_req()
553 BT_DBG("Negotiated MTU %u", chan->chan.rx.mtu); in att_mtu_req()
645 uint16_t mtu; in att_mtu_rsp() local
649 mtu = sys_le16_to_cpu(rsp->mtu); in att_mtu_rsp()
[all …]
/Zephyr-Core-2.7.6/include/bluetooth/
Dl2cap.h45 #define BT_L2CAP_BUF_SIZE(mtu) BT_BUF_ACL_SIZE(BT_L2CAP_HDR_SIZE + (mtu)) argument
81 #define BT_L2CAP_SDU_BUF_SIZE(mtu) BT_L2CAP_BUF_SIZE(BT_L2CAP_SDU_HDR_SIZE + (mtu)) argument
158 uint16_t mtu; member
216 uint16_t mtu; member
456 int bt_l2cap_ecred_chan_reconfigure(struct bt_l2cap_chan **chans, uint16_t mtu);
/Zephyr-Core-2.7.6/samples/net/sockets/echo_server/src/
Dtunnel.c81 int mtu; in init_tunnel() local
107 mtu = NET_ETH_MTU - sizeof(struct net_ipv6_hdr); in init_tunnel()
118 mtu = NET_ETH_MTU - sizeof(struct net_ipv4_hdr); in init_tunnel()
143 params.mtu = mtu; in init_tunnel()
149 net_if_get_by_iface(ud.tunnel), params.mtu, ret); in init_tunnel()
/Zephyr-Core-2.7.6/subsys/bluetooth/mesh/
Dproxy_msg.c203 uint16_t mtu; in bt_mesh_proxy_msg_send() local
210 mtu = bt_gatt_get_mtu(conn) - 3; in bt_mesh_proxy_msg_send()
211 if (mtu > msg->len) { in bt_mesh_proxy_msg_send()
217 err = role->cb.send(conn, msg->data, mtu, NULL, NULL); in bt_mesh_proxy_msg_send()
222 net_buf_simple_pull(msg, mtu); in bt_mesh_proxy_msg_send()
225 if (msg->len + 1 <= mtu) { in bt_mesh_proxy_msg_send()
236 err = role->cb.send(conn, msg->data, mtu, NULL, NULL); in bt_mesh_proxy_msg_send()
241 net_buf_simple_pull(msg, mtu); in bt_mesh_proxy_msg_send()
/Zephyr-Core-2.7.6/subsys/mgmt/mcumgr/
Dsmp.c108 zephyr_smp_split_frag(struct net_buf **nb, void *arg, uint16_t mtu) in zephyr_smp_split_frag() argument
115 if (src->len <= mtu) { in zephyr_smp_split_frag()
125 net_buf_add_mem(frag, src->data, mtu); in zephyr_smp_split_frag()
128 zephyr_smp_trim_front(src, mtu, NULL); in zephyr_smp_split_frag()
173 uint16_t mtu; in zephyr_smp_tx_rsp() local
180 mtu = zst->zst_get_mtu(rsp); in zephyr_smp_tx_rsp()
181 if (mtu == 0U) { in zephyr_smp_tx_rsp()
188 frag = zephyr_smp_split_frag(&nb, zst, mtu); in zephyr_smp_tx_rsp()
Dsmp_bt.c199 uint16_t mtu; in smp_bt_get_mtu() local
206 mtu = bt_gatt_get_mtu(conn); in smp_bt_get_mtu()
209 return mtu - 3; in smp_bt_get_mtu()
/Zephyr-Core-2.7.6/include/net/
Dnet_if.h453 uint16_t mtu; member
792 return iface->if_dev->mtu; in net_if_get_mtu()
802 uint16_t mtu) in net_if_set_mtu() argument
808 iface->if_dev->mtu = mtu; in net_if_set_mtu()
2222 .mtu = _mtu, \
2238 .mtu = _mtu, \
2256 l2_ctx_type, mtu) \ argument
2261 NET_IF_INIT(dev_name, 0, l2, mtu, NET_IF_MAX_CONFIGS)
2286 l2_ctx_type, mtu) \ argument
2289 l2_ctx_type, mtu)
[all …]
Dvirtual.h61 int mtu; member
278 prio, api, mtu) \ argument
282 mtu)
310 data, cfg, prio, api, mtu) \ argument
313 data, cfg, prio, api, mtu)
Dethernet.h830 pm_control_fn, data, cfg, prio, api, mtu) \ argument
835 NET_IF_INIT(dev_name, 0, ETHERNET_L2, mtu, NET_VLAN_MAX_COUNT)
840 pm_control_fn, data, cfg, prio, api, mtu) \ argument
844 mtu)
867 data, cfg, prio, api, mtu) \ argument
870 api, mtu)
891 cfg, prio, api, mtu) \ argument
895 api, mtu)
Dvirtual_mgmt.h45 int mtu; member
/Zephyr-Core-2.7.6/subsys/net/l2/virtual/
Dvirtual_mgmt.c55 config.mtu = params->mtu; in virtual_interface_set_config()
114 params->mtu = config.mtu; in virtual_interface_get_config()
/Zephyr-Core-2.7.6/tests/bluetooth/tester/src/
Dl2cap.c86 ev.mtu_remote = sys_cpu_to_le16(chan->le.tx.mtu); in connected_cb()
88 ev.mtu_local = sys_cpu_to_le16(chan->le.rx.mtu); in connected_cb()
150 ev.mtu_remote = sys_cpu_to_le16(chan->le.tx.mtu); in reconfigured_cb()
152 ev.mtu_local = sys_cpu_to_le16(chan->le.rx.mtu); in reconfigured_cb()
198 uint16_t mtu = sys_le16_to_cpu(cmd->mtu); in connect() local
204 if (cmd->num == 0 || cmd->num > CHANNELS || mtu > DATA_MTU_INITIAL) { in connect()
221 chan->le.rx.mtu = mtu; in connect()
288 uint16_t mtu = sys_le16_to_cpu(cmd->mtu); in reconfigure() local
308 if (mtu > DATA_MTU) { in reconfigure()
322 err = bt_l2cap_ecred_chan_reconfigure(reconf_channels, mtu); in reconfigure()
[all …]
/Zephyr-Core-2.7.6/samples/net/sockets/echo_client/src/
Decho-client.c207 conf.ipv4.udp.mtu = net_if_get_mtu(iface); in event_handler()
208 conf.ipv6.udp.mtu = conf.ipv4.udp.mtu; in event_handler()
Dcommon.h40 uint32_t mtu; member
/Zephyr-Core-2.7.6/subsys/bluetooth/services/ots/
Dots_l2cap.c49 len = MIN(l2cap_ctx->ot_chan.tx.mtu, CONFIG_BT_OTS_L2CAP_CHAN_TX_MTU); in ots_l2cap_send()
159 chan->rx.mtu = CONFIG_BT_OTS_L2CAP_CHAN_RX_MTU; in l2cap_chan_init()
162 LOG_DBG("RX MTU set to %u", chan->rx.mtu); in l2cap_chan_init()
/Zephyr-Core-2.7.6/samples/net/virtual/src/
Dmain.c287 params.mtu = NET_ETH_MTU - sizeof(struct net_ipv6_hdr); in setup_iface()
293 net_if_get_by_iface(iface), params.mtu, ret); in setup_iface()
347 params.mtu = NET_ETH_MTU - sizeof(struct net_ipv4_hdr); in setup_iface()
354 net_if_get_by_iface(iface), params.mtu, ret); in setup_iface()
/Zephyr-Core-2.7.6/tests/bluetooth/bsim_bt/bsim_test_l2cap_stress/src/
Dmain.c139 chan->tx.mtu, in l2cap_chan_connected_cb()
141 chan->rx.mtu, in l2cap_chan_connected_cb()
189 le_chan->rx.mtu = SDU_LEN; in server_accept_cb()
367 le_chan->rx.mtu = SDU_LEN; in connect_l2cap_channel()
/Zephyr-Core-2.7.6/subsys/net/lib/capture/
Dcapture.c292 int mtu; in net_capture_setup() local
321 mtu = orig_mtu - sizeof(struct net_ipv6_hdr) - in net_capture_setup()
332 mtu = orig_mtu - sizeof(struct net_ipv4_hdr) - in net_capture_setup()
376 params.mtu = orig_mtu; in net_capture_setup()
382 net_if_get_by_iface(ipip_iface), params.mtu, ret); in net_capture_setup()
407 net_if_set_mtu(remote_iface, mtu); in net_capture_setup()
/Zephyr-Core-2.7.6/subsys/bluetooth/shell/
Drfcomm.c125 .mtu = 30,
207 len = MIN(rfcomm_dlc.mtu, net_buf_tailroom(buf) - 1); in cmd_send()
/Zephyr-Core-2.7.6/samples/net/capture/
DREADME.rst52 zeth: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
61 zeth-ip6ip: flags=209<UP,POINTOPOINT,RUNNING,NOARP> mtu 1480
70 zeth-ip6ip6: flags=209<UP,POINTOPOINT,RUNNING,NOARP> mtu 1452
79 zeth-ipip: flags=209<UP,POINTOPOINT,RUNNING,NOARP> mtu 1480
88 zeth-ipip6: flags=209<UP,POINTOPOINT,RUNNING,NOARP> mtu 1452

12