Add NetworkUtil function for marking sockets
Add NetworkUtil function for setting the SO_MARK field of sockets Change-Id: I94389b64296d87ee928293f24a26f8dd08c3bf37
This commit is contained in:
parent
c137d87017
commit
fa15058755
1 changed files with 14 additions and 0 deletions
|
|
@ -103,6 +103,11 @@ public class NetworkUtils {
|
|||
*/
|
||||
public native static String getDhcpError();
|
||||
|
||||
/**
|
||||
* Set the SO_MARK of {@code socketfd} to {@code mark}
|
||||
*/
|
||||
public native static void markSocket(int socketfd, int mark);
|
||||
|
||||
/**
|
||||
* Convert a IPv4 address from an integer to an InetAddress.
|
||||
* @param hostAddress an int corresponding to the IPv4 address in network byte order
|
||||
|
|
|
|||
Loading…
Reference in a new issue