Sergio R. Caprile
467fbf4bb4
Fix ignoring SEQ on FIN
2025-07-22 14:16:35 -03:00
Sergey Lyubka
24a330c750
Nits
2025-07-20 12:49:58 +01:00
Sergio R. Caprile
2c7f58aed2
test checksum primitives, enforce rx frag test
2025-07-08 13:57:03 -03:00
Sergio R. Caprile
b3ee71acbe
make TCP/IP C89-friendly
2025-07-08 11:15:32 -03:00
Sergio R. Caprile
0b5c0c9889
mg_send now honors UDP failures
2025-07-02 10:04:24 -03:00
Sergey Lyubka
074ef5197b
Introduce mg_calloc
2025-06-24 10:52:44 +01:00
Sergio R. Caprile
2fc56dd1d0
Allow KA from erroneous implementations
2025-06-17 15:14:30 -03:00
Sergio R. Caprile
acf217601b
Add Keep-Alive ACK
2025-06-11 14:25:05 -03:00
Sergio R. Caprile
98e744a9ad
fix error introduced in #3149
2025-06-03 15:29:28 -03:00
Sergio R. Caprile
b740c80855
set is_tls at mg_listen and mg_connect level
2025-05-26 09:42:48 -03:00
Sergio R. Caprile
1f48b1ca65
flush TLS buffer
2025-05-23 14:04:59 -03:00
Sergio R. Caprile
fadf28adb4
Make built-in TLS play fair to TCP
...
Handshake functions in Mongoose TLS assumed data was being fully sent
after calling mg_io_send(). This was in fact the case with the usual 1460-bytes MSS, but not with the default 536-bytes MSS.
This PR removes all those calls from individual handshake functions, actual send is done at the main handshake function, keeping track of the amount of data sent, and so handling small MTUs/MSSs and possible MG_IO_WAITs when running over a socket layer.
2025-05-22 14:45:46 -03:00
Sergio R. Caprile
8061a41b38
workaround
2025-05-19 09:22:59 -03:00
Sergio R. Caprile
54d4611eb6
call mg_tcpip_free from mg_mgr_free()
2025-05-15 17:37:40 -03:00
Sergio R. Caprile
f3fafb6759
make clang happy
2025-05-15 17:09:29 -03:00
Sergio R. Caprile
14be42c868
INFO -> VERBOSE
2025-05-15 15:50:36 -03:00
Sergey Lyubka
a3b63f3b0d
Merge pull request #3130 from cesanta/longpost
...
fix broken TCP closure
2025-05-13 22:26:15 +01:00
Sergio R. Caprile
1ef6c6aeb5
Handle TCP options
2025-05-13 16:27:50 -03:00
Sergio R. Caprile
ae8422e304
fix broken TCP closure
2025-05-08 13:40:02 -03:00
Sergey Lyubka
041ec6e1f8
Close if drained
2025-05-03 10:28:40 +01:00
Sergio R. Caprile
dceb4beb09
Refactor MIP strategy and first driver (CMSIS)
2025-04-22 12:55:21 -03:00
robert
6f697db49d
Added MDNS and driver support for multicast
2025-04-22 12:55:15 -03:00
Sergio R. Caprile
df07426e78
Fix handling of FIN segments carrying data
2025-04-14 11:11:48 -03:00
Sergio R. Caprile
6f2dcf92a7
no VLA
2025-04-09 10:55:54 -03:00
robert
e656b1c792
Removed alloca call for ARM-CGT compatibility
2025-04-07 09:08:22 -04:00
Sergey Lyubka
40a2a8822f
Squash warning
2025-03-29 18:59:01 +00:00
Sergey Lyubka
064fc6ff7b
Allow user to set custom DHCP name
2025-03-22 16:30:02 +00:00
Sergio R. Caprile
065027843e
Change driver API: up(ifp) -> poll(ifp, 1second)
...
Add misc extras required by Wi-Fi drivers (in progress)
2025-03-07 14:14:16 -03:00
Sergio R. Caprile
a0d9b6a7e0
fix UB and possible HF trigger
2025-01-28 10:24:59 -03:00
Sergio R. Caprile
8de9699390
fix TLS multiple-record-per-frame handling in bare metal
2025-01-24 12:05:17 -03:00
Sergio R. Caprile
091356ed59
give TLS a chance
2025-01-17 19:51:12 -03:00
Sergey Lyubka
fc0e1ee311
Close connection fast if both sides sent FIN
2025-01-17 15:15:24 -03:00
Sergio R. Caprile
f71b3b91c0
Rollback
2025-01-16 21:04:12 -03:00
Sergio R. Caprile
9e255bcbce
fix undefined behaviour
2025-01-16 20:42:43 -03:00
Sergio R. Caprile
7fc96a61ad
fix mg_tls_pending
2024-12-16 16:03:36 -03:00
Sergey Lyubka
b0e4069bb7
mgr::priv -> mgr::ifp, use explicit type
2024-12-16 14:22:13 +00:00
Sergey Lyubka
19cbb27b4c
Fix TLS handling in net_builtin
2024-12-15 13:32:19 +00:00
Sergey Lyubka
fb6dfbcd3c
PPP nitpicks
2024-11-28 08:31:43 +00:00
Sergey Lyubka
3dd4c7da2a
Add PPP driver
2024-11-27 22:00:30 +00:00
Sergey Lyubka
49469840ab
Fix IP csum calculation on 8-bit platforms
2024-11-26 20:23:12 +00:00
Sergio R. Caprile
504ef9422e
fix gw ARP on startup
2024-10-10 11:42:38 -03:00
Sergio R. Caprile
32d90c38db
tweaks
2024-10-09 11:33:14 -03:00
Sergey Lyubka
e1f7f3d7bb
Make ARP probe public. Add ARP event
2024-10-09 11:33:14 -03:00
Sergey Lyubka
93dd7a85f6
Fix IP fragmentation checks for big-endian CPUs
2024-10-04 16:18:33 +01:00
Sergio R. Caprile
5c8885ee5f
Fix ARP handling with UDP
2024-09-24 12:37:13 -03:00
Sergio R. Caprile
045b196eeb
fix ARP resolution when remote host is the gw
2024-08-12 11:55:57 -03:00
Sergey Lyubka
4b49c63344
Make net_builtin send client TLS HS
2024-07-23 18:47:48 +01:00
Sergio R. Caprile
be58d73a0a
DNS and SNTP via DHCP
2024-06-05 14:10:31 -03:00
Sergey Lyubka
e0e599ffa1
Fix #2612 - struct mg_str::ptr -> buf
2024-04-16 22:42:45 +01:00
Sergio R. Caprile
08cac802a4
poll TLS to process outstanding data in receive buffer
2024-04-15 12:13:31 -03:00