summaryrefslogtreecommitdiff
path: root/common/netlinkclient/src/android/net
diff options
context:
space:
mode:
authorChiachang Wang <chiachangwang@google.com>2019-11-26 15:39:22 +0800
committerChiachang Wang <chiachangwang@google.com>2019-11-26 16:18:41 +0800
commit4336b91fb41df54e6dcb855e4b30ab1f30dd3409 (patch)
treec6ebd056e1e117cb8d282bab9c8143e84760c144 /common/netlinkclient/src/android/net
parentdc24d1c740fb4350bce476ea3471212ea20c4cad (diff)
Follow up commit of aosp/1157146
Address follow up actions and comments Bug: 130325409 Test: NetworkStackTests NetworkStackNextTests Change-Id: Ic768f08e5e54667e375c0d486df278773d9c707a
Diffstat (limited to 'common/netlinkclient/src/android/net')
-rw-r--r--common/netlinkclient/src/android/net/netlink/NetlinkConstants.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/common/netlinkclient/src/android/net/netlink/NetlinkConstants.java b/common/netlinkclient/src/android/net/netlink/NetlinkConstants.java
index 181a361..b8fd4b1 100644
--- a/common/netlinkclient/src/android/net/netlink/NetlinkConstants.java
+++ b/common/netlinkclient/src/android/net/netlink/NetlinkConstants.java
@@ -35,6 +35,14 @@ public class NetlinkConstants {
private NetlinkConstants() {}
public static final int NLA_ALIGNTO = 4;
+ /**
+ * Flag for dumping struct tcp_info.
+ * Corresponding to enum definition in external/strace/linux/inet_diag.h.
+ */
+ public static final int INET_DIAG_MEMINFO = 1;
+
+ public static final int SOCKDIAG_MSG_HEADER_SIZE =
+ StructNlMsgHdr.STRUCT_SIZE + StructInetDiagMsg.STRUCT_SIZE;
public static final int alignedLengthOf(short length) {
final int intLength = (int) length & 0xffff;