summaryrefslogtreecommitdiff
path: root/jni/src/pppoe_status.h (plain)
blob: 3ae297925814cf7ae6e3b1d2a8e82d94a6295943
1#ifndef PPPOE_STATUS_H
2#define PPPOE_STATUS_H
3
4#define PPP_STATUS_CONNECTED 0x10
5#define PPP_STATUS_DISCONNECTED 0x20
6#define PPP_STATUS_CONNECTING 0x40
7
8#include "../../../ppp/pppd/pathnames.h"
9#define PPPOE_PIDFILE _ROOT_PATH "/etc/ppp/pppoe.pid"
10#define PPPOE_WRAPPER_CLIENT_PATH _ROOT_PATH "/etc/ppp/pppoe"
11#define PPPOE_WRAPPER_SERVER_PATH "/dev/socket/pppoe_wrapper"
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
17int get_net_updown(const char *phy_if_name);
18int get_pppoe_status(const char *phy_if_name);
19
20#ifdef __cplusplus
21}
22#endif
23
24#endif
25
26