randolf.ca  1.00
Randolf Richardson's C++ classes
Loading...
Searching...
No Matches
sockaddr_dl Struct Reference

Structure of a Link-Level sockaddr. More...

#include <sockaddr_dl.h>

+ Collaboration diagram for sockaddr_dl:

Public Attributes

u_char sdl_alen
 Link level address length.
 
char sdl_data [46]
 Minimum work area, can be larger; contains both if name and ll address.
 
u_char sdl_family
 Always AF_LINK.
 
u_short sdl_index
 If != 0, system given index for interface.
 
u_char sdl_len
 Total length of sockaddr structure.
 
u_char sdl_nlen
 Interface name length (no trailing 0 required).
 
u_char sdl_slen
 Link layer selector length.
 
u_char sdl_type
 Interface type.
 

Detailed Description

Structure of a Link-Level sockaddr.

Note
This is conditionally included, with the condition being that it hasn't already been defined elsewhere. This is normally part of sys/socket.h on older systems, but isn't always included on some newer systems, so it's provided here for completeness.

Member Data Documentation

◆ sdl_len

u_char sockaddr_dl::sdl_len

Total length of sockaddr structure.

◆ sdl_family

u_char sockaddr_dl::sdl_family

Always AF_LINK.

◆ sdl_index

u_short sockaddr_dl::sdl_index

If != 0, system given index for interface.

◆ sdl_type

u_char sockaddr_dl::sdl_type

Interface type.

◆ sdl_nlen

u_char sockaddr_dl::sdl_nlen

Interface name length (no trailing 0 required).

◆ sdl_alen

u_char sockaddr_dl::sdl_alen

Link level address length.

◆ sdl_slen

u_char sockaddr_dl::sdl_slen

Link layer selector length.

◆ sdl_data

char sockaddr_dl::sdl_data[46]

Minimum work area, can be larger; contains both if name and ll address.


The documentation for this struct was generated from the following file: