extern structstd.os.linux.bpf.LinkUpdateAttr[src]

struct used by Cmd.link_update command

Fields

link_fd: fd_t
new_prog_fd: fd_t

new program to update link with

flags: u32

extra flags

old_prog_fd: fd_t

expected link's program fd, it is specified only if BPF_F_REPLACE is set in flags

Source Code

Source code
pub const LinkUpdateAttr = extern struct {
    link_fd: fd_t,

    /// new program to update link with
    new_prog_fd: fd_t,

    /// extra flags
    flags: u32,

    /// expected link's program fd, it is specified only if BPF_F_REPLACE is
    /// set in flags
    old_prog_fd: fd_t,
}