|
From: | Ian Abbott |
Subject: | Re: [lwip-users] Missing SOL_TCP? |
Date: | Wed, 13 Apr 2022 16:22:11 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 |
On 13/04/2022 15:45, Grant Edwards wrote:
It appears that there is code in lwip_getsockopt_impl to handle setting tcp keepalive values via the keys TCP_KEEPIDLE, TCP_KEEPINTVL, and TCP_KEEPCNT. Using the Berekely socket API, these are set via calls to setsocktopt(): setsockopt(s, SOL_TCP, TCP_KEEPxxxx, &n, sizeof n); However, the only SOL_xxx "level" constant I can find defined by LWIP is SOL_SOCKET, and those keys are ignored for that level. Where are the definitions for other SOL_xxxxx values (e.g. SOL_TCP) supposed to come from?
Use IPPROTO_TCP instead of SOL_TCP as the "level". -- -=( Ian Abbott <abbotti@mev.co.uk> || MEV Ltd. is a company )=- -=( registered in England & Wales. Regd. number: 02862268. )=- -=( Regd. addr.: S11 & 12 Building 67, Europa Business Park, )=- -=( Bird Hall Lane, STOCKPORT, SK3 0XA, UK. || www.mev.co.uk )=-
[Prev in Thread] | Current Thread | [Next in Thread] |