summaryrefslogtreecommitdiffstats
path: root/net/netlabel/netlabel_calipso.h
diff options
context:
space:
mode:
authorHuw Davies <huw@codeweavers.com>2016-06-27 21:02:48 +0200
committerPaul Moore <paul@paul-moore.com>2016-06-27 21:02:48 +0200
commite1ce69df7e6e8cbdca78ae831ecf435b12b4c168 (patch)
tree390601563496364614c223897c0ded59afbf6b8c /net/netlabel/netlabel_calipso.h
parentnetlabel: Add support for querying a CALIPSO DOI. (diff)
downloadlinux-e1ce69df7e6e8cbdca78ae831ecf435b12b4c168.tar.xz
linux-e1ce69df7e6e8cbdca78ae831ecf435b12b4c168.zip
netlabel: Add support for enumerating the CALIPSO DOI list.
Enumerate the DOI list through the NLBL_CALIPSO_C_LISTALL command. It takes no attributes. Signed-off-by: Huw Davies <huw@codeweavers.com> Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'net/netlabel/netlabel_calipso.h')
-rw-r--r--net/netlabel/netlabel_calipso.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/net/netlabel/netlabel_calipso.h b/net/netlabel/netlabel_calipso.h
index 6da737a9f37a..1f24174466e4 100644
--- a/net/netlabel/netlabel_calipso.h
+++ b/net/netlabel/netlabel_calipso.h
@@ -63,6 +63,17 @@
*
* If using CALIPSO_MAP_PASS no additional attributes are required.
*
+ * o LISTALL:
+ * This message is sent by an application to list the valid DOIs on the
+ * system. When sent by an application there is no payload and the
+ * NLM_F_DUMP flag should be set. The kernel should respond with a series of
+ * the following messages.
+ *
+ * Required attributes:
+ *
+ * NLBL_CALIPSO_A_DOI
+ * NLBL_CALIPSO_A_MTYPE
+ *
*/
/* NetLabel CALIPSO commands */
@@ -105,5 +116,8 @@ int calipso_doi_add(struct calipso_doi *doi_def,
void calipso_doi_free(struct calipso_doi *doi_def);
struct calipso_doi *calipso_doi_getdef(u32 doi);
void calipso_doi_putdef(struct calipso_doi *doi_def);
+int calipso_doi_walk(u32 *skip_cnt,
+ int (*callback)(struct calipso_doi *doi_def, void *arg),
+ void *cb_arg);
#endif