aboutsummaryrefslogtreecommitdiffstats
path: root/include/cutils
diff options
context:
space:
mode:
authorAshish Sharma <ashishsharma@google.com>2011-07-07 18:16:01 -0700
committerJP Abgrall <jpa@google.com>2011-08-10 12:23:25 -0700
commit60daf104a1bd54b97c7bf3d71d74b637a0507ee1 (patch)
tree802574ab8dc59bce3d60cb9696bfc7389da56f2b /include/cutils
parent810cf41b6d5b772846bbb16700f8c69f03710e60 (diff)
downloadsystem_core-60daf104a1bd54b97c7bf3d71d74b637a0507ee1.tar.gz
system_core-60daf104a1bd54b97c7bf3d71d74b637a0507ee1.tar.bz2
system_core-60daf104a1bd54b97c7bf3d71d74b637a0507ee1.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 00000000..dd2db522
--- /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 */