Commit Graph

51 Commits

Author SHA1 Message Date
cpq
abfac8aa40 Expose mip guts 2022-11-09 19:25:40 +00:00
cpq
2192914cbb Create MG_ARCH_FREERTOS, MG_ENABLE_LWIP, MG_ENABLE_FREERTOS_TCP. Remove MG_ARCH_FREERTOS_TCP, MG_ARCH_RTX_LWIP 2022-11-07 23:58:58 +00:00
cpq
efec738c89 ARP lookup hosts in the same net. Use up-to-date code in zephyr dash example 2022-11-03 08:06:17 +00:00
Sergio R. Caprile
e3d1a69223 CR incorrectly set in STM32 driver 2022-11-02 19:25:05 -03:00
cpq
9680b8ccb3 Fix overflow in rx_icmp 2022-09-29 16:53:11 +01:00
cpq
a88a11c243 Fix TX overflow in rx_icmp() 2022-09-29 11:13:40 +01:00
cpq
5574a2663a Close connection on 3 keep-alive misses 2022-09-25 17:35:14 +01:00
cpq
c409cca20e Optimize fuzzer 2022-09-25 10:19:17 +01:00
cpq
6a47ff6422 Activate asan for mip_test 2022-09-23 08:35:59 +01:00
cpq
1237185bb4 MIP: atomic -> volatile. Add lease time 2022-09-22 17:16:52 +01:00
cpq
cb5034548d Fix oob read in rx_dhcp() 2022-09-22 13:42:17 +01:00
cpq
a12bd2271e Fuzzing MIP 2022-09-21 20:29:49 +01:00
cpq
82b50fd3a5 Pass MDC clock divider explicitly rather than guess 2022-09-12 23:57:04 +01:00
cpq
274c11c3ec Update README 2022-09-11 13:42:59 +01:00
cpq
c718d7999f Add MAC addr filtering to stm32 driver. Record free space in q profiler 2022-09-10 16:38:03 +01:00
Sergio R. Caprile
995f90aa49 Add irq and drop counters to qprofiler 2022-09-09 14:47:46 -03:00
cpq
fd4e1975a3 Pass long *bytes_read to MG_EV_READ 2022-09-09 17:09:18 +01:00
cpq
124ac12150 Add mbedtls support to MIP 2022-09-09 15:53:42 +01:00
Sergey Lyubka
c33116166f
Merge pull request #1720 from cesanta/qprofile
Add rudimentary queue profiler
2022-09-08 10:37:01 +01:00
cpq
419126652e Merge branch 'master' of github.com:cesanta/mongoose 2022-09-08 08:50:51 +01:00
cpq
06ab83dca6 Implement keep-alive, 45 sec interval. Correct ACK piggyback 2022-09-08 08:50:42 +01:00
Sergio R. Caprile
313fddf722 Add rudimentary queue profiler
ETH IRQ and mip_poll() can both write to the queue, so if a memcpy() is interrupted we might see some weird records.
2022-09-07 17:14:03 -03:00
Sergey Lyubka
f4def36ccb
Merge pull request #1717 from cesanta/fixmipq
Fix MIP Q
2022-09-07 20:59:12 +01:00
cpq
881b282604 Implement ack timer 2022-09-07 20:48:23 +01:00
Sergio R. Caprile
9675bfe07d Fix MIP Q 2022-09-07 14:59:58 -03:00
Sergey Lyubka
70e2d8dd4e
Merge pull request #1716 from cesanta/pcap
Make mip-pcap work on Mac
2022-09-07 13:36:14 +01:00
cpq
b2624f6055 Make mip-pcap work on Mac 2022-09-07 13:36:00 +01:00
Sergio R. Caprile
419dd50255
Fix Ethernet buffer size
1500 bytes is payload size, which is OK for tx. On the rx side, a full 802.1Q-tagged frame size is 1522 bytes, without the 4-byte CRC = 1518 bytes (1514 for non-VLAN-tagged frames).
2022-09-06 16:53:26 -03:00
cpq
1c181e091e Add mip test 2022-09-05 15:56:03 +01:00
Sergio R. Caprile
32782bab0e
Merge pull request #1706 from cesanta/mg_timer_expired
Introduce mg_timer_expired(). Adopt DHCP and link status to use it
2022-09-05 11:45:53 -03:00
cpq
44b4944334 Use single-line comments 2022-09-03 09:49:41 +01:00
cpq
f9272d0959 Introduce mg_timer_expired(). Adopt DHCP and link status to use it 2022-09-03 09:45:19 +01:00
Sergio R. Caprile
a1992f5910 Re-enable sending ACKs until proper mechanism is in place 2022-09-02 20:48:30 -03:00
Sergio R. Caprile
4a1a26e8b7 Extend explanation for MDC clock 2022-09-02 15:03:46 -03:00
Sergio R. Caprile
7358ed25a5 Add CR setup, set MDC based on HCLK 2022-09-02 14:02:02 -03:00
cpq
567fccd7ee Refactor W5500 driver, add arduino w5500 example 2022-09-02 12:58:54 +01:00
cpq
f7f7319698 Refactor W5500 driver, add arduino w5500 example 2022-09-02 12:58:54 +01:00
cpq
823c0ef5fb Add enc28j60 driver skeleton 2022-08-31 08:54:33 +01:00
cpq
c131b8daf1 struct mip_ipcfg -> struct mip_cfg 2022-08-31 08:41:16 +01:00
cpq
8a61969c8f Add struct mip_spi for SPI drivers, and skeleton for enc28j60 driver 2022-08-31 08:35:06 +01:00
cpq
dcdeffff9a MIP refactor: use mg_hton*, move driver_data to ifp, parametrise f746 PLL setup 2022-08-27 16:45:31 +01:00
cpq
d565faa75d Make non-initialised MIP poll work 2022-08-21 23:35:24 +01:00
cpq
9c3c4a6f4b MIP client 2022-08-20 00:03:15 +01:00
cpq
8596e1bef7 Enable FPU 2022-08-16 16:45:05 +01:00
Sergey Lyubka
17e2fdd4cb Add align to struct mg_iobuf 2022-08-01 12:53:25 +01:00
Sergey Lyubka
c446fe0c6d Make stm32 eth declared as volatile 2022-06-21 12:11:59 +01:00
Sergey Lyubka
5a448ab4f5 Compile driver_stm32.c only for __arm__ 2022-06-13 01:04:09 +01:00
Sergey Lyubka
a71262437d Use mip for arm and riscv targets 2022-06-12 12:43:01 +01:00
Sergey Lyubka
d8a4b5aa34 Make mip MSVC friendly 2022-06-11 18:54:32 +01:00
Sergey Lyubka
fe0b2d0646 Fix typo 2022-06-11 17:40:48 +01:00