summaryrefslogtreecommitdiff
path: root/src/class/net
AgeCommit message (Collapse)Author
2026-07-05bound rndis data packet offset in handle_incoming_packetJavid Khan
Signed-off-by: Javid Khan <[email protected]>
2026-07-05Merge pull request #3741 from dxbjavid/ncm-ndp-length-boundZixun LI
bound ndp16 wLength against received ntb in recv_validate_datagram
2026-07-05fix sizeof(nth16_t) typoHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2026-07-02license: use SPDX identifiers for src/ headers (#3749)Ha Thach
* license: use SPDX identifiers for src/ headers Replace the full ~20-line MIT license boilerplate on every src/ file with a two-line SPDX tag (SPDX-FileCopyrightText + SPDX-License-Identifier), following the REUSE convention used by CircuitPython and the Linux kernel. Removes ~3500 lines of duplicated boilerplate.
2026-06-27bound ndp16 wLength against received ntb in recv_validate_datagramJavid Khan
2026-06-16ncm: add weak callback for initial link stateCedric Van den Bergh
netd_init resets link_is_up to a compile-time default, which is incorrect when the host reboots without power-cycling the device. Add tud_network_default_link_state_cb() so applications can return the actual physical link state. The weak default preserves existing CFG_TUD_NCM_DEFAULT_LINK_UP behaviour.
2026-05-08fixupHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2026-05-08Merge remote-tracking branch 'tinyusb/master' into ncm_packet_filterHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2026-05-04minor clean uphathach
2026-05-03Merge branch 'master' into copilot/upgrade-net-lwip-webserver-descriptorsZixun LI
2026-05-01Merge remote-tracking branch 'origin/master' into ncm_packet_filterHiFiPHile
2026-05-01ncm: implement GetNtbInputSize requestZixun LI
Signed-off-by: HiFiPHile <[email protected]>
2026-04-30ncm: Implement SetNtbInputSize requestElwin Huang
According to NCM standard 7.2.7, the device should tell the host its maximum size of NTB. Implement SetNtbInputSize according to it. Without this commit, some OS may failed to enumerate the NCM device (e.g., IOS 26). Signed-off-by: Elwin Huang <[email protected]>
2026-04-30add packet filter callbackZixun LI
Co-authored-by: Copilot <[email protected]> Signed-off-by: Zixun LI <[email protected]>
2026-04-27NCM caps enumnminaylov
2026-04-24NCM packet filter supportnminaylov
2026-04-20fix usbnet hardcode speed. disable hil test for nowhathach
2026-03-22net: save actual ep_size from descriptor in netd_open instead of hardcoding ↵copilot-swe-agent[bot]
64/512 Co-authored-by: HiFiPhile <[email protected]> Agent-Logs-Url: https://github.com/hathach/tinyusb/sessions/4c20b579-db28-4643-b062-81881adcf6c1
2026-03-22net: cache ep_size in local variable in ncm_device.c xmit_insert_required_zlpcopilot-swe-agent[bot]
Co-authored-by: HiFiPhile <[email protected]> Agent-Logs-Url: https://github.com/hathach/tinyusb/sessions/5d355974-2223-4071-8d14-b6d4ac1fd030
2026-03-22net: remove CFG_TUD_NET_ENDPOINT_SIZE, manage ZLP based on real speed in driverscopilot-swe-agent[bot]
Co-authored-by: HiFiPhile <[email protected]> Agent-Logs-Url: https://github.com/hathach/tinyusb/sessions/5d355974-2223-4071-8d14-b6d4ac1fd030
2026-03-12reset notification state to speed changeZixun LI
Signed-off-by: Zixun LI <[email protected]>
2025-12-28usbd/ncm: implement copy-free ntb managementHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-12-28usbd/ncm: reset notification state on link downHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-11-11Merge remote-tracking branch 'tinyusb/master' into ↵HiFiPhile
copilot/fix-dcd-edpt-xfer-issue Signed-off-by: HiFiPhile <[email protected]>
2025-11-03fix #2942, include stdio if CFG_TUSB_DEBUG > 0 and CFG_TUSB_DEBUG_PRINTF is ↵hathach
not defined
2025-10-31Merge remote-tracking branch 'tinyusb/master' into ↵HiFiPhile
copilot/fix-dcd-edpt-xfer-issue Signed-off-by: HiFiPhile <[email protected]>
2025-10-28fix Identifiers that start with '__' or '_[A-Z]' are reserved.hathach
fix compiling with nuc family
2025-10-22Fix copilot issuesMengsk
Signed-off-by: Mengsk <[email protected]>
2025-10-22Add is_isr parameter to usbd_edpt_xfer and usbd_edpt_xfer_fifocopilot-swe-agent[bot]
- Added bool is_isr parameter to usbd_edpt_xfer() and usbd_edpt_xfer_fifo() wrapper functions - These are called by class drivers to queue USB transfers - Updated all callers to pass false by default (non-ISR context) - Updated audiod_rx_xfer_isr() and audiod_tx_xfer_isr() to pass true (ISR context) - All 21 unit tests pass Co-authored-by: HiFiPhile <[email protected]>
2025-10-14improve cmake warning flags, fix various warnings in exampleshathach
2025-06-08Fix ECM compileHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-05-29Add link state control support for ECM modeAndrew Leech
Extends the link state control feature to CDC-ECM mode. RNDIS mode prints state changes but doesn't send notifications to the host yet (would require RNDIS_INDICATE_STATUS_MSG). For ECM: - Tracks link state and sends proper CDC notifications - Handles notification endpoint busy conditions - Only sends connection notification when link is actually up 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
2025-05-29Add USB NCM link state control supportAndrew Leech
This adds the ability to dynamically control the network link state for NCM devices. The host OS will see the network interface as connected/disconnected based on the link state. New API: - tud_network_link_state(rhport, is_up): Set link up/down state Example updates: - Added button control to toggle link state - Fixed LWIP integration to properly handle link state changes - Added printf to show correct protocol (NCM vs RNDIS/ECM) 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
2025-01-15fix(ncm): Return invalid NTBs to free listTomas Rezucha
In case we received invalid datagram, we silently fail a the buffer was not returned to empty list -> it was lost. If this happened more than CFG_TUD_NCM_OUT_NTB_N times, we run out of NTBs and all OUT transfers are NACKed. Closes https://github.com/espressif/esp-usb/issues/107
2025-01-14fix(ncm): Use IN buffer for transmit checksTomas Rezucha
2024-11-27Fix missing protoype warning, change TUD_EPBUF_TYPE_DEF order (#2889)Ha Thach
* change TUD_EPBUF_TYPE_DEF order * add and fix -Wmissing-prototypes warnings for cmake (skip make)
2024-11-22fix ncm incorrect length for notify connectionhathach
2024-11-22add TUD_EPBUF_DEF for ecm rndis, also separate notify and control buffer, ↵hathach
use edpt_claim() to prevent race condition
2024-11-22update epnotif endpoint for ncm_device.chathach
2024-11-22TUD_EPBUF_TYPE_DEF ncm_devicehathach
2024-07-15avoid recursions in tud_network_recv_renew()Hardy Griech
2024-06-14minor updatehathach
2024-06-14minor updatehathach
2024-05-10More ci tweak (#2636)Ha Thach
* change concurrency group to ${{ github.workflow }}-${{ github.ref }} * use argparse for build.py hil_test.py, remove the need to install click * move ci win/mac to build_cmake.yml * rename build_family.yml to build_util.yml * build_util.yml support esp32 * integrate build-espressif into build.yml * build.py support make with --board option * add get_deps action * update hil test to reuse action
2024-05-07Merge branch 'master' into remove-tud_network_link_state_cbHiFiPhile
2024-05-07Reformat NCM class.HiFiPhile
2024-05-05mostly commentsHardy Griech
2024-05-05minor changes due to CR with HiFiPhileHardy Griech
2024-04-28Stall unsupported class request.HiFiPhile
2024-04-28Merge remote-tracking branch 'upstream/master' into pr/2227HiFiPhile