summaryrefslogtreecommitdiffstats
path: root/include/cutils
diff options
context:
space:
mode:
authorAshish Sharma <ashishsharma@google.com>2011-07-07 18:16:01 -0700
committerAshish Sharma <ashishsharma@google.com>2011-07-08 19:17:03 -0700
commit8626cce5f381899f47e3a82e2ef4c98f183391b0 (patch)
tree0bc496f24d0afebf55f1d88b7a1891e6632186bc /include/cutils
parent6b06f9f48dde2802218cade3fdb12a4fed5f46f6 (diff)
downloadcore-8626cce5f381899f47e3a82e2ef4c98f183391b0.tar.gz
core-8626cce5f381899f47e3a82e2ef4c98f183391b0.tar.bz2
core-8626cce5f381899f47e3a82e2ef4c98f183391b0.zip
Add communication support for xt_qtaguid(network traffic accounting) kernel module.
Change-Id: Ie0fb5b593987c53ee6f906fe6e0caab5a581d5a1
Diffstat (limited to 'include/cutils')
-rw-r--r--include/cutils/qtaguid.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/include/cutils/qtaguid.h b/include/cutils/qtaguid.h
new file mode 100644
index 000000000..dd2db5224
--- /dev/null
+++ b/include/cutils/qtaguid.h
@@ -0,0 +1,36 @@
+/*
+ * Copyright (C) 2011 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef __CUTILS_QTAGUID_H
+#define __CUTILS_QTAGUID_H
+
+#include <stdint.h>
+#include <sys/types.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/*
+ * Set tags (and owning UIDs) for network sockets.
+*/
+extern int set_qtaguid(int sockfd, int tag, uid_t uid);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* __CUTILS_QTAG_UID_H */