+always_inline void
+gbp_classify_get_src_ip4_address (const ethernet_header_t * eh0,
+ const ip4_address_t ** ip4)
+{
+ const ip4_header_t *iph4;
+
+ iph4 = (ip4_header_t *) (eh0 + 1);
+ *ip4 = &iph4->src_address;
+}
+
+always_inline void
+gbp_classify_get_src_ip6_address (const ethernet_header_t * eh0,
+ const ip6_address_t ** ip6)
+{
+ const ip6_header_t *iph6;
+
+ iph6 = (ip6_header_t *) (eh0 + 1);
+ *ip6 = &iph6->src_address;
+}
+
+always_inline void
+gbp_classify_get_src_ip_address (const ethernet_header_t * eh0,
+ const ip4_address_t ** ip4,
+ const ip6_address_t ** ip6)