Jean-Francois Simon
6ae9188af4
Implemented MIP stack http_fetch()
...
This approach used tuntap driver for Linux/Unices
2022-11-16 18:26:49 +01:00
jfsimon1981
d958ec2ac8
Revert "mip_test.c http fetch ( #1851 )" ( #1864 )
...
This reverts commit 07aac8e6e948c92d5eec6384daa54216eced92a0.
2022-11-16 18:02:23 +01:00
jfsimon1981
07aac8e6e9
mip_test.c http fetch ( #1851 )
...
* Update mip_test.c
* Adding mip_free() function.
* Adding mip_free() function.
* Added MIP free.
* Fixed C++ builds.
* Proper C/C++ struct initialization.
* Squashed commit of the following:
commit 7ba68dd20dc34147cd545479edde909c6c4f8832
Author: Jean-Francois Simon <jfsimon@startmail.com>
Date: Wed Nov 16 16:19:50 2022 +0100
Proper C/C++ struct initialization.
commit aeab3ef7acb3315c7f356f6a2dc21f80e9341161
Author: Jean-Francois Simon <jfsimon@startmail.com>
Date: Tue Nov 15 17:09:29 2022 +0100
Fixed C++ builds.
commit 2afd52910724a6bdb75d0aba551fb0eac0c3eebb
Merge: 14710b81 f8445a4c
Author: jfsimon1981 <jfsimon1981@gmail.com>
Date: Tue Nov 15 11:33:56 2022 +0100
Merge branch 'cesanta:master' into master
commit 14710b81e43640688a1d5603d6ea3b2d72850947
Author: Jean-Francois Simon <jfsimon@startmail.com>
Date: Tue Nov 15 11:07:15 2022 +0100
Added MIP free.
commit 6393cd149dc77f8f14f816b3607b0bb25031fceb
Author: Jean-Francois Simon <jfsimon@startmail.com>
Date: Tue Nov 15 11:06:44 2022 +0100
Adding mip_free() function.
commit feee81b7339b660dc130e45468ad87daf559659e
Author: Jean-Francois Simon <jfsimon@startmail.com>
Date: Tue Nov 15 11:05:55 2022 +0100
Adding mip_free() function.
commit f8445a4c8589a08b5afd9c08829fc0138a322ab5
Merge: a39b7ddb 71f5be01
Author: Sergio R. Caprile <scaprile@users.noreply.github.com>
Date: Fri Nov 11 20:42:38 2022 -0300
Merge pull request #1853 from cesanta/tibaremetaltest
Update test.yml
commit 71f5be011bebdd472890f036fa1fbaa2c6b69af7
Author: Sergio R. Caprile <scaprile@users.noreply.github.com>
Date: Fri Nov 11 20:15:01 2022 -0300
Update test.yml
commit b53d3cf0329611e3cd17f977050fda702c244fa0
Merge: 7a71038a a39b7ddb
Author: jfsimon1981 <jfsimon1981@gmail.com>
Date: Fri Nov 11 16:10:53 2022 +0100
Merge branch 'cesanta:master' into master
commit 7a71038a2755727763895c20b9bba1ad5dd08862
Author: jfsimon1981 <jfsimon1981@gmail.com>
Date: Fri Nov 11 16:09:22 2022 +0100
Update mip_test.c
commit a39b7ddbac3f3ce94ee289cace8a7bda609a2c9f
Author: cpq <valenok@gmail.com>
Date: Fri Nov 11 15:03:48 2022 +0000
Fix fuzzer use-after-poison READ 1
* Squashed commit of the following:
commit 192ae56ece70384b4504928e93f732ce45bfea2e
Merge: 7b0509c8 7ba68dd2
Author: Jean-Francois Simon <jfsimon@startmail.com>
Date: Wed Nov 16 17:44:03 2022 +0100
Merge branch 'master' of https://github.com/jfsimon1981/mongoose
commit 7b0509c878d758e7148da1665f9b92adee025d7e
Author: Jean-Francois Simon <jfsimon@startmail.com>
Date: Wed Nov 16 17:43:33 2022 +0100
Squashed commit of the following:
commit 7ba68dd20dc34147cd545479edde909c6c4f8832
Author: Jean-Francois Simon <jfsimon@startmail.com>
Date: Wed Nov 16 16:19:50 2022 +0100
Proper C/C++ struct initialization.
commit aeab3ef7acb3315c7f356f6a2dc21f80e9341161
Author: Jean-Francois Simon <jfsimon@startmail.com>
Date: Tue Nov 15 17:09:29 2022 +0100
Fixed C++ builds.
commit 2afd52910724a6bdb75d0aba551fb0eac0c3eebb
Merge: 14710b81 f8445a4c
Author: jfsimon1981 <jfsimon1981@gmail.com>
Date: Tue Nov 15 11:33:56 2022 +0100
Merge branch 'cesanta:master' into master
commit 14710b81e43640688a1d5603d6ea3b2d72850947
Author: Jean-Francois Simon <jfsimon@startmail.com>
Date: Tue Nov 15 11:07:15 2022 +0100
Added MIP free.
commit 6393cd149dc77f8f14f816b3607b0bb25031fceb
Author: Jean-Francois Simon <jfsimon@startmail.com>
Date: Tue Nov 15 11:06:44 2022 +0100
Adding mip_free() function.
commit feee81b7339b660dc130e45468ad87daf559659e
Author: Jean-Francois Simon <jfsimon@startmail.com>
Date: Tue Nov 15 11:05:55 2022 +0100
Adding mip_free() function.
commit f8445a4c8589a08b5afd9c08829fc0138a322ab5
Merge: a39b7ddb 71f5be01
Author: Sergio R. Caprile <scaprile@users.noreply.github.com>
Date: Fri Nov 11 20:42:38 2022 -0300
Merge pull request #1853 from cesanta/tibaremetaltest
Update test.yml
commit 71f5be011bebdd472890f036fa1fbaa2c6b69af7
Author: Sergio R. Caprile <scaprile@users.noreply.github.com>
Date: Fri Nov 11 20:15:01 2022 -0300
Update test.yml
commit b53d3cf0329611e3cd17f977050fda702c244fa0
Merge: 7a71038a a39b7ddb
Author: jfsimon1981 <jfsimon1981@gmail.com>
Date: Fri Nov 11 16:10:53 2022 +0100
Merge branch 'cesanta:master' into master
commit 7a71038a2755727763895c20b9bba1ad5dd08862
Author: jfsimon1981 <jfsimon1981@gmail.com>
Date: Fri Nov 11 16:09:22 2022 +0100
Update mip_test.c
commit a39b7ddbac3f3ce94ee289cace8a7bda609a2c9f
Author: cpq <valenok@gmail.com>
Date: Fri Nov 11 15:03:48 2022 +0000
Fix fuzzer use-after-poison READ 1
commit 7ba68dd20dc34147cd545479edde909c6c4f8832
Author: Jean-Francois Simon <jfsimon@startmail.com>
Date: Wed Nov 16 16:19:50 2022 +0100
Proper C/C++ struct initialization.
commit aeab3ef7acb3315c7f356f6a2dc21f80e9341161
Author: Jean-Francois Simon <jfsimon@startmail.com>
Date: Tue Nov 15 17:09:29 2022 +0100
Fixed C++ builds.
commit 2afd52910724a6bdb75d0aba551fb0eac0c3eebb
Merge: 14710b81 f8445a4c
Author: jfsimon1981 <jfsimon1981@gmail.com>
Date: Tue Nov 15 11:33:56 2022 +0100
Merge branch 'cesanta:master' into master
commit 14710b81e43640688a1d5603d6ea3b2d72850947
Author: Jean-Francois Simon <jfsimon@startmail.com>
Date: Tue Nov 15 11:07:15 2022 +0100
Added MIP free.
commit 6393cd149dc77f8f14f816b3607b0bb25031fceb
Author: Jean-Francois Simon <jfsimon@startmail.com>
Date: Tue Nov 15 11:06:44 2022 +0100
Adding mip_free() function.
commit feee81b7339b660dc130e45468ad87daf559659e
Author: Jean-Francois Simon <jfsimon@startmail.com>
Date: Tue Nov 15 11:05:55 2022 +0100
Adding mip_free() function.
commit f8445a4c8589a08b5afd9c08829fc0138a322ab5
Merge: a39b7ddb 71f5be01
Author: Sergio R. Caprile <scaprile@users.noreply.github.com>
Date: Fri Nov 11 20:42:38 2022 -0300
Merge pull request #1853 from cesanta/tibaremetaltest
Update test.yml
commit 71f5be011bebdd472890f036fa1fbaa2c6b69af7
Author: Sergio R. Caprile <scaprile@users.noreply.github.com>
Date: Fri Nov 11 20:15:01 2022 -0300
Update test.yml
commit b53d3cf0329611e3cd17f977050fda702c244fa0
Merge: 7a71038a a39b7ddb
Author: jfsimon1981 <jfsimon1981@gmail.com>
Date: Fri Nov 11 16:10:53 2022 +0100
Merge branch 'cesanta:master' into master
commit a39b7ddbac3f3ce94ee289cace8a7bda609a2c9f
Author: cpq <valenok@gmail.com>
Date: Fri Nov 11 15:03:48 2022 +0000
Fix fuzzer use-after-poison READ 1
Co-authored-by: Jean-Francois Simon <jfsimon@startmail.com>
2022-11-16 17:55:27 +01:00
Sergio R. Caprile
9a341c9032
change MIP MAC to LAA
2022-11-15 14:56:51 -03:00
Sergio R. Caprile
21e8b08ed9
Reduce Zephyr test time
2022-11-14 18:06:00 -03:00
Sergio R. Caprile
c41d477adc
Update issue_template.md
2022-11-14 14:58:36 -03:00
Sergio R. Caprile
f8445a4c85
Merge pull request #1853 from cesanta/tibaremetaltest
...
Update test.yml
2022-11-11 20:42:38 -03:00
Sergio R. Caprile
71f5be011b
Update test.yml
2022-11-11 20:15:01 -03:00
cpq
a39b7ddbac
Fix fuzzer use-after-poison READ 1
2022-11-11 15:03:48 +00:00
Sergio R. Caprile
cab5c822c5
Merge pull request #1850 from cesanta/miplocal
...
Fix incorrect local network address detection
2022-11-11 11:58:29 -03:00
Sergey Lyubka
4056bd3c2d
Merge pull request #1847 from cesanta/xiao
...
Fix arduino-xiao build and add GA test
2022-11-11 14:53:40 +00:00
Sergio R. Caprile
a985ae9c0a
Fix incorrect local network address detection
2022-11-11 11:18:47 -03:00
cpq
804a3bf380
Fix #1801 - report ipv4 accepted address for ipv4 listeners
2022-11-11 14:01:17 +00:00
Sergey Lyubka
a8bef96463
Merge pull request #1844 from cesanta/tm4c129x
...
Add TM4C129x driver
2022-11-11 13:15:35 +00:00
Sergey Lyubka
5e43a3f695
Merge pull request #1846 from cesanta/ektm4c129x
...
Add EK-TM4C1294XL example
2022-11-11 13:15:20 +00:00
cpq
8e46e05e1b
Fix arduino-xiao build and add GA test
2022-11-11 10:04:47 +00:00
Sergio R. Caprile
ec0e27dbb4
Add EK-TM4C1294XL example
2022-11-10 21:14:30 -03:00
Sergio R. Caprile
3f55d93b41
Merge pull request #1845 from cesanta/mip-tap
...
Unbreak
2022-11-10 15:01:10 -03:00
Sergio R. Caprile
5418a8c28a
Unbreak
...
userdata was changed to a pointer to a socket, but tx() was not updated
My Linux system does not like mongoose.h at the end...
2022-11-10 15:00:43 -03:00
Sergio R. Caprile
e180192379
Add TM4C129x driver
2022-11-10 14:41:41 -03:00
cpq
f498d69b7d
Fix examples/stm32/nucleo-f429zi-freertos-mip
2022-11-10 03:01:10 +00:00
Sergio R. Caprile
dfae1b3f70
Merge pull request #1843 from cesanta/mip
...
Expose mip guts
2022-11-09 17:40:46 -03:00
Sergio R. Caprile
a9ebb55f95
Merge pull request #1842 from cesanta/ft
...
Add nucleo-f429zi-freertos-mip example
2022-11-09 16:28:33 -03:00
cpq
abfac8aa40
Expose mip guts
2022-11-09 19:25:40 +00:00
cpq
78956ccf83
Add nucleo-f429zi-freertos-mip example
2022-11-09 18:25:11 +00:00
Sergey Lyubka
eed25f23f6
Merge pull request #1839 from cesanta/stm32uart
...
Fix wrong reference to prescaler
2022-11-09 09:24:24 +00:00
Sergey Lyubka
134ce56f80
Merge pull request #1841 from cesanta/small
...
Endianness test
2022-11-09 09:23:04 +00:00
cpq
28a4778187
Endianness test
2022-11-09 09:20:15 +00:00
Sergio R. Caprile
c654c2e5e8
Fix wrong reference to prescaler
2022-11-08 11:23:10 -03:00
Sergey Lyubka
e580d4e637
Merge pull request #1837 from cesanta/arch
...
Create MG_ARCH_FREERTOS, MG_ENABLE_LWIP, MG_ENABLE_FREERTOS_TCP. Remo…
2022-11-08 00:13:28 +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
Sergio R. Caprile
ca6dee1777
Merge pull request #1836 from cesanta/dewarning
...
Remove some warnings
2022-11-07 15:29:33 -03:00
Sergio R. Caprile
6f3bdc5dca
Remove some warnings
2022-11-07 15:23:47 -03:00
Sergey Lyubka
095cdcd69e
Merge pull request #1834 from cesanta/sock
...
Generalize socket constants
2022-11-05 13:11:57 +00:00
cpq
f022633f29
Generalize socket constants
2022-11-05 12:33:49 +00:00
Sergey Lyubka
1f85fcc9b0
Merge pull request #1831 from cesanta/mqtt
...
Accept zero-length payload messages
2022-11-03 16:46:56 +00:00
Sergio R. Caprile
a3ede75842
Accept zero-length payload messages
2022-11-03 11:26:08 -03:00
cpq
0defce37f0
Pull mongoose_custom.h
2022-11-03 12:59:55 +00:00
Sergey Lyubka
4355b39b1e
Merge pull request #1830 from cesanta/mip
...
ARP lookup hosts in the same net. Use up-to-date code in zephyr dash …
2022-11-03 12:35:17 +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
Sergey Lyubka
10c09a361b
Merge pull request #1829 from cesanta/cr
...
CR incorrectly set in STM32 driver
2022-11-02 23:18:20 +00:00
Sergio R. Caprile
e3d1a69223
CR incorrectly set in STM32 driver
2022-11-02 19:25:05 -03:00
Sergey Lyubka
4b82253ae9
Merge pull request #1826 from cesanta/custom
...
mongoose_custom.h not pulled in when MG_ARCH=MG_ARCH_CUSTOM
2022-11-02 12:05:59 +00:00
Sergio R. Caprile
47a12c30ca
mongoose_custom.h not pulled in when MG_ARCH=MG_ARCH_CUSTOM
2022-11-01 21:01:33 -03:00
cpq
613655767b
Housekeeping at the end of c->label
2022-11-01 21:01:03 +00:00
Sergey Lyubka
1182027f1c
Merge pull request #1823 from cesanta/ti-rtos
...
Fix TI-RTOS port
2022-10-30 09:41:48 +00:00
Sergio R. Caprile
e9421d557a
Fix TI-RTOS port
...
Sockets were not being put in non-blocking mode as the setsockopt() call wasn't using SOL_SOCKET
Do not include errno.h but serrno.h, otherwise error codes are mangled... NDK functions use serrno, errno belongs to the compiler
UDP sockets require binding to receive responses
select() does not return write-ready on connect if the amount of bytes to write is below the "low-water mark". This parameter defaults to 2048, there was some code apparently setting this otherwise, with no success. Reworked the code to set this water mark at half the buffer size by just using plain getsockopt/setsockopt calls.
For the record:
TI typedef's void * SOCKET for internal use, INVALID_SOCKET is cast to (void *). Their BSD compatible socket interface expects and returns int; while Mongoose uses SOCKET... this generates lots of warnings 169 and 515, disabled in the examples
2022-10-28 18:55:10 -03:00
cpq
bbc0c0df94
Unbreak test
2022-10-28 15:35:40 +01:00
Sergio R. Caprile
610e32714c
Merge pull request #1822 from cesanta/hello
...
Add mg_hello()
2022-10-28 09:48:43 -03:00
cpq
7ab81d3805
Add mg_hello()
2022-10-28 10:57:06 +01:00
Sergey Lyubka
9a1e41e1fa
Merge pull request #1821 from cesanta/docs
...
Augment WS documentation
2022-10-27 23:09:47 +01:00
Sergio R. Caprile
ae71d12f06
Augment WS documentation
2022-10-27 12:03:16 -03:00
cpq
c25234df83
Better MIP description
2022-10-27 08:12:22 +01:00
Sergey Lyubka
03284ba046
Merge pull request #1810 from cesanta/zephyresp
...
Support Zephyr on ESP32
2022-10-25 17:22:47 +01:00
Sergey Lyubka
5fa433ecca
Merge pull request #1814 from cesanta/ti-rtos
...
Improve TI-RTOS timing support
2022-10-25 17:07:33 +01:00
Sergio R. Caprile
ac2a4c700a
Merge pull request #1818 from cesanta/ti
...
Allow flash and cloning without build
2022-10-25 10:55:46 -03:00
Sergio R. Caprile
eeb7b00f60
Allow flash and cloning without build
2022-10-25 10:41:53 -03:00
Sergio R. Caprile
c8c540b453
Improve TI-RTOS timing support
2022-10-24 11:48:54 -03:00
Sergio R. Caprile
a0585f75f7
Support Zephyr on ESP32
2022-10-21 11:44:09 -03:00
Sergey Lyubka
637af1d392
Merge pull request #1809 from cesanta/picow
...
Make pico-w device-dashboard example fully functional
2022-10-20 18:24:38 +01:00
Sergio R. Caprile
fe6c31acc1
Make pico-w device-dashboard example fully functional
2022-10-20 11:57:00 -03:00
Sergio R. Caprile
04cfcf751e
Merge pull request #1805 from cesanta/invsock
...
Fix unintended socket close on systems with valid fd=0 descriptor numbering
2022-10-20 11:04:03 -03:00
Sergio R. Caprile
51c51d49ad
Fix unintended socket close on systems with valid fd=0 descriptor numbering
2022-10-20 10:34:26 -03:00
cpq
4271aa5b1f
Update matrix example name
2022-10-19 09:24:19 +01:00
cpq
17ada1c894
Fix #1803 - conditional for SSL_set1_host(). In unit test, disable time.windows.com, use google and apple SNTP servers
2022-10-19 09:06:47 +01:00
cpq
2e14d125ba
Fuzzer nits
2022-10-18 15:21:59 +01:00
cpq
ce8fa4c24b
Echo WS CLOSE payload back
2022-10-18 14:31:47 +01:00
Sergey Lyubka
cfe2e83e6b
Merge pull request #1798 from Yeicor/patch-1
...
Remove mg_hexdump from deliver_chunked_chunks
2022-10-17 07:14:24 +01:00
Yeicor
b17c62618d
Remove mg_hexdump from deliver_chunked_chunks
2022-10-16 21:11:00 +02:00
Sergey Lyubka
6b162a1193
Merge pull request #1796 from cesanta/rpicow
...
Dettach git clone and fix clean
2022-10-16 16:59:19 +01:00
Sergey Lyubka
6653530b63
Merge pull request #1797 from strager/fix-typo
...
Fix typo in documentation
2022-10-16 16:58:20 +01:00
cpq
aacae6444e
Fix stack overflow in fuzzer - too big on-stack array
2022-10-15 17:18:31 +01:00
Matthew "strager" Glazar
b91fe12258
Fix typo in documentation
2022-10-14 18:27:06 -07:00
Sergio R. Caprile
ae7ca00e69
Dettach git clone and fix clean
...
The user has to clone the repo, then edit the Makefile to change WiFi credentials. Running make build does both and the tests go flawlessly
The user can run make to clone the repo, then change credentials and run make build, it will skip cloning if the repo is already there
In some systems the compiled files are not owned by the user as Docker runs as root, so we first invoke clean in the cloned repo (which erases the compiled files), and then remove the cloned repo that the user owns and can rm.
2022-10-14 12:09:39 -03:00
Sergio R. Caprile
0103f1f080
Merge pull request #1795 from cesanta/z
...
Use board nucleo_f429zi
2022-10-14 08:54:20 -03:00
cpq
e8d29d54d6
Use board nucleo_f429zi
2022-10-14 11:39:00 +01:00
Sergey Lyubka
092f2ce0b3
Merge pull request #1794 from cesanta/addMissingTests
...
Update test.yml
2022-10-11 07:37:53 +01:00
Sergio R. Caprile
d89233276b
Update test.yml
2022-10-10 17:16:42 -03:00
Sergio R. Caprile
7d797187e8
Merge pull request #1793 from cesanta/device-dashboard
...
fix paths in Makefile (like other examples)
2022-10-10 17:01:43 -03:00
Sergio R. Caprile
6edcc72364
fix paths in Makefile
2022-10-10 16:51:07 -03:00
Sergey Lyubka
250dfc1377
Merge pull request #1790 from cesanta/zephyr-device-dashboard
...
Add device-dashboard example on Zephyr
2022-10-10 15:59:08 +01:00
Sergey Lyubka
45489c1c87
Merge pull request #1789 from zudwalex/picow
...
Add Pico-W example
2022-10-10 15:58:53 +01:00
Sergey Lyubka
09b250f189
Merge pull request #1787 from cesanta/zephyr
...
Update Zephyr examples
2022-10-10 15:58:39 +01:00
cpq
a84465ddba
Use MG_SOCK_LISTEN_BACKLOG_SIZE -> 128 for FreeRTOS-TCP
2022-10-10 13:41:07 +01:00
Sergey Lyubka
3b95671442
Merge pull request #1791 from zahar517/fix-json-rpc-example
...
Fix json-rpc-over-ws example
2022-10-10 10:35:29 +01:00
zahar517
52e66077a7
Fix json-rpc-over-ws example
2022-10-08 14:39:01 +03:00
Sergio R. Caprile
84bf4d21a3
Add device-dashboard example on Zephyr
2022-10-07 11:52:31 -03:00
Alex Alashkin
04cfc510d0
Add Pico-W example
2022-10-07 09:11:35 +03:00
Sergio R. Caprile
d846e67ec1
Update Zephyr examples
2022-10-06 17:30:27 -03:00
Sergio R. Caprile
9c60a1bc10
Merge pull request #1788 from cesanta/mod-tests4zephyr
...
Update test.yml
2022-10-06 17:11:30 -03:00
Sergio R. Caprile
f06ac52a43
Update test.yml
2022-10-06 16:55:13 -03:00
Sergio R. Caprile
9e5fd43a2d
Update test.yml
2022-10-06 16:46:26 -03:00
Sergio R. Caprile
8d50e7dc82
Update test.yml
2022-10-06 16:32:33 -03:00
cpq
1e6b7bd2a6
Fix broken link
2022-10-05 11:49:06 +01:00
Sergey Lyubka
8346be7a81
Merge pull request #1783 from cesanta/zephyr
...
Update to latest Zephyr and their Docker repo
2022-10-05 11:41:55 +01:00
Sergey Lyubka
9dc5683fc2
Merge pull request #1785 from cesanta/device-dashboard
...
rename time() to ourtime()
2022-10-05 11:40:08 +01:00
Sergio R. Caprile
e7cb82175a
rename time() to ourtime()
2022-10-04 19:27:38 -03:00
Sergio R. Caprile
1ef0aa14c0
Update to latest Zephyr and their Docker repo
2022-10-04 17:24:13 -03:00
cpq
0b3f6d6aab
Use CC for fuzzer, not CXX
2022-09-30 11:44:50 +01:00
Sergey Lyubka
0beef1d770
Merge pull request #1781 from jameshilliard/update-spdx
...
Update GPL license identifier
2022-09-29 20:29:07 +01:00