Home | History | Annotate | Download | only in net
History log of /src/lib/libc/net/ethers.c
RevisionDateAuthorComments
 1.25  18-Sep-2014  christos make more descriptors that we open as close-on-exec
 1.24  19-Jun-2014  christos use fparseln() instead of fgetln() for consistency (this was the last fgetln()
using parser in net/.
cVS: ----------------------------------------------------------------------
 1.23  20-Mar-2012  matt branches: 1.23.2; 1.23.8;
Use C89 Prototypes.
Remove use of __P
 1.22  13-Mar-2012  christos PR/45989: Martin Husemann: lint invocation does include -w only on i386

- turn lint -w for all the platforms after fixing the lint warnings.
- add _DIAGASSERTS() for casts that would assign values to types that
would not fit.
- change types, add casts
- change into ansii prototypes
- turn on _DIAGNOSTIC for libc (during current, to be eliminated for release
builds)

approved by core@
 1.21  15-Oct-2006  martin branches: 1.21.42;
PR lib/34801 from David A. Holland: "static" comes first in declaration.
 1.20  16-Sep-2002  tron Use "const" for all input parameters of ethers(3) functions.
 1.19  04-Oct-2000  sommerfeld branches: 1.19.2;
Avoid run-time construction of format string we can build at compile time
 1.18  24-Apr-2000  itojun branches: 1.18.4;
add __RCSID().
 1.17  22-Jan-2000  mycroft Delint.
Remove trailing ; from uses of __weak_alias(). The macro inserts this if
needed.
 1.16  20-Sep-1999  lukem back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.
_DIAGASSERT() is still retained.
 1.15  16-Sep-1999  lukem * use _DIAGASSERT() to check pointer arguments against NULL and file
descriptors against -1 (as appropriate).
* add actual checks which to detect stuff that would trigger_DIAGASSERT(),
and attempt to return a sane error condition.
* knf some code
* remove some `register' decls.

the first two items result in the addition of code similar to the
following in various functions:

_DIAGASSERT(path != NULL)
#ifdef _DIAGNOSTIC
if (path == NULL) {
errno = EFAULT;
return (-1);
}
#endif
 1.14  13-Nov-1998  christos branches: 1.14.2;
delint
 1.13  26-Jul-1998  mycroft Move an output buffer into the BSS.
 1.12  12-Nov-1997  mjacob Fix compile problem.
 1.11  02-Nov-1997  lukem * fix ether_line to limit size of parsed hostname to MAXHOSTNAMELEN
* modify ether_aton, ether_hostton, and ether_line to take 'const char *'
arguments as appropriate
* document the above in ethers(3)
 1.10  21-Jul-1997  jtc branches: 1.10.2;
If port provides __weak_alias(), provide an Standard C and POSIX pure
identifier namespace by renaming non standard functions and variables
such that they have a leading underscore. The library will use those
names internally. Weak aliases are used to provide the original names
to the API.

This is only the first part of this change. It is most of the functions
which are implemented in C for all NetBSD ports. Subsequent changes are
to add the same support to the remaining C files, to assembly files, and
to the automagically generated assembly source used for system calls.
When all of the above is done, ports with weak alias support should add
a definition for __weak_alias to <sys/cdefs.h>.
 1.9  13-Jul-1997  christos Fix RCSID's
Fix gcc warnings
Add missing prototypes
Use "namespace.h"
 1.8  15-Mar-1997  is New ARP system, supports IPv4 over any hardware link.

Some of the stuff (e.g., rarpd, bootpd, dhcpd etc., libsa) still will
only support Ethernet. Tcpdump itself should be ok, but libpcap needs
lot of work.

For the detailed change history, look at the commit log entries for
the is-newarp branch.
 1.7  23-Jan-1997  mrg branches: 1.7.2;
- convert unsafe strcpy(), strcat() and sprintf() to the `n' versions.
- some KNF.
 1.6  17-Jan-1997  mikel explicitly type ether_{hostton,ntohost,line}(). all return int.
 1.5  25-Feb-1995  cgd branches: 1.5.4;
clean up import. also convert everything to new Id format.
 1.4  30-Dec-1993  deraadt "struct ether_addr" is in netinet/if_ether.h (as in SunOS)
 1.3  28-Dec-1993  jtc #include <stdlib.h> & <string.h> to bring function prototypes into scope.
 1.2  16-Dec-1993  deraadt small bug fixed
 1.1  16-Dec-1993  deraadt ethers(3) sunos-like support from Roland McGrath <roland@frob.com>
YP code fixed by myself (looked in wrong maps, didn't free things :-)
used by rarpd & friends.
 1.5.4.1  20-Sep-1996  jtc snapshot namespace cleanup: net, etc.
 1.7.2.1  11-Mar-1997  is Convert to new ARP.
 1.10.2.2  11-Nov-1997  mjacob fix compilation problem
 1.10.2.1  10-Nov-1997  thorpej Sync w/ trunk.
 1.14.2.2  13-Mar-2001  he Apply patch (requested by kristerw):
Correct error in pull-up to 1.4.3 which prevents rarpd
from working.
 1.14.2.1  19-Oct-2000  he Pull up revision 1.19 (via patch, requested by is):
Construct format string at compile time.
 1.18.4.1  19-Oct-2000  he Pull up revision 1.19 (requested by is):
Construct format string at compile-time.
 1.19.2.1  18-Oct-2002  nathanw Catch up to -current.
 1.21.42.1  17-Apr-2012  yamt sync with head
 1.23.8.1  10-Aug-2014  tls Rebase.
 1.23.2.1  20-Aug-2014  tls Rebase to HEAD as of a few days ago.

RSS XML Feed