summaryrefslogtreecommitdiff
path: root/common/netlinkclient/src
diff options
context:
space:
mode:
authorLorenzo Colitti <lorenzo@google.com>2020-04-20 12:11:04 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2020-04-20 12:11:04 +0000
commit1e420c1d396636a9de6edc3d0c6c31c352f501dc (patch)
tree9ca1612c9d7b8e56c5d295ebb0e0a1ab0e7be79b /common/netlinkclient/src
parente2509d6f9de70930b2469943e5b090c0e1d8fb4e (diff)
parent3a0519aa5578d87dc62fd0645a5c58d36b6dcb6f (diff)
Merge "Listen for pref64 RA attributes in IpClientLinkObserver." into rvc-dev
Diffstat (limited to 'common/netlinkclient/src')
-rw-r--r--common/netlinkclient/src/android/net/netlink/NetlinkConstants.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/netlinkclient/src/android/net/netlink/NetlinkConstants.java b/common/netlinkclient/src/android/net/netlink/NetlinkConstants.java
index b8fd4b1..9db09c4 100644
--- a/common/netlinkclient/src/android/net/netlink/NetlinkConstants.java
+++ b/common/netlinkclient/src/android/net/netlink/NetlinkConstants.java
@@ -106,6 +106,10 @@ public class NetlinkConstants {
/* see &lt;linux_src&gt;/include/uapi/linux/sock_diag.h */
public static final short SOCK_DIAG_BY_FAMILY = 20;
+ // Netlink groups.
+ public static final int RTNLGRP_ND_USEROPT = 20;
+ public static final int RTMGRP_ND_USEROPT = 1 << (RTNLGRP_ND_USEROPT - 1);
+
public static String stringForNlMsgType(short nlm_type) {
switch (nlm_type) {
case NLMSG_NOOP: return "NLMSG_NOOP";