netlabel_calipso.h (a5e34490c3160e09814403d040765b0ae0003121) netlabel_calipso.h (e1ce69df7e6e8cbdca78ae831ecf435b12b4c168)
1/*
2 * NetLabel CALIPSO Support
3 *
4 * This file defines the CALIPSO functions for the NetLabel system. The
5 * NetLabel system manages static and dynamic label mappings for network
6 * protocols such as CIPSO and RIPSO.
7 *
8 * Authors: Paul Moore <paul@paul-moore.com>

--- 49 unchanged lines hidden (view full) ---

58 * the defined formats are shown below.
59 *
60 * Required attributes:
61 *
62 * NLBL_CALIPSO_A_MTYPE
63 *
64 * If using CALIPSO_MAP_PASS no additional attributes are required.
65 *
1/*
2 * NetLabel CALIPSO Support
3 *
4 * This file defines the CALIPSO functions for the NetLabel system. The
5 * NetLabel system manages static and dynamic label mappings for network
6 * protocols such as CIPSO and RIPSO.
7 *
8 * Authors: Paul Moore <paul@paul-moore.com>

--- 49 unchanged lines hidden (view full) ---

58 * the defined formats are shown below.
59 *
60 * Required attributes:
61 *
62 * NLBL_CALIPSO_A_MTYPE
63 *
64 * If using CALIPSO_MAP_PASS no additional attributes are required.
65 *
66 * o LISTALL:
67 * This message is sent by an application to list the valid DOIs on the
68 * system. When sent by an application there is no payload and the
69 * NLM_F_DUMP flag should be set. The kernel should respond with a series of
70 * the following messages.
71 *
72 * Required attributes:
73 *
74 * NLBL_CALIPSO_A_DOI
75 * NLBL_CALIPSO_A_MTYPE
76 *
66 */
67
68/* NetLabel CALIPSO commands */
69enum {
70 NLBL_CALIPSO_C_UNSPEC,
71 NLBL_CALIPSO_C_ADD,
72 NLBL_CALIPSO_C_REMOVE,
73 NLBL_CALIPSO_C_LIST,

--- 26 unchanged lines hidden (view full) ---

100}
101#endif
102
103int calipso_doi_add(struct calipso_doi *doi_def,
104 struct netlbl_audit *audit_info);
105void calipso_doi_free(struct calipso_doi *doi_def);
106struct calipso_doi *calipso_doi_getdef(u32 doi);
107void calipso_doi_putdef(struct calipso_doi *doi_def);
77 */
78
79/* NetLabel CALIPSO commands */
80enum {
81 NLBL_CALIPSO_C_UNSPEC,
82 NLBL_CALIPSO_C_ADD,
83 NLBL_CALIPSO_C_REMOVE,
84 NLBL_CALIPSO_C_LIST,

--- 26 unchanged lines hidden (view full) ---

111}
112#endif
113
114int calipso_doi_add(struct calipso_doi *doi_def,
115 struct netlbl_audit *audit_info);
116void calipso_doi_free(struct calipso_doi *doi_def);
117struct calipso_doi *calipso_doi_getdef(u32 doi);
118void calipso_doi_putdef(struct calipso_doi *doi_def);
119int calipso_doi_walk(u32 *skip_cnt,
120 int (*callback)(struct calipso_doi *doi_def, void *arg),
121 void *cb_arg);
108
109#endif
122
123#endif