Home
last modified time | relevance | path

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

123

/Zephyr-Core-3.4.0/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.c508 req->mtu = sys_cpu_to_le16(ch->rx.mtu); in l2cap_le_conn_req()
544 req->mtu = sys_cpu_to_le16(ch->rx.mtu); in l2cap_ecred_conn_req()
548 req_mtu = ch->tx.mtu; in l2cap_ecred_conn_req()
555 __ASSERT(ch->tx.mtu == req_mtu, in l2cap_ecred_conn_req()
870 if (!chan->rx.mtu) { in l2cap_chan_rx_init()
874 chan->rx.mtu = BT_L2CAP_SDU_RX_MTU; in l2cap_chan_rx_init()
880 chan->rx.mps = MIN(chan->rx.mtu + BT_L2CAP_SDU_HDR_SIZE, in l2cap_chan_rx_init()
887 (chan->rx.mps < chan->rx.mtu + BT_L2CAP_SDU_HDR_SIZE)) { in l2cap_chan_rx_init()
889 chan->rx.mtu = chan->rx.mps - BT_L2CAP_SDU_HDR_SIZE; in l2cap_chan_rx_init()
1030 uint16_t mtu, uint16_t mps, uint16_t credits, in l2cap_chan_accept() argument
[all …]
Drfcomm.c408 session->mtu = MIN(session->br_chan.rx.mtu, in rfcomm_connected()
409 session->br_chan.tx.mtu) - in rfcomm_connected()
480 if (!BT_RFCOMM_CHECK_MTU(dlc->mtu)) { in rfcomm_dlc_accept()
486 dlc->mtu = MIN(dlc->mtu, session->mtu); in rfcomm_dlc_accept()
905 LOG_DBG("mtu %x", dlc->mtu); in rfcomm_send_pn()
909 pn->mtu = sys_cpu_to_le16(dlc->mtu); in rfcomm_send_pn()
968 dlc->mtu = MIN(dlc->mtu, dlc->session->mtu); in rfcomm_dlc_start()
1173 if (!BT_RFCOMM_CHECK_MTU(pn->mtu)) { in rfcomm_handle_pn()
1174 LOG_ERR("Invalid mtu %d", pn->mtu); in rfcomm_handle_pn()
1187 dlc->mtu = MIN(dlc->mtu, sys_le16_to_cpu(pn->mtu)); in rfcomm_handle_pn()
[all …]
Dl2cap_br.c522 static void l2cap_br_conf_add_mtu(struct net_buf *buf, const uint16_t mtu) in l2cap_br_conf_add_mtu() argument
525 net_buf_add_u8(buf, sizeof(mtu)); in l2cap_br_conf_add_mtu()
526 net_buf_add_le16(buf, mtu); in l2cap_br_conf_add_mtu()
549 if (BR_CHAN(chan)->rx.mtu != L2CAP_BR_DEFAULT_MTU) { in l2cap_br_conf()
550 l2cap_br_conf_add_mtu(buf, BR_CHAN(chan)->rx.mtu); in l2cap_br_conf()
764 BR_CHAN(chan)->rx.mtu = MIN(BR_CHAN(chan)->rx.mtu, BT_L2CAP_RX_MTU); in l2cap_br_conn_req()
843 br_chan->rx.mtu, br_chan->tx.cid, br_chan->tx.mtu); in l2cap_br_conf_rsp()
921 uint16_t mtu, result = BT_L2CAP_CONF_SUCCESS; in l2cap_br_conf_opt_mtu() local
931 mtu = net_buf_pull_le16(buf); in l2cap_br_conf_opt_mtu()
932 if (mtu < L2CAP_BR_MIN_MTU) { in l2cap_br_conf_opt_mtu()
[all …]
Dl2cap_internal.h162 uint16_t mtu; member
183 uint16_t mtu; member
198 uint16_t mtu; member
206 uint16_t mtu; member
217 uint16_t mtu; member
/Zephyr-Core-3.4.0/include/zephyr/bluetooth/
Dl2cap.h48 #define BT_L2CAP_BUF_SIZE(mtu) BT_BUF_ACL_SIZE(BT_L2CAP_HDR_SIZE + (mtu)) argument
84 #define BT_L2CAP_SDU_BUF_SIZE(mtu) BT_L2CAP_BUF_SIZE(BT_L2CAP_SDU_HDR_SIZE + (mtu)) argument
157 uint16_t mtu; member
241 uint16_t mtu; member
528 int bt_l2cap_ecred_chan_reconfigure(struct bt_l2cap_chan **chans, uint16_t mtu);
Datt.h110 int bt_eatt_reconfigure(struct bt_conn *conn, uint16_t mtu);
/Zephyr-Core-3.4.0/samples/net/sockets/echo_server/src/
Dtunnel.c84 int mtu; in init_tunnel() local
110 mtu = NET_ETH_MTU - sizeof(struct net_ipv6_hdr); in init_tunnel()
121 mtu = NET_ETH_MTU - sizeof(struct net_ipv4_hdr); in init_tunnel()
146 params.mtu = mtu; in init_tunnel()
152 net_if_get_by_iface(ud.tunnel), params.mtu, ret); in init_tunnel()
/Zephyr-Core-3.4.0/subsys/bluetooth/mesh/
Dproxy_msg.c153 uint16_t mtu; in bt_mesh_proxy_msg_send() local
160 mtu = bt_gatt_get_mtu(conn) - 3; in bt_mesh_proxy_msg_send()
161 if (mtu > msg->len) { in bt_mesh_proxy_msg_send()
167 err = role->cb.send(conn, msg->data, mtu, NULL, NULL); in bt_mesh_proxy_msg_send()
172 net_buf_simple_pull(msg, mtu); in bt_mesh_proxy_msg_send()
175 if (msg->len + 1 <= mtu) { in bt_mesh_proxy_msg_send()
186 err = role->cb.send(conn, msg->data, mtu, NULL, NULL); in bt_mesh_proxy_msg_send()
191 net_buf_simple_pull(msg, mtu); in bt_mesh_proxy_msg_send()
/Zephyr-Core-3.4.0/tests/bluetooth/tester/src/
Dbtp_l2cap.c85 ev.mtu_remote = sys_cpu_to_le16(chan->le.tx.mtu); in connected_cb()
87 ev.mtu_local = sys_cpu_to_le16(chan->le.rx.mtu); in connected_cb()
144 ev.mtu_remote = sys_cpu_to_le16(chan->le.tx.mtu); in reconfigured_cb()
146 ev.mtu_local = sys_cpu_to_le16(chan->le.rx.mtu); in reconfigured_cb()
194 uint16_t mtu = sys_le16_to_cpu(cp->mtu); in connect() local
200 if (cp->num == 0 || cp->num > CHANNELS || mtu > DATA_MTU_INITIAL) { in connect()
215 chan->le.rx.mtu = mtu; in connect()
282 uint16_t mtu; in reconfigure() local
296 mtu = sys_le16_to_cpu(cp->mtu); in reconfigure()
297 if (mtu > DATA_MTU) { in reconfigure()
[all …]
/Zephyr-Core-3.4.0/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-3.4.0/include/zephyr/net/
Dvirtual.h61 int mtu; member
292 pm, data, config, prio, api, mtu) \ argument
295 NET_L2_GET_CTX_TYPE(VIRTUAL_L2), mtu)
320 config, prio, api, mtu) \ argument
323 api, mtu)
Dnet_if.h496 uint16_t mtu; member
978 return iface->if_dev->mtu; in net_if_get_mtu()
988 uint16_t mtu) in net_if_set_mtu() argument
996 iface->if_dev->mtu = mtu; in net_if_set_mtu()
2564 .mtu = _mtu, \
2580 .mtu = _mtu, \
2598 config, prio, api, l2, l2_ctx_type, mtu) \ argument
2604 NET_IF_INIT(dev_id, 0, l2, mtu, NET_IF_MAX_CONFIGS)
2626 api, l2, l2_ctx_type, mtu) \ argument
2628 data, config, prio, api, l2, l2_ctx_type, mtu)
[all …]
Dethernet.h849 config, prio, api, mtu) \ argument
855 NET_IF_INIT(dev_id, 0, ETHERNET_L2, mtu, NET_VLAN_MAX_COUNT)
860 config, prio, api, mtu) \ argument
863 NET_L2_GET_CTX_TYPE(ETHERNET_L2), mtu)
884 prio, api, mtu) \ argument
886 pm, data, config, prio, api, mtu)
905 prio, api, mtu) \ argument
908 data, config, prio, api, mtu)
Dvirtual_mgmt.h45 int mtu; member
/Zephyr-Core-3.4.0/tests/bluetooth/tester/src/btp/
Dbtp_l2cap.h27 uint16_t mtu; member
61 uint16_t mtu; member
74 uint16_t mtu; member
/Zephyr-Core-3.4.0/subsys/net/ip/
Dipv4_fragment.c512 uint16_t pkt_len, uint16_t mtu) in net_ipv4_send_fragmented_pkt() argument
544 fit_len = (mtu - net_pkt_ip_hdr_len(pkt)) / 8; in net_ipv4_send_fragmented_pkt()
547 LOG_ERR("No room for IPv4 payload MTU %d hdrs_len %d", mtu, in net_ipv4_send_fragmented_pkt()
592 uint16_t mtu = net_if_get_mtu(net_pkt_iface(pkt)); in net_ipv4_prepare_for_send() local
595 mtu = MAX(NET_IPV4_MTU, mtu); in net_ipv4_prepare_for_send()
597 if (pkt_len > mtu) { in net_ipv4_prepare_for_send()
598 ret = net_ipv4_send_fragmented_pkt(net_pkt_iface(pkt), pkt, pkt_len, mtu); in net_ipv4_prepare_for_send()
/Zephyr-Core-3.4.0/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.h47 uint32_t mtu; member
/Zephyr-Core-3.4.0/tests/bsim/bluetooth/host/l2cap/credits/src/
Dmain.c118 chan->tx.mtu, in l2cap_chan_connected_cb()
120 chan->rx.mtu, in l2cap_chan_connected_cb()
144 le_chan->rx.mtu = L2CAP_MTU; in server_accept_cb()
329 le_chan->rx.mtu = L2CAP_MTU; in connect_l2cap_channel()
346 le_chan->rx.mtu = L2CAP_MTU; in connect_l2cap_ecred_channel()
/Zephyr-Core-3.4.0/tests/bsim/bluetooth/host/l2cap/credits_seg_recv/src/
Dmain.c126 LOG_DBG("%x (tx mtu %d mps %d) (tx mtu %d mps %d)", l2cap_chan, chan->tx.mtu, chan->tx.mps, in l2cap_chan_connected_cb()
127 chan->rx.mtu, chan->rx.mps); in l2cap_chan_connected_cb()
154 le_chan->rx.mtu = L2CAP_MTU; in server_accept_cb()
348 .rx.mtu = L2CAP_MTU, in connect_l2cap_channel()
375 .rx.mtu = L2CAP_MTU, in connect_l2cap_ecred_channel()
/Zephyr-Core-3.4.0/tests/bsim/bluetooth/host/l2cap/split/dut/src/
Dmain.c72 chan->tx.mtu, in l2cap_chan_connected_cb()
74 chan->rx.mtu, in l2cap_chan_connected_cb()
98 le_chan->rx.mtu = L2CAP_MTU; in server_accept_cb()
/Zephyr-Core-3.4.0/subsys/bluetooth/services/ots/
Dots_l2cap.c56 len = MIN(l2cap_ctx->ot_chan.tx.mtu, CONFIG_BT_OTS_L2CAP_CHAN_TX_MTU); in ots_l2cap_send()
166 chan->rx.mtu = CONFIG_BT_OTS_L2CAP_CHAN_RX_MTU; in l2cap_chan_init()
169 LOG_DBG("RX MTU set to %u", chan->rx.mtu); in l2cap_chan_init()
/Zephyr-Core-3.4.0/samples/net/virtual/src/
Dmain.c277 params.mtu = NET_ETH_MTU - sizeof(struct net_ipv6_hdr); in setup_iface()
283 net_if_get_by_iface(iface), params.mtu, ret); in setup_iface()
337 params.mtu = NET_ETH_MTU - sizeof(struct net_ipv4_hdr); in setup_iface()
344 net_if_get_by_iface(iface), params.mtu, ret); in setup_iface()
/Zephyr-Core-3.4.0/subsys/bluetooth/shell/
Dl2cap.c172 .ch.rx.mtu = DATA_MTU,
282 uint16_t mtu; in cmd_ecred_reconfigure() local
295 mtu = shell_strtoul(argv[1], 10, &err); in cmd_ecred_reconfigure()
302 err = bt_l2cap_ecred_chan_reconfigure(l2cap_ecred_chans, mtu); in cmd_ecred_reconfigure()
430 len = MIN(l2ch_chan.ch.tx.mtu, len); in cmd_send()

123