summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/sys/tsol/label.h
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/uts/common/sys/tsol/label.h')
-rw-r--r--usr/src/uts/common/sys/tsol/label.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/usr/src/uts/common/sys/tsol/label.h b/usr/src/uts/common/sys/tsol/label.h
index d048315ac1..5845c92dc4 100644
--- a/usr/src/uts/common/sys/tsol/label.h
+++ b/usr/src/uts/common/sys/tsol/label.h
@@ -103,7 +103,21 @@ typedef struct ts_label_s {
#define DEFAULT_DOI 1
-#define TSLF_UNLABELED 0x00000001 /* peer is unlabeled */
+/*
+ * TSLF_UNLABELED is set in tsl_flags for packets with no explicit label
+ * when the peer is unlabeled.
+ *
+ * TSLF_IMPLICIT_IN is set when a packet is received with no explicit label
+ * from a peer which is flagged in the tnrhdb as label-aware.
+ *
+ * TSLF_IMPLICIT_OUT is set when the packet should be sent without an
+ * explict label even if the peer or next-hop router is flagged in the
+ * tnrhdb as label-aware.
+ */
+
+#define TSLF_UNLABELED 0x00000001 /* peer is unlabeled */
+#define TSLF_IMPLICIT_IN 0x00000002 /* inbound implicit */
+#define TSLF_IMPLICIT_OUT 0x00000004 /* outbound implicit */
#define CR_SL(cr) (label2bslabel(crgetlabel(cr)))