52#define PPP_ADDITIONAL_CALLBACKS 0
56#error "CBCP is not supported in lwIP PPP"
59#error "CCP is not supported in lwIP PPP"
108#define TIMEOUT(f, a, t) do { sys_untimeout((f), (a)); sys_timeout((t)*1000, (f), (a)); } while(0)
109#define UNTIMEOUT(f, a) sys_untimeout((f), (a))
127#define PPP_ALLSTATIONS 0xff
130#define PPP_ESCAPE 0x7d
131#define PPP_TRANS 0x20
138#define PPP_VJC_COMP 0x2d
139#define PPP_VJC_UNCOMP 0x2f
141#define PPP_IPCP 0x8021
142#define PPP_ATCP 0x8029
143#define PPP_CCP 0x80fd
144#define PPP_LCP 0xc021
145#define PPP_PAP 0xc023
146#define PPP_LQR 0xc025
147#define PPP_CHAP 0xc223
148#define PPP_CBCP 0xc029
153#define PPP_INITFCS 0xffff
154#define PPP_GOODFCS 0xf0b8
155#define PPP_FCS(fcs, c) (((fcs) >> 8) ^ fcstab[((fcs) ^ (c)) & 0xff])
160typedef u_char ext_accm[32];
178#define GETCHAR(c, cp) { \
181#define PUTCHAR(c, cp) { \
182 *(cp)++ = (u_char) (c); \
186#define GETSHORT(s, cp) { \
187 (s) = *(cp); (cp)++; (s) <<= 8; \
188 (s) |= *(cp); (cp)++; \
190#define PUTSHORT(s, cp) { \
191 *(cp)++ = (u_char) ((s) >> 8); \
192 *(cp)++ = (u_char) (s & 0xff); \
195#define GETLONG(l, cp) { \
196 (l) = *(cp); (cp)++; (l) <<= 8; \
197 (l) |= *(cp); (cp)++; (l) <<= 8; \
198 (l) |= *(cp); (cp)++; (l) <<= 8; \
199 (l) |= *(cp); (cp)++; \
201#define PUTLONG(l, cp) { \
202 *(cp)++ = (u_char) ((l) >> 24); \
203 *(cp)++ = (u_char) ((l) >> 16); \
204 *(cp)++ = (u_char) ((l) >> 8); \
205 *(cp)++ = (u_char) (l); \
209#define INCPTR(n, cp) ((cp) += (n))
210#define DECPTR(n, cp) ((cp) -= (n))
212#define BCMP(s0, s1, l) memcmp((u_char *)(s0), (u_char *)(s1), (l))
213#define BCOPY(s, d, l) MEMCPY((d), (s), (l))
214#define BZERO(s, n) memset(s, 0, n)
217#define PRINTMSG(m, l) { m[l] = '\0'; LWIP_DEBUGF(LOG_INFO, ("Remote message: %s\n", m)); }
219#define PRINTMSG(m, l)
225#define MAKEHEADER(p, t) { \
226 PUTCHAR(PPP_ALLSTATIONS, p); \
227 PUTCHAR(PPP_UI, p); \
254#if PPP_ADDITIONAL_CALLBACKS
257 void (*printer) (
void *,
char *, ...),
264#if PPP_ADDITIONAL_CALLBACKS
285 u_int disable_defaultip : 1;
286 u_int auth_required : 1;
287 u_int explicit_remote : 1;
288 u_int refuse_pap : 1;
289 u_int refuse_chap : 1;
290 u_int usehostname : 1;
291 u_int usepeerdns : 1;
297 char passwd [MAXSECRETLEN + 1];
307extern u_char outpacket_buf[NUM_PPP][PPP_MRU+PPP_HDRLEN];
309extern struct ppp_settings ppp_settings;
311extern struct protent *ppp_protocols[];
322int pppWrite(
int pd,
const u_char *
s,
int n);
324void pppInProcOverEthernet(
int pd,
struct pbuf *pb);
326struct pbuf *pppSingleBuf(
struct pbuf *
p);
328void pppLinkTerminated(
int pd);
330void pppLinkDown(
int pd);
333void ppp_send_config (
int,
u16_t,
u32_t,
int,
int);
335void ppp_set_xaccm (
int, ext_accm *);
337void ppp_recv_config (
int,
int,
u32_t,
int,
int);
339int get_idle_time (
int,
struct ppp_idle *);
342int sifvjcomp (
int,
int,
u8_t,
u8_t);
346int sifnpmode (
int u,
int proto,
enum NPmode
mode);
void user(int argc, const char *argv[])
static WCHAR reason[MAX_STRING_RESOURCE_LEN]
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
GLenum GLenum GLenum input
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble * u
png_const_structrp png_const_inforp int * unit