mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-07 05:30:14 +00:00
Add a sanity check for PPP, and a #if !NO_SYS/#endif for slipif_loop
This commit is contained in:
parent
c265fa3331
commit
8c847a85ae
@ -96,6 +96,9 @@
|
|||||||
#if (LWIP_IGMP && (MEMP_NUM_IGMP_GROUP<=1))
|
#if (LWIP_IGMP && (MEMP_NUM_IGMP_GROUP<=1))
|
||||||
#error "If you want to use IGMP, you have to define MEMP_NUM_IGMP_GROUP>1 in your lwipopts.h"
|
#error "If you want to use IGMP, you have to define MEMP_NUM_IGMP_GROUP>1 in your lwipopts.h"
|
||||||
#endif
|
#endif
|
||||||
|
#if (PPP_SUPPORT && (NO_SYS==1))
|
||||||
|
#error "If you want to use PPP, you have to define NO_SYS=0 in your lwipopts.h"
|
||||||
|
#endif
|
||||||
#if ((LWIP_SOCKET || LWIP_NETCONN) && (NO_SYS==1))
|
#if ((LWIP_SOCKET || LWIP_NETCONN) && (NO_SYS==1))
|
||||||
#error "If you want to use Sequential API, you have to define NO_SYS=0 in your lwipopts.h"
|
#error "If you want to use Sequential API, you have to define NO_SYS=0 in your lwipopts.h"
|
||||||
#endif
|
#endif
|
||||||
|
@ -204,6 +204,7 @@ slipif_input(struct netif *netif)
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if !NO_SYS
|
||||||
/**
|
/**
|
||||||
* The SLIP input thread.
|
* The SLIP input thread.
|
||||||
*
|
*
|
||||||
@ -227,6 +228,7 @@ slipif_loop(void *nf)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif /* !NO_SYS */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* SLIP netif initialization
|
* SLIP netif initialization
|
||||||
|
Loading…
Reference in New Issue
Block a user