50#ifndef __u_char_defined
53typedef unsigned long u_long;
54typedef unsigned int u_int;
56typedef unsigned char u_char;
67#define PPPERR_PARAM -1
69#define PPPERR_DEVICE -3
70#define PPPERR_ALLOC -4
72#define PPPERR_CONNECT -6
73#define PPPERR_AUTHFAIL -7
74#define PPPERR_PROTOCOL -8
83#define PPPCTLG_UPSTATUS 100
84#define PPPCTLS_ERRCODE 101
85#define PPPCTLG_ERRCODE 102
93 ip_addr_t our_ipaddr, his_ipaddr, netmask, dns1, dns2;
130void pppSetAuth(
enum pppAuthType authType,
const char *
user,
const char *passwd);
133typedef void (*pppLinkStatusCB_fn)(
void *
ctx,
int errCode,
void *
arg);
143int pppOverSerialOpen(
sio_fd_t fd, pppLinkStatusCB_fn linkStatusCB,
void *linkStatusCtx);
150int pppOverEthernetOpen(
struct netif *ethif,
const char *
service_name,
const char *concentrator_name,
151 pppLinkStatusCB_fn linkStatusCB,
void *linkStatusCtx);
155#define pppOpen(fd,cb,ls) pppOverSerialOpen(fd,cb,ls)
167void pppSigHUP(
int pd);
173int pppIOCtl(
int pd,
int cmd,
void *
arg);
180#if PPPOS_SUPPORT && !PPP_INPROC_OWNTHREAD
190#if LWIP_NETIF_STATUS_CALLBACK
194#if LWIP_NETIF_LINK_CALLBACK
static char service_name[100]
void user(int argc, const char *argv[])
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
typedefPACK_STRUCT_END struct ip_addr ip_addr_t
static void WINAPI status_callback(HINTERNET handle, DWORD_PTR ctx, DWORD status, LPVOID info, DWORD info_len)
void(* netif_status_callback_fn)(struct netif *netif)