Skip to content

Commit

Permalink
lib: Move IPPROTO_MPTCP def to global scope.
Browse files Browse the repository at this point in the history
  • Loading branch information
ossama-othman committed Jul 26, 2022
1 parent 9b82aff commit f2b15a2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/listener_manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@

#include "hash_sockaddr.h"

#ifndef IPPROTO_MPTCP
#define IPPROTO_MPTCP IPPROTO_TCP + 256
#endif


// ----------------------------------------------------------------------

Expand Down Expand Up @@ -261,10 +265,6 @@ static bool is_unbound_address(struct sockaddr const *sa)

static int open_listener(struct sockaddr const *sa)
{
#ifndef IPPROTO_MPTCP
#define IPPROTO_MPTCP IPPROTO_TCP + 256
#endif

int const fd = socket(sa->sa_family, SOCK_STREAM, IPPROTO_MPTCP);
if (fd == -1) {
l_error("Unable to open MPTCP listener: %s",
Expand Down

0 comments on commit f2b15a2

Please sign in to comment.