struct te_xdp_frame

Overview

Structure describing an Ethernet frame for XDP programs More…

#include <te_bpf_helpers.h>

struct te_xdp_frame {
    // fields

    __u8* start;
    __u8*const end;
    __u8* l2_hdr;
    __u32 l2_type;
    __u8* l3_hdr;
    __u32 l3_type;
    __u8* end_parsed;
};

Detailed Documentation

Structure describing an Ethernet frame for XDP programs

Fields

__u8* start

Start of the frame

__u8*const end

End of the frame

__u8* l2_hdr

Pointer to level 2 header

__u32 l2_type

Type of level 2 header

__u8* l3_hdr

Pointer to level 3 header

__u32 l3_type

Type of level 3 header

__u8* end_parsed

Pointer to the first byte after parsed headers