diff options
Diffstat (limited to 'net/netlabel/netlabel_mgmt.h')
-rw-r--r-- | net/netlabel/netlabel_mgmt.h | 27 |
1 files changed, 22 insertions, 5 deletions
diff --git a/net/netlabel/netlabel_mgmt.h b/net/netlabel/netlabel_mgmt.h index 8b6e1ab62b48..ea01e42bca78 100644 --- a/net/netlabel/netlabel_mgmt.h +++ b/net/netlabel/netlabel_mgmt.h | |||
@@ -58,7 +58,10 @@ | |||
58 | * | 58 | * |
59 | * NLBL_MGMT_A_CV4DOI | 59 | * NLBL_MGMT_A_CV4DOI |
60 | * | 60 | * |
61 | * If using NETLBL_NLTYPE_UNLABELED no other attributes are required. | 61 | * If using NETLBL_NLTYPE_UNLABELED no other attributes are required, |
62 | * however the following attribute may optionally be sent: | ||
63 | * | ||
64 | * NLBL_MGMT_A_FAMILY | ||
62 | * | 65 | * |
63 | * o REMOVE: | 66 | * o REMOVE: |
64 | * Sent by an application to remove a domain mapping from the NetLabel | 67 | * Sent by an application to remove a domain mapping from the NetLabel |
@@ -77,6 +80,7 @@ | |||
77 | * Required attributes: | 80 | * Required attributes: |
78 | * | 81 | * |
79 | * NLBL_MGMT_A_DOMAIN | 82 | * NLBL_MGMT_A_DOMAIN |
83 | * NLBL_MGMT_A_FAMILY | ||
80 | * | 84 | * |
81 | * If the IP address selectors are not used the following attribute is | 85 | * If the IP address selectors are not used the following attribute is |
82 | * required: | 86 | * required: |
@@ -108,7 +112,10 @@ | |||
108 | * | 112 | * |
109 | * NLBL_MGMT_A_CV4DOI | 113 | * NLBL_MGMT_A_CV4DOI |
110 | * | 114 | * |
111 | * If using NETLBL_NLTYPE_UNLABELED no other attributes are required. | 115 | * If using NETLBL_NLTYPE_UNLABELED no other attributes are required, |
116 | * however the following attribute may optionally be sent: | ||
117 | * | ||
118 | * NLBL_MGMT_A_FAMILY | ||
112 | * | 119 | * |
113 | * o REMOVEDEF: | 120 | * o REMOVEDEF: |
114 | * Sent by an application to remove the default domain mapping from the | 121 | * Sent by an application to remove the default domain mapping from the |
@@ -117,13 +124,17 @@ | |||
117 | * o LISTDEF: | 124 | * o LISTDEF: |
118 | * This message can be sent either from an application or by the kernel in | 125 | * This message can be sent either from an application or by the kernel in |
119 | * response to an application generated LISTDEF message. When sent by an | 126 | * response to an application generated LISTDEF message. When sent by an |
120 | * application there is no payload. On success the kernel should send a | 127 | * application there may be an optional payload. |
121 | * response using the following format. | ||
122 | * | 128 | * |
123 | * If the IP address selectors are not used the following attribute is | 129 | * NLBL_MGMT_A_FAMILY |
130 | * | ||
131 | * On success the kernel should send a response using the following format: | ||
132 | * | ||
133 | * If the IP address selectors are not used the following attributes are | ||
124 | * required: | 134 | * required: |
125 | * | 135 | * |
126 | * NLBL_MGMT_A_PROTOCOL | 136 | * NLBL_MGMT_A_PROTOCOL |
137 | * NLBL_MGMT_A_FAMILY | ||
127 | * | 138 | * |
128 | * If the IP address selectors are used then the following attritbute is | 139 | * If the IP address selectors are used then the following attritbute is |
129 | * required: | 140 | * required: |
@@ -209,6 +220,12 @@ enum { | |||
209 | /* (NLA_NESTED) | 220 | /* (NLA_NESTED) |
210 | * the selector list, there must be at least one | 221 | * the selector list, there must be at least one |
211 | * NLBL_MGMT_A_ADDRSELECTOR attribute */ | 222 | * NLBL_MGMT_A_ADDRSELECTOR attribute */ |
223 | NLBL_MGMT_A_FAMILY, | ||
224 | /* (NLA_U16) | ||
225 | * The address family */ | ||
226 | NLBL_MGMT_A_CLPDOI, | ||
227 | /* (NLA_U32) | ||
228 | * the CALIPSO DOI value */ | ||
212 | __NLBL_MGMT_A_MAX, | 229 | __NLBL_MGMT_A_MAX, |
213 | }; | 230 | }; |
214 | #define NLBL_MGMT_A_MAX (__NLBL_MGMT_A_MAX - 1) | 231 | #define NLBL_MGMT_A_MAX (__NLBL_MGMT_A_MAX - 1) |