Skip to content
This repository was archived by the owner on Jan 19, 2023. It is now read-only.
This repository was archived by the owner on Jan 19, 2023. It is now read-only.

How to include ebpf_xdp.h #129

@MarcusWichelmann

Description

@MarcusWichelmann

When compiling a .p4 file as described in the readme, clang cannot find the ebpf_xdp.h header:

/tmp/xdp1.h:6:10: fatal error: 'ebpf_xdp.h' file not found

The header file is included in this repository and says

This file contains all functions and definitions necessary for the xdp target C code to compile. It must be included with any file generated by the p4c-xdp compiler.

But how am I supposed to include it? Of course, I could hack this together somehow, but I'm wondering what is the correct way you intended for this. 😄 Maybe the Readme needs an update?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions