randolf.ca  1.00
Randolf Richardson's C++ classes
Loading...
Searching...
No Matches
sockaddr_dl.h
1#pragma once
2
3#ifndef _NET_IF_DL_H_
4#define _NET_IF_DL_H_
5/*======================================================================*/
14//=========================================================================
17 u_char sdl_len; // Total length of sockaddr structure
19 u_char sdl_family; // Always AF_LINK
21 u_short sdl_index; // If != 0, system given index for interface
23 u_char sdl_type; // Interface type
25 u_char sdl_nlen; // Interface name length (no trailing 0 required)
27 u_char sdl_alen; // Link level address length
29 u_char sdl_slen; // Link layer selector length
31 char sdl_data[46]; // Minimum work area, can be larger; contains both if name and ll address
32}; // -x- struct sockaddr_dl -x-
33#endif
Structure of a Link-Level sockaddr.
Definition sockaddr_dl.h:15
u_char sdl_len
Total length of sockaddr structure.
Definition sockaddr_dl.h:17
u_char sdl_family
Always AF_LINK.
Definition sockaddr_dl.h:19
u_short sdl_index
If != 0, system given index for interface.
Definition sockaddr_dl.h:21
u_char sdl_type
Interface type.
Definition sockaddr_dl.h:23
u_char sdl_slen
Link layer selector length.
Definition sockaddr_dl.h:29
char sdl_data[46]
Minimum work area, can be larger; contains both if name and ll address.
Definition sockaddr_dl.h:31
u_char sdl_alen
Link level address length.
Definition sockaddr_dl.h:27
u_char sdl_nlen
Interface name length (no trailing 0 required).
Definition sockaddr_dl.h:25