Home | History | Annotate | Download | only in libsa
History log of /src/sys/lib/libsa/netif.c
RevisionDateAuthorComments
 1.27  14-Sep-2023  rin netif_open: Fail with ENXIO instead of panic if no netif available

Avoid undesirable freeze for efiboot/x86 when interfaces are really
unavailable, or fail to be configured by buggy UEFI firmware.
 1.26  31-Mar-2019  christos branches: 1.26.30;
fix warnings, printf formats, etc.
 1.25  20-Oct-2013  christos branches: 1.25.30;
remove unused
 1.24  17-Jan-2009  tsutsui branches: 1.24.14; 1.24.24; 1.24.28;
Remove __P().
 1.23  12-Jan-2009  tsutsui Replace time_t values in libsa sources with the following two types
to avoid unnecessary 64 bit ops which would make binaries larger:

satime_t (currently unsigned int):
numbers in seconds returned by the machine dependent getsecs() function
which are used to measure relative time

saseconds_t (currently int):
numbers in seconds used to specify timeout to network drivers

Per discussion on current-users.
 1.22  25-Mar-2008  christos branches: 1.22.4; 1.22.12;
- use mem* instead of b* routines, and kill the b* routines.
- use the mem* routines from libc.
XXX: There will be some lossage, but I am fixing it.
 1.21  24-Nov-2007  isaki branches: 1.21.14;
style, indent, and ANSI-fy.
 1.20  11-Dec-2005  christos branches: 1.20.44; 1.20.46; 1.20.52;
merge ktrace-lwp.
 1.19  26-Feb-2005  perry branches: 1.19.4;
nuke trailing whitespace
 1.18  12-Mar-2003  drochner branches: 1.18.2; 1.18.10; 1.18.12;
separate the netif interface from the rest of the networking code,
so that it can be replaced easily in md code
 1.17  27-Sep-2002  provos remove trailing \n in panic(). approved perry.
 1.16  15-Nov-2001  lukem don't need <sys/types.h> when including <sys/param.h>
 1.15  30-Mar-2000  augustss branches: 1.15.6; 1.15.8;
Kill some more register declarations.
 1.14  13-Nov-1999  thorpej Backout my libsa changes.
 1.13  11-Nov-1999  thorpej Update for the improvements to libsa, and don't reference libkern.h.
 1.12  31-Mar-1999  cgd branches: 1.12.8; 1.12.10; 1.12.14;
Make a bunch of backward-compatible changes to the boot blocks which allow
size to be reduced substantially. (backward compatibility verified
by compiling one of the alpha boot blocks which uses all of the code
before and after, diffing the object files, and manually verifying that
the differences were 'correct'. some differences were "unavoidable,"
it wanting to avoid a double-commit, because e.g. local variables which
were previously used were no longer used.) a README which describes
supported options (or at least the ones mentioned below) is forthcoming.

