The "sdl_family" field in a "struct sockaddr_dl" will be equal
to AF_LINK, not AF_DLI, as stated in the comment. Fix the comment. Reviewed by: wollman
This commit is contained in:
parent
270fe004b8
commit
33d0e2a76d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=57637
@ -60,7 +60,7 @@
|
||||
*/
|
||||
struct sockaddr_dl {
|
||||
u_char sdl_len; /* Total length of sockaddr */
|
||||
u_char sdl_family; /* AF_DLI */
|
||||
u_char sdl_family; /* AF_LINK */
|
||||
u_short sdl_index; /* if != 0, system given index for interface */
|
||||
u_char sdl_type; /* interface type */
|
||||
u_char sdl_nlen; /* interface name length, no trailing 0 reqd. */
|
||||
|
Loading…
Reference in New Issue
Block a user