318 |
char remote_name[MAXNAMELEN + 1]; /* Peer's name for authentication */ |
char remote_name[MAXNAMELEN + 1]; /* Peer's name for authentication */ |
319 |
}; |
}; |
320 |
|
|
321 |
|
struct ppp_addrs { |
322 |
|
struct ip_addr our_ipaddr, his_ipaddr, netmask, dns1, dns2; |
323 |
|
}; |
324 |
|
|
325 |
/***************************** |
/***************************** |
326 |
*** PUBLIC DATA STRUCTURES *** |
*** PUBLIC DATA STRUCTURES *** |
349 |
* Return a new PPP connection descriptor on success or |
* Return a new PPP connection descriptor on success or |
350 |
* an error code (negative) on failure. |
* an error code (negative) on failure. |
351 |
*/ |
*/ |
352 |
int pppOpen(sio_fd_t fd, void (*linkStatusCB)(void *arg, int errCode), void *linkStatusArg); |
int pppOpen(sio_fd_t fd, void (*linkStatusCB)(void *ctx, int errCode, void *arg), void *linkStatusCtx); |
353 |
|
|
354 |
/* |
/* |
355 |
* Close a PPP connection and release the descriptor. |
* Close a PPP connection and release the descriptor. |