1
0
mirror of https://github.com/FreeRTOS/FreeRTOS-Plus-TCP synced 2025-10-23 01:18:54 +08:00
Commit Graph

8 Commits

Author SHA1 Message Date
Xiaodong Li
8197dde3f7 Update poll event in libslirp backend for winSim demo (#972)
* update poll event for winSim demo

---------

Co-authored-by: Xiaodong Li <xiaodonn@amazon.com>
2023-07-18 17:03:19 -07:00
Xiaodong Li
a7b8a27020 Update Libslirp Network Interface (#966)
* Modified libslirp backend file to cover different libslirp library versions
* Update libslirp network interface
* Add check to avoid memory leak and configASSERT() Null checks for malloc calls

---------

Co-authored-by: Xiaodong Li <xiaodonn@amazon.com>
Co-authored-by: Soren Ptak <ptaksoren@gmail.com>
Co-authored-by: Soren Ptak <skptak@amazon.com>
2023-07-17 17:35:20 -07:00
Xiaodong Li
f71fe91f52 Modified libslirp backend file to cover different libslirp library versions (#929)
Authored-by: Xiaodong Li <xiaodonn@amazon.com>
2023-06-27 10:31:47 -07:00
Paul Bartell
cb70927b98 NetifSlirp: Fix compiler warnings and errors (#562)
* NetifSlirp: Fix compiler warnings and errors

Built on latest gcc, clang, and msvc for x86.

* Apply suggestions from code review
2022-10-11 14:06:26 -07:00
Paul Bartell
dcd0df708a NetifSlirp: Fix compatibility with libslirp v4.6.x (#554)
* NetifSlirp: Fix compatibility with libslirp v4.6.x

* NetifSlirp: Fix compiler warning on MSVC

* Uncrustify: triggered by comment.

Co-authored-by: GitHub Action <action@github.com>
Co-authored-by: Aniruddha Kanhere <60444055+AniruddhaKanhere@users.noreply.github.com>
2022-09-30 10:14:17 -07:00
Paul Bartell
8988bd741c NetifSlirp: Remove dependency on libslirp if.h
This addresses build issues when the using system-provided version of
libslirp on linux and macos.
2022-09-12 15:12:58 -07:00
Paul Bartell
e5da99952f NetifSlirp: Address some gcc/linux warnings 2022-09-12 15:12:58 -07:00
Paul Bartell
a6ca0be209 Add libslirp NetworkInterface implementation
Libslirp is used by qemu to provide userspace NAT networking. This serves as
a replacement for the current libpcap / winpcap NetworkInterface but does
not require elevated privileges or selecting a particular interface to bind to.

In this implementation, incoming connections are not supported.

Tested with git revision 38638382c8f3dc2523468f0c54014f4fdf0aa38f on MacOS and Windows.
2022-09-12 15:12:58 -07:00