mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-16 14:11:02 +00:00
Compare commits
3 Commits
a6d5c89501
...
19e9c52717
Author | SHA1 | Date | |
---|---|---|---|
|
19e9c52717 | ||
|
ed9dabe088 | ||
|
d5fc0cc825 |
@ -12,6 +12,9 @@
|
|||||||
# Enter 192.168.1.200 or "http://lwip.local/" (Zeroconf)
|
# Enter 192.168.1.200 or "http://lwip.local/" (Zeroconf)
|
||||||
# in your webbrowser to see example_app webpage.
|
# in your webbrowser to see example_app webpage.
|
||||||
|
|
||||||
|
# N.b. you must disable USE_DHCP and USE_AUTOIP in lwipcfg.h for the static
|
||||||
|
# ip 192.168.1.200 to work in tapif
|
||||||
|
|
||||||
export PRECONFIGURED_TAPIF=tap0
|
export PRECONFIGURED_TAPIF=tap0
|
||||||
|
|
||||||
sudo ip tuntap add dev $PRECONFIGURED_TAPIF mode tap user `whoami`
|
sudo ip tuntap add dev $PRECONFIGURED_TAPIF mode tap user `whoami`
|
||||||
|
@ -2926,6 +2926,7 @@ lwip_sockopt_to_ipopt(int optname)
|
|||||||
static void
|
static void
|
||||||
lwip_getsockopt_impl_ipv6_checksum(int s, struct lwip_sock* sock, void* optval)
|
lwip_getsockopt_impl_ipv6_checksum(int s, struct lwip_sock* sock, void* optval)
|
||||||
{
|
{
|
||||||
|
LWIP_UNUSED_ARG(s);
|
||||||
if (sock->conn->pcb.raw->chksum_reqd == 0) {
|
if (sock->conn->pcb.raw->chksum_reqd == 0) {
|
||||||
*(int*)optval = -1;
|
*(int*)optval = -1;
|
||||||
}
|
}
|
||||||
@ -2939,6 +2940,7 @@ lwip_getsockopt_impl_ipv6_checksum(int s, struct lwip_sock* sock, void* optval)
|
|||||||
static int
|
static int
|
||||||
lwip_setsockopt_impl_ipv6_checksum(int s, struct lwip_sock* sock, const void* optval, socklen_t optlen)
|
lwip_setsockopt_impl_ipv6_checksum(int s, struct lwip_sock* sock, const void* optval, socklen_t optlen)
|
||||||
{
|
{
|
||||||
|
LWIP_UNUSED_ARG(s);
|
||||||
/* It should not be possible to disable the checksum generation with ICMPv6
|
/* It should not be possible to disable the checksum generation with ICMPv6
|
||||||
* as per RFC 3542 chapter 3.1 */
|
* as per RFC 3542 chapter 3.1 */
|
||||||
if (sock->conn->pcb.raw->protocol == IPPROTO_ICMPV6) {
|
if (sock->conn->pcb.raw->protocol == IPPROTO_ICMPV6) {
|
||||||
|
Loading…
Reference in New Issue
Block a user