Re: [PATCH 4/4] lwip: Stop using netifapi.

2019-03-31 Thread Samuel Thibault
Joan Lledó, le dim. 31 mars 2019 19:55:41 +0200, a ecrit: > Use tcpip_callback() to reconfigure interfaces in a thread-safe > context instead. Applied, thanks! > * lwip/lwip-util.c: > * Replace all netifapi calls by their non-netifapi versions. > * update_ifs() is called through tcpip

Re: [PATCH 3/4] lwip: Add headers to the tun driver

2019-03-31 Thread Samuel Thibault
Joan Lledó, le dim. 31 mars 2019 19:55:40 +0200, a ecrit: > Since O_CREAT and pals are not included for other headers anymore Applied, thanks! > * lwip/port/netif/hurdtunif.c: > * Include sys/types.h, sys/stat.h and fcntl.h > --- > lwip/port/netif/hurdtunif.c | 3 +++ > 1 file changed, 3 i

Re: [PATCH 2/4] lwip: Use the right error type.

2019-03-31 Thread Samuel Thibault
Joan Lledó, le dim. 31 mars 2019 19:55:39 +0200, a ecrit: > Use lwip's err_t as return type for functions called from lwip > and error_t for functions called from the translator. Applied, thanks! > * lwip/io-ops.c: Include > * as is not being included for other headers anymore. > * lwip/lw

Re: [PATCH 1/4] lwip: Fix wrong error checks

2019-03-31 Thread Samuel Thibault
Joan Lledó, le dim. 31 mars 2019 19:55:38 +0200, a ecrit: > * lwip/lwip-util.c: init_ifs(): > * Check for the value of ifc instead of in->dev_name > * lwip/port/netif/ifcommon.c: > * if_init(), if_terminate(): Check for null on ifc instead of netif Applied, thanks! > --- > lwip/lwip-

[PATCH 2/4] lwip: Use the right error type.

2019-03-31 Thread Joan Lledó
Use lwip's err_t as return type for functions called from lwip and error_t for functions called from the translator. * lwip/io-ops.c: Include * as is not being included for other headers anymore. * lwip/lwip-util.h: Likewise. * lwip/port/include/netif/hurdethif.h: * Include

[PATCH 4/4] lwip: Stop using netifapi.

2019-03-31 Thread Joan Lledó
Use tcpip_callback() to reconfigure interfaces in a thread-safe context instead. * lwip/lwip-util.c: * Replace all netifapi calls by their non-netifapi versions. * update_ifs() is called through tcpip_callback(). * lwip/options.c: * Call init_fs() through tcpip_callback().

Changes in lwip translator for lwip 2.1.2

2019-03-31 Thread Joan Lledó
Hello, I attach some patches for the lwip translator. The first three patches are bug-fixing, and the last one is a required change to work with the last version of the lwip port.

[PATCH 3/4] lwip: Add headers to the tun driver

2019-03-31 Thread Joan Lledó
Since O_CREAT and pals are not included for other headers anymore * lwip/port/netif/hurdtunif.c: * Include sys/types.h, sys/stat.h and fcntl.h --- lwip/port/netif/hurdtunif.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lwip/port/netif/hurdtunif.c b/lwip/port/netif/hurdtunif.c i

[PATCH 1/4] lwip: Fix wrong error checks

2019-03-31 Thread Joan Lledó
* lwip/lwip-util.c: init_ifs(): * Check for the value of ifc instead of in->dev_name * lwip/port/netif/ifcommon.c: * if_init(), if_terminate(): Check for null on ifc instead of netif --- lwip/lwip-util.c | 4 ++-- lwip/port/netif/ifcommon.c | 4 ++-- 2 files changed, 4 in

Re: Upgrade lwip debian parckage

2019-03-31 Thread Samuel Thibault
Hello, Joan Lledó, le dim. 31 mars 2019 19:49:42 +0200, a ecrit: > I finished porting lwip 2.1.2 to the Hurd and Linux. Attached is the > patch with all changes in the debian/ folder. It's compressed since it > has windows line breaks. Great, thanks! I'll probably upload it both to experimental

Re: Upgrade lwip debian parckage

2019-03-31 Thread Joan Lledó
Hello, I finished porting lwip 2.1.2 to the Hurd and Linux. Attached is the patch with all changes in the debian/ folder. It's compressed since it has windows line breaks. 0001-Update-to-2.1.2.tar.xz Description: application/xz