Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Address unused parameter compilation error #31

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions contrib/ports/unix/setup-tapif
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
# Enter 192.168.1.200 or "http://lwip.local/" (Zeroconf)
# 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

sudo ip tuntap add dev $PRECONFIGURED_TAPIF mode tap user `whoami`
Expand Down
2 changes: 2 additions & 0 deletions src/api/sockets.c
Original file line number Diff line number Diff line change
Expand Up @@ -2926,6 +2926,7 @@ lwip_sockopt_to_ipopt(int optname)
static void
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) {
*(int*)optval = -1;
}
Expand All @@ -2939,6 +2940,7 @@ lwip_getsockopt_impl_ipv6_checksum(int s, struct lwip_sock* sock, void* optval)
static int
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
* as per RFC 3542 chapter 3.1 */
if (sock->conn->pcb.raw->protocol == IPPROTO_ICMPV6) {
Expand Down