]> git.ipfire.org Git - thirdparty/bird.git/blobdiff - lib/flowspec.h
Filter: Add support for src/dst accessors for Flowspec and SADR
[thirdparty/bird.git] / lib / flowspec.h
index d486cda020ba0c91c9ceb99d647ef9674b52e67a..9bafc52efb97331ca5ef91cfa9f5be78d26a8fdc 100644 (file)
@@ -83,6 +83,8 @@ const byte *flow4_first_part(const net_addr_flow4 *f);
 const byte *flow6_first_part(const net_addr_flow6 *f);
 const byte *flow4_next_part(const byte *pos, const byte *end);
 const byte *flow6_next_part(const byte *pos, const byte *end);
+const byte *flow4_get_part(const net_addr_flow4 *f, uint type);
+const byte *flow6_get_part(const net_addr_flow6 *f, uint type);
 
 
 /*
@@ -91,6 +93,7 @@ const byte *flow6_next_part(const byte *pos, const byte *end);
 
 ip4_addr flow_read_ip4_part(const byte *part);
 ip6_addr flow_read_ip6_part(const byte *part);
+static inline int flow_read_pxlen(const byte *part) { return part[1]; }
 
 
 /*