mirror of
https://github.com/reactos/reactos.git
synced 2025-07-30 22:42:14 +00:00

* [TCPIP] Rename lwip library to lwipcore
* [TCPIP] Remove ReactOS-specific code from LWIP library
* [TCPIP] Synchronize LWIP code to 1.4.1
Update to LWIP 1.4.1 should have been done by bd3b0e8ef4
However, I was unable to find the exact revision used in this commit.
So, do the following
- take code from STABLE-1_4_1 commit on https://git.savannah.gnu.org/git/lwip.git
- cherry-pick LWIP 32aa9a41e2013e5ee6eee09317a848647e37badf (CORE-8978)
- cherry-pick LWIP c0b534e5318baf870e2152c70d4d11a3a86181f3
- add a ReactOS-specific change in src/api/tcpip.c (missing include)
- add ReactOS specific file CMakeLists.txt
NOTE: Changes are mostly in unit test files (not used) and CHANGELOG file.
CORE-7140
39 lines
713 B
C
39 lines
713 B
C
/* ReactOS-Specific lwIP binding header - by Cameron Gutman */
|
|
|
|
/* Implmentation specific structs */
|
|
typedef struct _sys_sem_t
|
|
{
|
|
KEVENT Event;
|
|
int Valid;
|
|
} sys_sem_t;
|
|
|
|
typedef struct _sys_mbox_t
|
|
{
|
|
KSPIN_LOCK Lock;
|
|
LIST_ENTRY ListHead;
|
|
KEVENT Event;
|
|
int Valid;
|
|
} sys_mbox_t;
|
|
|
|
typedef KIRQL sys_prot_t;
|
|
|
|
typedef u32_t sys_thread_t;
|
|
|
|
typedef struct _LWIP_MESSAGE_CONTAINER
|
|
{
|
|
PVOID Message;
|
|
LIST_ENTRY ListEntry;
|
|
} LWIP_MESSAGE_CONTAINER, *PLWIP_MESSAGE_CONTAINER;
|
|
|
|
#define sys_jiffies() sys_now()
|
|
|
|
/* NULL definitions */
|
|
#define SYS_MBOX_NULL NULL
|
|
#define SYS_SEM_NULL NULL
|
|
#define SYS_ARCH_NULL NULL
|
|
|
|
void
|
|
sys_arch_protect(sys_prot_t *lev);
|
|
|
|
void
|
|
sys_arch_unprotect(sys_prot_t lev);
|