---
title: mbuf_clear_vlan_tag
framework: Kernel
role: symbol
role_heading: Function
platforms: [macOS 10.4+]
path: kernel/1535696-mbuf_clear_vlan_tag
---

# mbuf_clear_vlan_tag

## Declaration

```occ
errno_t mbuf_clear_vlan_tag(mbuf_t mbuf);
```

## Parameters

- `mbuf`: The mbuf containing the packet.

## Return Value

Return Value 0 upon success otherwise the errno error.

## Discussion

Discussion This function will clear any vlan tag associated with the mbuf.
