*** UNIX MANUAL PAGE BROWSER ***

A Nergahak database for man pages research.

Navigation

Directory Browser

1Browse 4.4BSD4.4BSD
1Browse Digital UNIXDigital UNIX 4.0e
1Browse FreeBSDFreeBSD 14.3
1Browse MINIXMINIX 3.4.0rc6-d5e4fc0
1Browse NetBSDNetBSD 10.1
1Browse OpenBSDOpenBSD 7.7
1Browse UNIX v7Version 7 UNIX
1Browse UNIX v10Version 10 UNIX

Manual Page Search

Manual Page Result

0 Command: ether_gen_addr | Section: 9 | Source: FreeBSD | File: ether_gen_addr.9.gz
ETHER_GEN_ADDR(9) FreeBSD Kernel Developer's Manual ETHER_GEN_ADDR(9) NAME ether_gen_addr - generate an arbitrary MAC address for use SYNOPSIS #include <sys/types.h> #include <sys/socket.h> #include <net/if.h> #include <net/if_var.h> #include <net/ethernet.h> void ether_gen_addr(struct ifnet *ifp, struct ether_addr *hwaddr); DESCRIPTION The ether_gen_addr() function generates an arbitrary MAC address for use by an ethernet interface that does not have an assigned address. By default, ether_gen_addr attempts to generate a stable MAC address using the hostid of the jail that the ifp is being added to. During early boot, the hostid may not be set on machines that haven't yet populated /etc/hostid, or on machines that do not use loader(8). ether_gen_addr can fail to derive a MAC address due to memory allocation failure, or because the hostid has not been populated. In these cases, a locally-administered unicast MAC address will be randomly generated and returned via the hwaddr parameter. If ether_gen_addr succeeds, then it will return a MAC address in the FreeBSD Foundation OUI, "58:9c:fc", via the hwaddr parameter. AUTHORS This manual page was written by Kyle Evans <[email protected]>. FreeBSD 14.1-RELEASE-p8 June 1, 2021 FreeBSD 14.1-RELEASE-p8

Navigation Options