blob: f7c9901091c97455be16e94e6a4671c37df29701
1 | #ifndef PPPOE_CTRL_H |
2 | #define PPPOE_CTRL_H |
3 | |
4 | |
5 | #define PPPOE_PIDFILE "/system/etc/ppp/pppoe.pid" |
6 | |
7 | |
8 | struct pppoe_ctrl { |
9 | int s; |
10 | struct sockaddr_un local; |
11 | struct sockaddr_un dest; |
12 | }; |
13 | |
14 | |
15 | #ifdef __cplusplus |
16 | extern "C" { |
17 | #endif |
18 | struct pppoe_ctrl * pppoe_ctrl_open(const char *ctrl_path); |
19 | |
20 | void pppoe_ctrl_close(struct pppoe_ctrl *ctrl); |
21 | |
22 | int pppoe_ctrl_request(struct pppoe_ctrl *ctrl, const char *cmd, size_t cmd_len); |
23 | |
24 | int pppoe_ctrl_get_fd(struct pppoe_ctrl *ctrl); |
25 | |
26 | |
27 | #ifdef __cplusplus |
28 | } |
29 | #endif |
30 | |
31 | |
32 | #endif |
33 |