Retro Rocket Kernel
BASIC-Powered Operating System
net_address 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...

+ Collaboration diagram for net_address:

Public Attributes

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.

Member Data Documentation

◆ bytes

uint8_t* net_address::bytes

◆ length

uint8_t net_address::length

◆ name

char net_address::name[16]