mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-12-12 09:46:44 +08:00
PPPoE works, PPPoS code is not ported at all. I am using the RP-PPPoE server to do my tests using the following configuration: $ cat /etc/ppp/pppoe-server-options debug login lcp-echo-interval 10 lcp-echo-failure 10 ms-dns 192.168.4.130 ms-dns 192.168.4.231 netmask 255.255.255.0 defaultroute noipdefault usepeerdns $ cat /etc/ppp/allip 192.168.4.1-200 $ pppoe-server -C isp -L 192.168.4.254 -p /etc/ppp/allip -I tap0 Plus the usual auth-lines in /etc/ppp/pap-secrets and /etc/ppp/chap-secrets . And the unix port minimal "echo" project slightly modified to use the "tcpip" API, so with threads, which I am going to commit with NO_SYS as a -Dmacro. It still use some of the linux'ism, such as syslog() and crypt(), I do not want to drop the syslog() supports at the moment, this is pretty useful to debug, and we may just convert the way the syslog() is done to provide a trace feature to our PPP users, as a compile-time option.
27 lines
510 B
C
27 lines
510 B
C
#ifndef CBCP_H
|
|
#define CBCP_H
|
|
|
|
typedef struct cbcp_state {
|
|
int us_unit; /* Interface unit number */
|
|
u_char us_id; /* Current id */
|
|
u_char us_allowed;
|
|
int us_type;
|
|
char *us_number; /* Telefone Number */
|
|
} cbcp_state;
|
|
|
|
extern cbcp_state cbcp[];
|
|
|
|
extern struct protent cbcp_protent;
|
|
|
|
#define CBCP_MINLEN 4
|
|
|
|
#define CBCP_REQ 1
|
|
#define CBCP_RESP 2
|
|
#define CBCP_ACK 3
|
|
|
|
#define CB_CONF_NO 1
|
|
#define CB_CONF_USER 2
|
|
#define CB_CONF_ADMIN 3
|
|
#define CB_CONF_LIST 4
|
|
#endif
|