Have IpManager track L2-L4 signaling traffic required for IP connectivity. am: 4adb18679e
am: cdb620fbcb
Change-Id: Iccd81c5d722a14409fc4f22bc34c3607bca653da
This commit is contained in:
commit
bfdf051585
1 changed files with 103 additions and 15 deletions
|
|
@ -51,6 +51,17 @@ public class NetworkUtils {
|
|||
*/
|
||||
public native static void attachRaFilter(FileDescriptor fd, int packetType) throws SocketException;
|
||||
|
||||
/**
|
||||
* Attaches a socket filter that accepts L2-L4 signaling traffic required for IP connectivity.
|
||||
*
|
||||
* This includes: all ARP, ICMPv6 RS/RA/NS/NA messages, and DHCPv4 exchanges.
|
||||
*
|
||||
* @param fd the socket's {@link FileDescriptor}.
|
||||
* @param packetType the hardware address type, one of ARPHRD_*.
|
||||
*/
|
||||
public native static void attachControlPacketFilter(FileDescriptor fd, int packetType)
|
||||
throws SocketException;
|
||||
|
||||
/**
|
||||
* Configures a socket for receiving ICMPv6 router solicitations and sending advertisements.
|
||||
* @param fd the socket's {@link FileDescriptor}.
|
||||
|
|
|
|||
Loading…
Reference in a new issue