• E
    tcp: fix build fong CONFIG_MPTCP=n · 0e8642cf
    Eric Dumazet 提交于
    Fixes these errors:
    
    net/ipv4/syncookies.c: In function 'tcp_get_cookie_sock':
    net/ipv4/syncookies.c:216:19: error: 'struct tcp_request_sock' has no
    member named 'drop_req'
      216 |   if (tcp_rsk(req)->drop_req) {
          |                   ^~
    net/ipv4/syncookies.c: In function 'cookie_tcp_reqsk_alloc':
    net/ipv4/syncookies.c:289:27: warning: unused variable 'treq'
    [-Wunused-variable]
      289 |  struct tcp_request_sock *treq;
          |                           ^~~~
    make[3]: *** [scripts/Makefile.build:280: net/ipv4/syncookies.o] Error 1
    make[3]: *** Waiting for unfinished jobs....
    
    Fixes: 9466a1cc ("mptcp: enable JOIN requests even if cookies are in use")
    Signed-off-by: NEric Dumazet <edumazet@google.com>
    Cc: Florian Westphal <fw@strlen.de>
    Acked-by: NFlorian Westphal <fw@strlen.de>
    Signed-off-by: NDavid S. Miller <davem@davemloft.net>
    0e8642cf
syncookies.c 12.3 KB