Have IpManager track L2-L4 signaling traffic required for IP connectivity.
am: 929ed666b5
Change-Id: Ie95309464d8f368f5040c74b59daba9700191e86
This commit is contained in:
commit
63c2cd962a
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