mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-03-30 16:20:27 +00:00
removed bool type, replaced by u8_t
This commit is contained in:
parent
11a3057e8e
commit
2e069429c2
@ -140,7 +140,7 @@ typedef struct eap_state {
|
|||||||
int es_savedtime; /* Saved timeout */
|
int es_savedtime; /* Saved timeout */
|
||||||
int es_rechallenge; /* EAP rechallenge interval */
|
int es_rechallenge; /* EAP rechallenge interval */
|
||||||
int es_lwrechallenge; /* SRP lightweight rechallenge inter */
|
int es_lwrechallenge; /* SRP lightweight rechallenge inter */
|
||||||
bool es_usepseudo; /* Use SRP Pseudonym if offered one */
|
u8_t es_usepseudo; /* Use SRP Pseudonym if offered one */
|
||||||
int es_usedpseudo; /* Set if we already sent PN */
|
int es_usedpseudo; /* Set if we already sent PN */
|
||||||
int es_challen; /* Length of challenge string */
|
int es_challen; /* Length of challenge string */
|
||||||
u_char es_challenge[EAP_MAX_CHALLENGE_LENGTH];
|
u_char es_challenge[EAP_MAX_CHALLENGE_LENGTH];
|
||||||
|
@ -306,7 +306,7 @@ struct protent ipcp_protent = {
|
|||||||
#endif /* DEMAND_SUPPORT */
|
#endif /* DEMAND_SUPPORT */
|
||||||
};
|
};
|
||||||
|
|
||||||
static void ipcp_clear_addrs(ppp_pcb *pcb, u_int32_t ouraddr, u_int32_t hisaddr, bool replacedefaultroute);
|
static void ipcp_clear_addrs(ppp_pcb *pcb, u_int32_t ouraddr, u_int32_t hisaddr, u8_t replacedefaultroute);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Lengths of configuration options.
|
* Lengths of configuration options.
|
||||||
@ -2014,7 +2014,7 @@ static void ipcp_down(fsm *f) {
|
|||||||
* ipcp_clear_addrs() - clear the interface addresses, routes,
|
* ipcp_clear_addrs() - clear the interface addresses, routes,
|
||||||
* proxy arp entries, etc.
|
* proxy arp entries, etc.
|
||||||
*/
|
*/
|
||||||
static void ipcp_clear_addrs(ppp_pcb *pcb, u_int32_t ouraddr, u_int32_t hisaddr, bool replacedefaultroute) {
|
static void ipcp_clear_addrs(ppp_pcb *pcb, u_int32_t ouraddr, u_int32_t hisaddr, u8_t replacedefaultroute) {
|
||||||
|
|
||||||
if (pcb->proxy_arp_set) {
|
if (pcb->proxy_arp_set) {
|
||||||
cifproxyarp(pcb, hisaddr);
|
cifproxyarp(pcb, hisaddr);
|
||||||
|
@ -2032,7 +2032,7 @@ int netif_get_mtu(ppp_pcb *pcb) {
|
|||||||
* and then changes the temporary addresses to the addresses for the real
|
* and then changes the temporary addresses to the addresses for the real
|
||||||
* ppp connection when it has come up.
|
* ppp connection when it has come up.
|
||||||
*/
|
*/
|
||||||
int sifdefaultroute(ppp_pcb *pcb, u_int32_t ouraddr, u_int32_t gateway, bool replace) {
|
int sifdefaultroute(ppp_pcb *pcb, u_int32_t ouraddr, u_int32_t gateway, u8_t replace) {
|
||||||
|
|
||||||
LWIP_UNUSED_ARG(ouraddr);
|
LWIP_UNUSED_ARG(ouraddr);
|
||||||
LWIP_UNUSED_ARG(gateway);
|
LWIP_UNUSED_ARG(gateway);
|
||||||
|
@ -79,20 +79,6 @@
|
|||||||
#endif /* PPPOS_SUPPORT */
|
#endif /* PPPOS_SUPPORT */
|
||||||
|
|
||||||
|
|
||||||
#ifndef __u_char_defined
|
|
||||||
|
|
||||||
/* Type definitions for BSD code. */
|
|
||||||
typedef unsigned long u_long;
|
|
||||||
typedef unsigned int u_int;
|
|
||||||
typedef unsigned short u_short;
|
|
||||||
typedef unsigned char u_char;
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef bool
|
|
||||||
typedef unsigned char bool;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*************************
|
/*************************
|
||||||
*** PUBLIC DEFINITIONS ***
|
*** PUBLIC DEFINITIONS ***
|
||||||
*************************/
|
*************************/
|
||||||
|
@ -134,19 +134,6 @@ u16_t ppp_get_fcs(u8_t byte);
|
|||||||
#define PPP_FCS(fcs, c) (((fcs) >> 8) ^ ppp_get_fcs(((fcs) ^ (c)) & 0xff))
|
#define PPP_FCS(fcs, c) (((fcs) >> 8) ^ ppp_get_fcs(((fcs) ^ (c)) & 0xff))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
|
||||||
* A 32-bit unsigned integral type.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#if !defined(__BIT_TYPES_DEFINED__) && !defined(_BITYPES) \
|
|
||||||
&& !defined(__FreeBSD__) && (NS_TARGET < 40)
|
|
||||||
#ifdef UINT32_T
|
|
||||||
typedef UINT32_T u_int32_t;
|
|
||||||
#else
|
|
||||||
typedef unsigned int u_int32_t;
|
|
||||||
typedef unsigned short u_int16_t;
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* What to do with network protocol (NP) packets.
|
* What to do with network protocol (NP) packets.
|
||||||
@ -238,11 +225,11 @@ struct ppp_idle {
|
|||||||
* Global variables.
|
* Global variables.
|
||||||
*/
|
*/
|
||||||
#ifdef HAVE_MULTILINK
|
#ifdef HAVE_MULTILINK
|
||||||
extern bool multilink; /* enable multilink operation */
|
extern u8_t multilink; /* enable multilink operation */
|
||||||
extern bool doing_multilink;
|
extern u8_t doing_multilink;
|
||||||
extern bool multilink_master;
|
extern u8_t multilink_master;
|
||||||
extern bool bundle_eof;
|
extern u8_t bundle_eof;
|
||||||
extern bool bundle_terminating;
|
extern u8_t bundle_terminating;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef MAXOCTETS
|
#ifdef MAXOCTETS
|
||||||
@ -292,7 +279,7 @@ struct protent {
|
|||||||
*/
|
*/
|
||||||
/* Process a received data packet */
|
/* Process a received data packet */
|
||||||
void (*datainput) (ppp_pcb *pcb, u_char *pkt, int len);
|
void (*datainput) (ppp_pcb *pcb, u_char *pkt, int len);
|
||||||
bool enabled_flag; /* 0 if protocol is disabled */
|
u8_t enabled_flag; /* 0 if protocol is disabled */
|
||||||
#if PRINTPKT_SUPPORT
|
#if PRINTPKT_SUPPORT
|
||||||
char *name; /* Text name of protocol */
|
char *name; /* Text name of protocol */
|
||||||
char *data_name; /* Text name of corresponding data protocol */
|
char *data_name; /* Text name of corresponding data protocol */
|
||||||
@ -429,7 +416,7 @@ int sifnpmode(ppp_pcb *pcb, int proto, enum NPmode mode);
|
|||||||
void netif_set_mtu(ppp_pcb *pcb, int mtu);
|
void netif_set_mtu(ppp_pcb *pcb, int mtu);
|
||||||
int netif_get_mtu(ppp_pcb *pcb);
|
int netif_get_mtu(ppp_pcb *pcb);
|
||||||
|
|
||||||
int sifdefaultroute(ppp_pcb *pcb, u_int32_t ouraddr, u_int32_t gateway, bool replace);
|
int sifdefaultroute(ppp_pcb *pcb, u_int32_t ouraddr, u_int32_t gateway, u8_t replace);
|
||||||
int cifdefaultroute(ppp_pcb *pcb, u_int32_t ouraddr, u_int32_t gateway);
|
int cifdefaultroute(ppp_pcb *pcb, u_int32_t ouraddr, u_int32_t gateway);
|
||||||
|
|
||||||
int sifproxyarp(ppp_pcb *pcb, u_int32_t his_adr);
|
int sifproxyarp(ppp_pcb *pcb, u_int32_t his_adr);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user