Skip to content

Latest commit

 

History

History
46 lines (30 loc) · 1.56 KB

bpf_skb_vlan_pop.md

File metadata and controls

46 lines (30 loc) · 1.56 KB
title description
Helper Function 'bpf_skb_vlan_pop'
This page documents the 'bpf_skb_vlan_pop' eBPF helper function, including its defintion, usage, program types that can use it, and examples.

Helper function bpf_skb_vlan_pop

:octicons-tag-24: v4.3

Definition

Copyright (c) 2015 The Libbpf Authors. All rights reserved.

Pop a VLAN header from the packet associated to skb.

A call to this helper is susceptible to change the underlying packet buffer. Therefore, at load time, all checks on pointers previously done by the verifier are invalidated and must be performed again, if the helper is used in combination with direct packet access.

Returns

0 on success, or a negative error in case of failure.

#!c static long (* const bpf_skb_vlan_pop)(struct __sk_buff *skb) = (void *) 19;

Usage

!!! example "Docs could be improved" This part of the docs is incomplete, contributions are very welcome

Program types

This helper call can be used in the following program types:

Example

!!! example "Docs could be improved" This part of the docs is incomplete, contributions are very welcome