add support for the preprocessor macro LIBSA_NO_TWIDDLE, which
causes calls to twiddle() to be omitted if it's defined.
add support for the preprocessor macros:
LIBSA_NO_FS_CLOSE
LIBSA_NO_FS_WRITE
LIBSA_NO_FS_SEEK
which, if defined, cause the corresponding file system operations
in the individual file system implementations to be omitted. (note
that all of those macros are not supported by all file systems at
this point. comments were added to individual file system files
to indicate lack of support, and should be cleaned up later. Backward
compatibility options e.g. UFS_NOCLOSE, etc., are supported.)
add support for the preprocessor macro LIBSA_NO_FS_SYMLINK, which
removes support for symbolic links from the file system support
functions. (same notes as for the macros above apply.)
add support for the preprocessor macro LIBSA_FS_SINGLECOMPONENT which
removes all subdirectory and symlink support from the file system
support functions. (same notes as for the macros above apply.)
add support for the preprocessor macro LIBSA_NO_FD_CHECKING, which
causes code relating to libsa file descriptor checks (e.g. range
checking and checking that a file descriptor is valid) to be
omitted if it's defined.
add support for the preprocessor macro LIBSA_NO_RAW_ACCESS, which
causes code relating to raw device access to be omitted if it's
defined.
change some structure copies to use bcopy() instead. that way
use of bcopy vs. memcpy() can easily be selected by
LIBSA_USE_MEMCPY. (without changes like these, you could end up
having both bcopy() and memcpy() included. eventually, all
calls to bcopy should be changed to calls to memcpy() or memmove()
as appropriate -- hopefully never the latter -- with an option to
use bcopy instead.)
add support for the preprocessor macro LIBSA_NO_DISKLABEL_MSGS, which
causes disklabel() to return '1' as msg rather than a string. Can
be used if the boot blocks don't care about the string, and need to
save the space.
add support for the preprocessor macro LIBSA_SINGLE_FILESYSTEM, which
if defined causes all of the file system switch code to be removed.
Its value should be the name of the file system supported by the
boot block, e.g. "ufs" for the FFS file system. calls to the
file system functions open, close, etc., which were previously
done through a function switch are then done via direct invocation
of <fs>_open, <fs>_close, etc. (e.g. ufs_open, ...).
add support for the preprocessor macro LIBSA_SINGLE_DEVICE, which
does the equivalent of LIBSA_SINGLE_FILESYSTEM but for the device
switch table. Device entry pointes are expected to be named
<dev>foo, e.g. the 'strategy' routine used when LIBSA_SINGLE_DEVICE
is set to 'disk' is diskstrategy.
make ufs.c f_nindir array be unsigned ints. the fact that it was signed
caused ufs.c to require signed division routines (which were otherwise
unnecessary for a small boot block).
 1.11  11-Feb-1999  pk Add missing prototypes.
 1.10  06-Sep-1997  drochner -Wall fixes
 1.9  26-Jun-1997  drochner branches: 1.9.4;
Avoid user space headers for standalone programs.
Don't use sys/lib/libkern or sys/lib/libz if not standalone
(ie, user space test programs).
 1.8  13-Jun-1997  drochner -Wall fixes
 1.7  13-Oct-1996  christos backout previous kprintf changes
 1.6  10-Oct-1996  christos printf -> kprintf, sprintf -> ksprintf
 1.5  18-Sep-1995  pk Another round of clean up, including fixes presented by Matthias Drochner
(PR#1404). Things to be noted:
- all IP addresses are now `struct in_addr's.
- the function rarp_getipaddress() no longer return `myip'; in stead
it returns -1 on failure (errno set), 0 on success. `myip' is set
as a size-effect.
 1.4  14-Sep-1995  pk Clear up some size_t/ssize_t confusion.
 1.3  20-Feb-1995  mycroft Define netif_debug in here.
 1.2  26-Oct-1994  cgd new RCS ID format.
 1.1  08-May-1994  brezak Standalone networking for network boot loaders.
 1.9.4.1  06-Sep-1997  thorpej Update marc-pcmcia branch from trunk.
 1.12.14.1  27-Dec-1999  wrstuden Pull up to last week's -current.
 1.12.10.1  15-Nov-1999  fvdl Sync with -current
 1.12.8.1  20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
 1.15.8.2  10-Oct-2002  jdolecek sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
 1.15.8.1  10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.15.6.2  18-Oct-2002  nathanw Catch up to -current.
 1.15.6.1  08-Jan-2002  nathanw Catch up to -current.
 1.18.12.1  19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.18.10.1  29-Apr-2005  kent sync with -current
 1.18.2.1  04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.19.4.1  07-Dec-2007  yamt sync with head
 1.20.52.1  08-Dec-2007  mjf Sync with HEAD.
 1.20.46.1  09-Jan-2008  matt sync with HEAD
 1.20.44.1  27-Nov-2007  joerg Sync with HEAD. amd64 Xen support needs testing.
 1.21.14.2  17-Jan-2009  mjf Sync with HEAD.
 1.21.14.1  03-Apr-2008  mjf Sync with HEAD.
 1.22.12.1  19-Jan-2009  skrll Sync with HEAD.
 1.22.4.1  04-May-2009  yamt sync with head.
 1.24.28.1  18-May-2014  rmind sync with head
 1.24.24.1  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.24.14.1  22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.25.30.1  10-Jun-2019  christos Sync with HEAD
 1.26.30.1  21-Jun-2024  martin Pull up following revision(s) (requested by rin in ticket #716):

sys/lib/libsa/netif.c: revision 1.27

netif_open: Fail with ENXIO instead of panic if no netif available

Avoid undesirable freeze for efiboot/x86 when interfaces are really
unavailable, or fail to be configured by buggy UEFI firmware.

RSS XML Feed