]> git.proxmox.com Git - mirror_frr.git/blobdiff - lib/pbr.h
Merge pull request #5778 from ton31337/fix/add_doc_for_ebgp_connected_route_check
[mirror_frr.git] / lib / pbr.h
index 5936851e4e17840e0df835b71f71e4747338833f..cf6ac41d326c7a091ef520741f5963c824412179 100644 (file)
--- a/lib/pbr.h
+++ b/lib/pbr.h
 #include "stream.h"
 #include "prefix.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #define PBR_STR "Policy Based Routing\n"
 
 /*
@@ -86,7 +90,7 @@ struct pbr_rule {
        uint32_t unique;
        struct pbr_filter filter;
        struct pbr_action action;
-       uint32_t ifindex;
+       ifindex_t ifindex;
 };
 
 /* TCP flags value shared
@@ -112,8 +116,18 @@ struct pbr_rule {
 #define MATCH_PORT_DST_SET             (1 << 3)
 #define MATCH_PORT_SRC_RANGE_SET       (1 << 4)
 #define MATCH_PORT_DST_RANGE_SET       (1 << 5)
+#define MATCH_DSCP_SET                 (1 << 6)
+#define MATCH_DSCP_INVERSE_SET         (1 << 7)
+#define MATCH_PKT_LEN_INVERSE_SET      (1 << 8)
+#define MATCH_FRAGMENT_INVERSE_SET     (1 << 9)
+#define MATCH_ICMP_SET                 (1 << 10)
+#define MATCH_PROTOCOL_SET             (1 << 11)
 
 extern int zapi_pbr_rule_encode(uint8_t cmd, struct stream *s,
                                struct pbr_rule *zrule);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* _PBR_H */