Skip to content

Commit 4c94873

Browse files
author
whitequark
committedDec 5, 2016
runtime: upgrade lwip to release 2.0.0.
1 parent b5a6848 commit 4c94873

File tree

6 files changed

+14
-55
lines changed

6 files changed

+14
-55
lines changed
 

‎artiq/runtime/liblwip/Makefile

+5-5
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,17 @@ COREFILES=core/mem.c \
2121
core/tcp_out.c \
2222
core/udp.c \
2323
core/inet_chksum.c \
24-
core/timers.c \
24+
core/timeouts.c \
2525
core/init.c
2626

27-
CORE4FILES=core/ipv4/icmp.c \
27+
CORE4FILES=core/ipv4/etharp.c \
28+
core/ipv4/icmp.c \
2829
core/ipv4/ip4.c \
2930
core/ipv4/ip4_addr.c \
30-
core/ipv4/ip_frag.c
31+
core/ipv4/ip4_frag.c
3132

3233
# NETIFFILES: Files implementing various generic network interface functions.
33-
NETIFFILES=netif/etharp.c \
34-
netif/ethernet.c
34+
NETIFFILES=netif/ethernet.c
3535

3636
PPPFILES=netif/ppp/auth.c \
3737
netif/ppp/fsm.c \

‎artiq/runtime/liblwip/arch/cc.h

-25
Original file line numberDiff line numberDiff line change
@@ -6,33 +6,8 @@
66
#define __ARCH_CC_H__
77

88
/* Include some files for defining library routines */
9-
#include <stdlib.h>
10-
#include <stdio.h>
11-
#include <string.h>
12-
139
#define BYTE_ORDER BIG_ENDIAN
1410

15-
/* Define generic types */
16-
typedef unsigned char u8_t;
17-
typedef signed char s8_t;
18-
typedef unsigned short u16_t;
19-
typedef signed short s16_t;
20-
typedef unsigned long u32_t;
21-
typedef signed long s32_t;
22-
23-
typedef u32_t mem_ptr_t;
24-
25-
/* Define (sn)printf formatters for these types */
26-
#define U8_F "c"
27-
#define S8_F "c"
28-
#define X8_F "x"
29-
#define U16_F "u"
30-
#define S16_F "d"
31-
#define X16_F "x"
32-
#define U32_F "u"
33-
#define S32_F "d"
34-
#define X32_F "x"
35-
3611
/* Compiler hints for packing structures */
3712
#define PACK_STRUCT_FIELD(x) x
3813
#define PACK_STRUCT_STRUCT __attribute__((packed))

‎artiq/runtime/liblwip/arch/sys_arch.h

-20
This file was deleted.

‎artiq/runtime/liblwip/lwipopts.h

+2
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@
4040

4141
#define LWIP_CALLBACK_API 1
4242

43+
#define SYS_LIGHTWEIGHT_PROT 0
44+
4345
/* -------- TCP Timer Intervals ------- */
4446
#define TCP_TMR_INTERVAL 1 /* The TCP timer interval in
4547
milliseconds. */

‎artiq/runtime/lwip

Submodule lwip updated 378 files

‎artiq/runtime/main.c

+6-4
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,10 @@
99
#include <hw/flags.h>
1010

1111
#include <lwip/init.h>
12-
#include <lwip/memp.h>
1312
#include <lwip/ip4_addr.h>
14-
#include <lwip/ip4.h>
1513
#include <lwip/netif.h>
16-
#include <lwip/sys.h>
14+
#include <lwip/timeouts.h>
1715
#include <lwip/tcp.h>
18-
#include <lwip/timers.h>
1916
#ifdef CSR_ETHMAC_BASE
2017
#include <netif/etharp.h>
2118
#include <liteethif.h>
@@ -32,6 +29,7 @@ static struct netif netif;
3229
static ppp_pcb *ppp;
3330
#endif
3431

32+
void lwip_service(void);
Has conversations. Original line has conversations.
3533
void lwip_service(void)
3634
{
3735
sys_check_timeouts();
@@ -107,6 +105,7 @@ static void fsip_or_default(struct ip4_addr *d, char *key, int i1, int i2, int i
107105
#endif
108106
}
109107

108+
void network_init(void);
110109
void network_init(void)
111110
{
112111
struct ip4_addr local_ip;
@@ -169,14 +168,17 @@ extern void _fheap, _eheap;
169168

170169
extern void rust_main();
171170

171+
u16_t tcp_sndbuf_(struct tcp_pcb *pcb);
172172
u16_t tcp_sndbuf_(struct tcp_pcb *pcb) {
173173
return tcp_sndbuf(pcb);
174174
}
175175

176+
u8_t* tcp_so_options_(struct tcp_pcb *pcb);
176177
u8_t* tcp_so_options_(struct tcp_pcb *pcb) {
177178
return &pcb->so_options;
178179
}
179180

181+
void tcp_nagle_disable_(struct tcp_pcb *pcb);
180182
void tcp_nagle_disable_(struct tcp_pcb *pcb) {
181183
tcp_nagle_disable(pcb);
182184
}

0 commit comments

Comments
 (0)
Please sign in to comment.