90 Commits

Author SHA1 Message Date
igor.udot
daf2d31008 test: format all test scripts 2025-03-05 12:08:48 +08:00
gaoxu
5ef4f20778 feat(esp32h21): disable unsupported build test 2025-02-06 15:47:51 +08:00
David Cermak
9aad15daaa fix(network/examples): Fix bridge example eth-wifi config 2025-01-24 16:31:12 +01:00
David Cermak
b708c0195a fix(network/examples): Fix build rules to test builds on for all targets
Uses wifi defines only if wifi is enabled for this target
2025-01-24 10:45:24 +01:00
Chen Yudong
28054277c7 ci: fix network examples build test rules 2025-01-07 11:13:04 +08:00
zhangyanjiao
c2c0742844 fix(ci): Enlarge the pcap memory size in sniffer example 2024-12-04 16:24:08 +08:00
Frantisek Hrbata
1c92945f59 change(examples): switch examples to use a minimal build
Currently, several example dependencies rely on the fact that all
registered components are added to the build, along with components
specified in common requirements. This results in longer build times
because even unused components must be built. Switch all examples to use
idf_minimal_build to compile only the components actually required by
the example.

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2024-11-20 20:14:40 +01:00
Frantisek Hrbata
ad15109daa change(examples): explicitly specify component dependencies for examples
Currently, several examples do not explicitly state their component
dependencies, relying instead on the default behavior that includes all
registered components and commonly required ones in the build.
Explicitly adding component dependencies can reduce build time when
set(COMPONENTS main) is used.

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2024-11-20 14:11:24 +01:00
David Cermak
cce9a80aee fix(sta2eth): Check for null netif before starting/stopping DHCP server
Fixes a potential null pointer dereference in `esp_netif` when PPP mode is enabled.
In the Ethernet event handler, `esp_netif_dhcps_start()` and `esp_netif_dhcps_stop()`
are now only called if `netif` is non-null (in provisioning mode when
the actual TCP/IP stack from IDF is used, in work mode the `netif` is
null, since the trafic is simply forwarded between wireless and wired
networks without TCP/IP stack involved)

Closes https://github.com/espressif/esp-idf/issues/14816
2024-11-07 17:48:59 +01:00
David Cermak
94536cb512 fix(sta2eth): Make some Ethernet options configurable 2024-11-07 17:48:53 +01:00
David Cermak
ac630e4417 fix(sta2eth): Document security considerations in sta2eth example 2024-11-07 10:24:54 +01:00
xuxiao
8780375859 feat(wifi): add wifi support for esp32c61 2024-08-30 20:43:06 +08:00
xuxiao
c6104388aa feat(wifi): add wifi support for esp32c5 mp 2024-07-24 18:03:40 +08:00
wanlei
3cf069c7d8 feat(esp32c61): disable unsupported build test 2024-07-16 16:06:19 +08:00
Fu Hanxi
59bd0b3166 ci: update .build-test-rules.yml based on latest detected components 2024-05-22 20:52:32 +08:00
Ondrej Kosta
ed8063ed9e ci(examples): added depends_components for Network examples 2024-05-07 10:24:20 +02:00
Jiang Jiang Jian
ff07cae675 Merge branch 'fix/examples_sta2eth_udpcheck' into 'master'
fix(examples): STA-ETH add the padding if the packet length is odd while updating udp checksum

Closes IDFGH-12490

See merge request espressif/esp-idf!30266
2024-04-17 10:35:58 +08:00
David Čermák
952bdbde06 Merge branch 'fix/examples_sta2eth_hostname_clarify' into 'master'
fix(examples): Fix sta-2-eth README to clarify wifi.settings is hostname

