Have IpManager track L2-L4 signaling traffic required for IP connectivity.

am: 929ed666b5

Change-Id: Ie95309464d8f368f5040c74b59daba9700191e86
This commit is contained in:
Erik Kline 2016-12-15 10:13:36 +00:00 • committed by android-build-merger
commit 63c2cd962a

View file

@ -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}.