FreeBSD src
Go to file
Bill Paul b106252c19 Implement SIOCSIFLLADDR, which allows you to change the link-level
address on an interface. This basically allows you to do what my
little setmac module/utility does via ifconfig. This involves the
following changes:

socket.h: define SIOCSIFLLADDR
if.c: add support for SIOCSIFLLADDR, which resets the values in
      the arpcom struct and sockaddr_dl for the specified interface.
      Note that if the interface is already up, we need to down/up
      it in order to program the underlying hardware's receive filter.
ifconfig.c: add lladdr command
ifconfig.8: document lladdr command

You can now force the MAC address on any ethernet interface to be
whatever you want. (The change is not sticky across reboots of course:
we don't actually reprogram the EEPROM or anything.) Actually, you
can reprogram the MAC address on other kinds of interfaces too; this
shouldn't be ethernet-specific (though at the moment it's limited to
6 bytes of address data).

Nobody ran up to me and said "this is the politically correct way to
do this!" so I don't want to hear any complaints from people who think
I could have done it more elegantly. Consider yourselves lucky I didn't
do it by having ifconfig tread all over /dev/kmem.
2000-06-16 20:14:43 +00:00
bin Activate Japanese NLS and KANJI support 2000-06-11 03:26:08 +00:00
contrib This commit was generated by cvs2svn to compensate for changes in r61524, 2000-06-10 22:20:53 +00:00
crypto Fix syntax error in previous commit. 2000-06-11 21:41:25 +00:00
etc Add a few directories that were shared by a lot of ports: section 3 2000-06-16 19:08:19 +00:00
games Remove garbage. 2000-06-02 12:49:57 +00:00
gnu Remove libxpg4 2000-06-04 23:16:14 +00:00
include Back out the previous change to the queue(3) interface. 2000-05-26 02:09:24 +00:00
kerberos5 Properly separate the K5-only buld from K4. 2000-03-23 14:56:47 +00:00
kerberosIV Remove the last vestiges of libRSAglue now that it's an empty stub. 2000-03-11 22:34:10 +00:00
lib Backout my previous commit. 2000-06-14 20:51:55 +00:00
libexec Spelling fix: transfered --> transferred 2000-06-02 21:22:09 +00:00
release Remove references to PCMCIA ethernet cards/laptops 2000-06-15 19:19:59 +00:00
sbin Implement SIOCSIFLLADDR, which allows you to change the link-level 2000-06-16 20:14:43 +00:00
secure Link explicitly against -lmd. I'm not sure what was pulling this in 2000-06-11 05:30:52 +00:00
share Add kterm-color, which is to kterm what xterm-color is to xterm. 2000-06-14 20:22:34 +00:00
sys Implement SIOCSIFLLADDR, which allows you to change the link-level 2000-06-16 20:14:43 +00:00
tools Back out the previous change to the queue(3) interface. 2000-05-26 02:09:24 +00:00
usr.bin /etc/weekly --> /etc/periodic/weekly/310.locate 2000-06-14 17:41:31 +00:00
usr.sbin Handle comments and empty lines when generating YP passwd and group files 2000-06-15 15:51:49 +00:00
COPYRIGHT Update to add the July 22, 1999 addendum. 1999-09-05 21:33:47 +00:00
Makefile We have a new world order in libraries. 2000-02-24 23:03:16 +00:00
Makefile.inc1 Add -DNO_KERNELDEPEND and -DNO_KERNELCONFIG 2000-06-15 10:00:20 +00:00
Makefile.upgrade $Id$ -> $FreeBSD$ 1999-08-28 01:35:59 +00:00
README $Id$ -> $FreeBSD$ 1999-08-28 01:35:59 +00:00
UPDATING Warn about config's bout with Peter's big axe 2000-06-14 15:42:50 +00:00

This is the top level of the FreeBSD source directory.  This file
was last revised on:
$FreeBSD$

For copyright information, please see the file COPYRIGHT in this
directory (additional copyright information also exists for some
sources in this tree - please see the specific source directories for
more information).

The Makefile in this directory supports a number of targets for
building components (or all) of the FreeBSD source tree, the most
commonly used one being ``world'', which rebuilds and installs
everything in the FreeBSD system from the source tree except the
kernel and the contents of /etc.  Please see the top of the Makefile
in this directory for more information on the standard build targets
and compile-time flags.

Building a kernel with config(8) is a somewhat more involved process,
documentation for which can be found at:
   http://www.freebsd.org/handbook/kernelconfig.html
And in the config(8) man page.

The sample kernel configuration files reside in the sys/i386/conf
sub-directory (assuming that you've installed the kernel sources), the
file named GENERIC being the one used to build your initial installation
kernel.  The file LINT contains entries for all possible devices, not
just those commonly used, and is meant more as a general reference
than an actual kernel configuration file (a kernel built from it
wouldn't even run).


Source Roadmap:
---------------
bin		System/User commands.

contrib		Packages contributed by 3rd parties.

crypto		Export controlled stuff (see crypto/README).

etc		Template files for /etc

games		Amusements.

gnu		Various commands and libraries under the GNU Public License.
		Please see gnu/COPYING* for more information.

include		System include files.

kerberosIV	Kerberos package.

lib		System libraries.

libexec		System daemons.

release		Release building Makefile & associated tools.

sbin		System commands.

secure		DES and DES-related utilities - NOT FOR EXPORT!

share		Shared resources.

sys		Kernel sources.

tools		Utilities for regression testing and miscellaneous tasks.

usr.bin		User commands.

usr.sbin	System administration commands.


For information on synchronizing your source tree with one or more of
the FreeBSD Project's development branches, please see:

  http://www.freebsd.org/handbook/synching.html