See merge request espressif/esp-idf!29625
2024-04-11 19:58:33 +08:00
laokaiyao
65b1fd33d3 ci(esp32c5mp): disable the unsupported tests 2024-04-07 12:13:29 +08:00
Yash Katkar
f73194fbbb feat: add the padding if the packet length is odd while updating udp checksum 2024-03-29 21:05:16 +00:00
David Cermak
b8903e7470 fix(examples): Fix sta-2-eth README to clarify wifi.settings is hostname 2024-03-13 17:54:08 +01:00
Ondrej Kosta
bd21297c48 ci(esp_eth): run iperf over longer period for SPI ETH bridge 2024-02-01 15:39:57 +01:00
Ondrej Kosta
f732c3b7fd ci(esp_eth): enable Ethernet tests 2024-01-22 09:30:24 +01:00
Fu Hanxi
114af706bb
ci(wifi): migrate from .gitlab/ci/rules.yml to .build-test-rules.yml 2024-01-10 15:31:21 +01:00
Fu Hanxi
bb375ee79a
ci(ethernet): migrate from .gitlab/ci/rules.yml to .build-test-rules.yml 2024-01-10 15:31:11 +01:00
Armando
fca46eac52 refactor(spi): make spi driver as component 2023-11-09 14:50:05 +08:00
Fu Hanxi
ca63d0f943
test: move network_tests from examples/ to tools/test_apps 2023-10-16 10:18:03 +02:00
Ivan Grokhotkov
6d87100a70
feat(examples): add local components via idf_component.yml
Specifying all the dependencies (managed and local) in the manifest
makes it easier for users to see every component the example
depends on.
2023-09-19 10:38:24 +02:00
wanlei
f7068bd937 fix(spi_master): fixed polling_start break common resouce when error 2023-08-28 18:18:38 +08:00
Armando
7dbd3f6909 feat(ci): Enable p4 example, test_apps and unit tests CI build 2023-08-24 12:51:19 +08:00
Abhik Roy
ef50beb4d0 ci: Added napt pytest with vlan example
CI: add vlan example to ethernet patterns
Included a Pytest for the vlan_support example, which focuses on testing
the NAPT module in lwip by forwarding packets between different VLAN interfaces.
2023-07-31 13:42:26 +00:00
Ondrej Kosta
c7d56d213c ci(examples/bridge): Fixed issue when broadcast message was not recevived time to time 2023-07-12 12:30:23 +02:00
Ondrej Kosta
3288f83401 feat(network/examples): extended LwIP bridge example
Extended LwIP bridge example to support WiFi AP interface and DHCP Server

https://github.com/espressif/esp-idf/issues/5697
2023-06-30 14:38:24 +02:00
Ondrej Kosta
b7ba0c610c renamed 'sta_to_eth' example to 'sta2eth' 2023-06-20 08:55:51 +02:00
Ondrej Kosta
4e10048400 Moved 'eth2ap' example to /examples/network folder
Ethernet related .build-test-rules.yml cleanup
2023-06-19 16:09:28 +02:00
David Čermák
28c643a56d Merge branch 'feature/example_network_wifi_bridge_provisioning' into 'master'
Examples/Network: Add WiFi to Eth/USB bridge example

See merge request espressif/esp-idf!23978
2023-06-16 01:04:32 +08:00
David Cermak
7302801bda Examples/network: sta-2-wired to support HW address update in DHCP
* Add support for runtime update of DHCP packets that contain HW
addresses (some routers wouldn't assing IP if the MAC was spoofed
only in Ethernet and ARP frames)
* Simplify Ethernet initialization using default eth-netif glue
2023-06-15 09:41:04 +02:00
KonstantinKondrashov
e72061695e all: Removes unnecessary newline character in logs
Closes https://github.com/espressif/esp-idf/issues/11465
2023-06-09 03:31:21 +08:00
David Cermak
022ddb1106 Examples/network: Add security options to provision sta-wired example 2023-06-08 07:38:04 +02:00
David Cermak
6ac17b5020 Examples/network: Add Ethernet iface to sta-2-wired bridge
* adds description about that it's not a bridge, but more like an 1:1
forwarder on L2
* add and describe mac spoofing for Ethernet interface
* describe virtual networking for USB-NCM interface
2023-06-08 07:33:52 +02:00
David Cermak
c603e2d956 Examples/network: Add wifi station to usb 1:1 forwarder (L2) 2023-06-08 07:33:48 +02:00
Ondrej Kosta
e82dce7917 Merge branch 'bugfix/bridge_spi_emac_readme' into 'master'
Updated Ethernet README Common Troubleshooting

See merge request espressif/esp-idf!23784
2023-05-22 22:32:37 +08:00
Ondrej Kosta
a2d669c008 Updated Ethernet README Common Troubleshooting to describe workaround when SPI issues are observed with internal EMAC connected 2023-05-19 15:17:07 +02:00
AndriiFilippov
8694a1ea0c update default pins for Ethernet basic and enc28j60 examples
update .yml files
2023-05-18 17:51:44 +02:00
Ondrej Kosta
eb17a9d6e0 network_examples: added LwIP bridge test 2023-04-12 09:14:12 +02:00
Bogdan Kolendovskyy
d7b8b36082 examples: fix format errors, remove -Wno-format
Logging in series of examples has misuse of "%d" instead of type-appropriate format specifiers.
Fix by changing "%d" to PRIxx macros corresponding to type.
Remove -Wno-format compile flag in those examples that are affected.
2023-02-14 15:46:54 +01:00
Cao Sen Miao
94120b82c2 esp32h2: add build test 2023-01-17 10:29:04 +08:00
Chen Yudong
c07d237ffe examples: enable build esp32c6 for wifi and network examples 2023-01-12 14:50:06 +08:00
Chen Yudong
8aca3932b0 CI: enable more wifi cases 2023-01-06 06:03:52 +00:00
Ondrej Kosta
4ded1ea4cf Merge branch 'feature/eth_bridge_test' into 'master'
lwIP bridge FDB add entry fix and bridge test

Closes IDF-5394

See merge request espressif/esp-idf!20464
2022-12-01 17:51:11 +08:00