Retro Rocket Kernel BASIC-Powered Operating System

Data Fields
net_address_t Struct Reference

Represents an address that is bound to a protocol on an interface. This is kept as flexible as possible, to represent potentially different protocol's forms of addresses, e.g. IPv4, IPv6, IPX, Econet etc. The length indicates the number of bytes in the address, and the bytes field contains the actual address in host byte order. For example in IPv4, length would be 4 and bytes would essentially point at a uint32_t. The name is purely a human readable label for use in commands. The label might be 'ip.address', 'ip.gateway' etc. More...

`#include <net.h>`

Collaboration diagram for net_address_t:
[legend]

## Data Fields
char | name [16]
uint8_t | length
uint8_t * | bytes

## Detailed Description

Represents an address that is bound to a protocol on an interface. This is kept as flexible as possible, to represent potentially different protocol's forms of addresses, e.g. IPv4, IPv6, IPX, Econet etc. The length indicates the number of bytes in the address, and the bytes field contains the actual address in host byte order. For example in IPv4, length would be 4 and bytes would essentially point at a uint32_t. The name is purely a human readable label for use in commands. The label might be 'ip.address', 'ip.gateway' etc.

## Field Documentation

## ◆ bytes

uint8_t* net_address_t::bytes

## ◆ length

uint8_t net_address_t::length

## ◆ name

char net_address_t::name[16]