#include "stream.h"
#include "prefix.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#define PBR_STR "Policy Based Routing\n"
/*
uint32_t unique;
struct pbr_filter filter;
struct pbr_action action;
- uint32_t ifindex;
+ ifindex_t ifindex;
};
/* TCP flags value shared
#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 */