# otBorderRoutingPrefixTableEntry Struct Reference

# otBorderRoutingPrefixTableEntry


`#include <openthread/border_routing.h>`

Represents an entry from the discovered prefix table.

## Summary

The entries in the discovered table track the Prefix/Route Info Options in the received Router Advertisement messages from other routers on the infrastructure link.

| ### Public attributes ||
|---|---|
| `https://openthread.io/reference/struct/ot-border-routing-prefix-table-entry#structot_border_routing_prefix_table_entry_1aca319234703e49edbc4b53bb7ea68dfb` | `bool` Indicates whether the prefix is on-link or route prefix. |
| `https://openthread.io/reference/struct/ot-border-routing-prefix-table-entry#structot_border_routing_prefix_table_entry_1ac5948eccaefb980e0946e14a6aca6823` | `uint32_t` Milliseconds since last update of this prefix. |
| `https://openthread.io/reference/struct/ot-border-routing-prefix-table-entry#structot_border_routing_prefix_table_entry_1a80bf0ccf7e0cef8b085112cb844288f2` | `uint32_t` Preferred lifetime of the on-link prefix when `mIsOnLink`. |
| `https://openthread.io/reference/struct/ot-border-routing-prefix-table-entry#structot_border_routing_prefix_table_entry_1acb0d15985753d7c69f6d88c1250631f2` | `https://openthread.io/reference/struct/ot-ip6-prefix` The discovered IPv6 prefix. |
| `https://openthread.io/reference/struct/ot-border-routing-prefix-table-entry#structot_border_routing_prefix_table_entry_1a5f7b88488b107ba7265428f8711ee803` | `https://openthread.io/reference/group/api-thread-general#group__api-thread-general_1ga6085e64b90c7645b8d206edad0b14e1c` Route preference when `mIsOnlink` is false. |
| `https://openthread.io/reference/struct/ot-border-routing-prefix-table-entry#structot_border_routing_prefix_table_entry_1a25f1b70cfecaf17eadc915920e096e7e` | `https://openthread.io/reference/struct/ot-border-routing-router-entry` Information about the router advertising this prefix. |
| `https://openthread.io/reference/struct/ot-border-routing-prefix-table-entry#structot_border_routing_prefix_table_entry_1a6648014339089f2d8efe8df4855da513` | `uint32_t` Valid lifetime of the prefix (in seconds). |

## Public attributes

### mIsOnLink

```
bool otBorderRoutingPrefixTableEntry::mIsOnLink
```
Indicates whether the prefix is on-link or route prefix.

### mMsecSinceLastUpdate

```
uint32_t otBorderRoutingPrefixTableEntry::mMsecSinceLastUpdate
```
Milliseconds since last update of this prefix.

### mPreferredLifetime

```
uint32_t otBorderRoutingPrefixTableEntry::mPreferredLifetime
```
Preferred lifetime of the on-link prefix when `mIsOnLink`.

### mPrefix

```
otIp6Prefix otBorderRoutingPrefixTableEntry::mPrefix
```
The discovered IPv6 prefix.

### mRoutePreference

```
otRoutePreference otBorderRoutingPrefixTableEntry::mRoutePreference
```
Route preference when `mIsOnlink` is false.

### mRouter

```
otBorderRoutingRouterEntry otBorderRoutingPrefixTableEntry::mRouter
```
Information about the router advertising this prefix.

### mValidLifetime

```
uint32_t otBorderRoutingPrefixTableEntry::mValidLifetime
```
Valid lifetime of the prefix (in seconds).

## 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).