Skip to content

Commit

Permalink
include/gatekeeper_net.h: properly delay definition of struct gatekee…
Browse files Browse the repository at this point in the history
…per_if

The header include/gatekeeper_net.h was delaying the definition of
struct gatekeeper_if with the line:

struct gatekeeper_if *iface;

Instead of having the line:

struct gatekeeper_if;

The newer GCC available on Ubuntu 22.04 caught the issue.
  • Loading branch information
AltraMayor committed Jun 10, 2024
1 parent 8e13d4d commit f4353b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/gatekeeper_net.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ enum {
* Need forward declaration because acl_cb_func and struct gatekeeper_if
* are circularly defined.
*/
struct gatekeeper_if *iface;
struct gatekeeper_if;
typedef int (*acl_cb_func)(struct rte_mbuf **pkts, unsigned int num_pkts,
struct gatekeeper_if *iface);
/* Format of function called when no rule matches in the IPv6 ACL. */
Expand Down

0 comments on commit f4353b4

Please sign in to comment.