blob: 4c2cc301da9777378ad1afb4050169b529dc532b
1 | package com.amlogic.pppoe; |
2 | |
3 | public class PppoeOperation |
4 | { |
5 | public static final int PPP_STATUS_CONNECTED = 0x10; |
6 | public static final int PPP_STATUS_DISCONNECTED = 0x20; |
7 | public static final int PPP_STATUS_CONNECTING = 0x40; |
8 | |
9 | public native boolean connect(String ifname, String account, String passwd); |
10 | public native boolean disconnect(); |
11 | public native boolean terminate(); |
12 | public native int status(String ifname); |
13 | static { |
14 | System.loadLibrary("pppoejni"); |
15 | } |
16 | } |
17 |