# otThreadVendorOui


`#include <openthread/netdiag.h>`

Represents a Thread Vendor OUI (Organizationally Unique Identifier) which can have different lengths.

## Summary

A Vendor OUI can be assigned in one of the following formats:


- 24-bit Prefix (MA-L): Exactly 3 bytes (24 bits). Example: `00-1A-2B` is represented with `mBitLength = 24` and `mBytes = [0x00, 0x1A, 0x2B, 0x00, 0x00]`.
- 28-bit Prefix (MA-M): Exactly 3.5 bytes (28 bits). The half-byte (4 bits) at the end of the prefix occupies the Most Significant Nibble of the 4th byte. The Least Significant Nibble of the 4th byte is set to zero. Example: `00-1A-2B-3` is represented with `mBitLength = 28` and `mBytes = [0x00, 0x1A, 0x2B, 0x30, 0x00]`.
- 36-bit Prefix (MA-S): Exactly 4.5 bytes (36 bits). The half-byte (4 bits) at the end of the prefix occupies the Most Significant Nibble of the 5th byte. The Least Significant Nibble of the 5th byte is set to zero. Example: `00-1A-2B-3C-4` is represented with `mBitLength = 36` and `mBytes = [0x00, 0x1A, 0x2B, 0x3C, 0x40]`.

<br />

| ### Public attributes ||
|---|---|
| `https://openthread.io/reference/struct/ot-thread-vendor-oui#structot_thread_vendor_oui_1aa0d37880613b41f811d3f2f7e23a0334` | `uint8_t` The OUI prefix length in bits (24, 28, or 36). |
| `https://openthread.io/reference/struct/ot-thread-vendor-oui#structot_thread_vendor_oui_1a1d944050d7da40e6084f1a9438c53f9a[5]` | `uint8_t` The OUI bytes in big-endian order. |

## Public attributes

### mBitLength

```
uint8_t otThreadVendorOui::mBitLength
```
The OUI prefix length in bits (24, 28, or 36).

### mBytes

```
uint8_t otThreadVendorOui::mBytes[5]
```
The OUI bytes in big-endian order.

## Resources

OpenThread API Reference topics originate from the source code, available
on [GitHub](https://github.com/openthread/openthread/tree/main/include/openthread).
For more information, or to contribute to our documentation, refer to
[Resources](https://openthread.io/resources).