Commit Graph

47 Commits

Author SHA1 Message Date
lukem 92f7af5b8d * cleanup for WARNS=1
* deprecate register
* use .Nm correctly
1997-09-15 01:53:35 +00:00
mrg 70707ec9bc note that we have set ifflags so that we can reset them again after
setting the interface address.  this is necessary as we may want to
configure an interface `down' by default, but, SIOCAIFADDR turns the
interface back on for us.
1997-09-08 05:26:08 +00:00
is 2b70f759c5 ifr_metric vs. ifr_mtu: don't confuse people. Its a union anyway. 1997-07-14 12:54:27 +00:00
lukem 39cef8b32a Don't define the address of an interface to 0.0.0.0 if it's just being
brought "up" (without an address); don't give it an address at all.
From Koji Imada <koji@math.human.nagoya-u.ac.jp> in [bin/3477]
1997-05-30 05:44:11 +00:00
lukem b4123d6862 Add "mask" argument to description of "broadcast".
From Thorsten Frueauf <frueauf@ira.uka.de> in [misc/3657]
1997-05-30 03:49:36 +00:00
thorpej fd196425a8 Force the ifaliasreq "addreq" to have 4-byte alignment, so that casting
one of its sockaddrs to a sockaddr_in doesn't cause an unaligned access
fault on the Alpha.
1997-05-05 06:32:11 +00:00
lukem 13d5dd4446 Implemented two modifier flags for -a and -l: -d (only show "down" interfaces)
and -u (only show "up" interfaces)
1997-04-21 01:17:57 +00:00
is d743f36705 Add mtu n parameter. Part of code by Matthias Pfaller (PR 1648). 1997-04-10 19:10:16 +00:00
jeremy 90a04776b1 Fix typo in media selector example. (from frueauf@ira.uka.de)
Fixes half of PR#3470.
1997-04-10 06:30:26 +00:00
christos 8e9ba6bac6 - netatalk additions
- KNF
- prototype fixes
- ifconfig -a now prints all the address family parameters for all configured
  interfaces.
1997-04-03 02:07:58 +00:00
thorpej dbdde72e82 Add a "-l" flag, which lists available network interfaces, with no
additional information.
1997-03-27 22:50:09 +00:00
thorpej a285d77f82 Print the station address of interfaces that have one. From
Matt Thomas <matt@3am-software.com>
1997-03-26 01:46:49 +00:00
thorpej 315d0c6cbb Display the correct interface name in the event SIOCGIFMEDIA "succeeds"
but doesn't return any media types.
1997-03-25 01:37:11 +00:00
thorpej 66addb16d6 Fix a slight bogon in printing active/current media, from Matt Thomas. 1997-03-24 00:45:30 +00:00
thorpej 797e996927 Fix lookup_media_word() to properly distinguish between the "autoselect"
media type and error.  (oops!)
1997-03-18 05:04:50 +00:00
thorpej af71bad528 Do that last change somewhat differently; We need to know the
currently selected media, and thus cannot allow E2BIG, since the
top-level kernel ioctl code won't perform the copyout of the
ifmediareq if it sees an "error".
1997-03-18 01:50:01 +00:00
thorpej 55e07c34a2 Ignore E2BIG in domediaopt() like we do in setmedia(). Oversight pointed
out by Andrew Gallatin <gallatin@CS.Duke.EDU>.
1997-03-18 00:37:34 +00:00
thorpej 4fcebbc43a Add support for BSD/OS-style media selection:
- new "media" keyword specified media to select:
		ifconfig de0 media utp
	- new "mediaopt/-mediaopt" keywords for setting/clearing
	  media options (such as full-duplex)
	- new "-m" flag to display all supported media types for
	  a given interface.
Also, some generial cleanup of argument parsing while I was there.
Manual page updates from Jeremy Cooper <jeremy@netbsd.org>.
1997-03-17 03:08:46 +00:00
mycroft f5b5efa5d5 Update to match kernel changes. 1996-09-08 14:37:39 +00:00
pk 9a4742e3ce Merge with lite-2. 1996-01-04 21:27:29 +00:00
pk 5f0532320e Agree with kernel on format of SIOCGIFCONF results. 1996-01-04 20:11:20 +00:00
gwr ad5a72a23c Add support for -DINET_ONLY to make this smaller in a ramdisk. 1995-10-08 23:03:54 +00:00
mycroft 7888507f63 Use inet_aton(), not inet_addr(). Suggested by John Hawkinson. 1995-05-19 20:17:16 +00:00
cgd 0114e805ce convert to new RCS Id conventions; reduce my headache 1995-03-18 14:54:19 +00:00
glass ddbe84a0ec fix usage message to include -a. fix command line handling for same 1995-01-21 21:22:16 +00:00
cgd 06e2955ff1 specify man pages the new way. 1994-12-22 10:44:04 +00:00
cgd 9e821e2de7 spacing nit. 1994-12-18 12:58:39 +00:00
cgd 5eeab43e28 more cleanups from Jim Jegers, passed over by me. 1994-12-05 20:15:31 +00:00
cgd f12bf2a597 ioctl types. 1994-10-31 04:24:09 +00:00
mycroft ea7b5d4ec6 Eliminate uses of some obsolete functions. 1994-09-23 14:26:58 +00:00
mycroft 3c78ef3311 Merge with 4.4-Lite version. 1994-09-23 01:38:45 +00:00
cgd 4e9cb67485 (1) update usage info
(2) fix every instance of fprintf/exit except usage to use err()/errx()
(3) make netmask print out with a leading 0x, so that you can paste it back.
1994-01-22 02:04:35 +00:00
cgd bc980fa1b4 fix a botch 1994-01-22 00:29:20 +00:00
jtc ab3a89f913 Fix spelling errors 1994-01-14 02:05:23 +00:00
cgd 7489d1a908 add MULTICAST recognition 1993-12-10 11:29:42 +00:00
cgd 285bdc5f46 LLC -> LINK, documentation 1993-12-10 11:23:54 +00:00
mycroft e9d867ef50 Add RCS identifiers. 1993-08-01 17:54:45 +00:00
mycroft dfb9caab49 Add RCS indentifiers. 1993-08-01 07:32:48 +00:00
mycroft cda4f8f6ee Add RCS identifiers. 1993-08-01 05:37:30 +00:00
deraadt 2c8e44c31a removed aui/bnc hack from ifconfig. Use -llc0/llc0 instead. 1993-06-09 20:04:38 +00:00
deraadt daa25cdf09 fix ifconfig once again. multiple protocols really cooked hte code i wrote
before for -a.
1993-06-06 08:55:30 +00:00
cgd 9d87d1d2e1 Remove ifdefs hiding ISO and XNS functionality
(from Havard Eidnes <Havard.Eidnes@runit.sintef.no>)
1993-05-21 12:48:49 +00:00
deraadt 46c2563196 Added another sunos-ism: ifconfig -a 1993-05-04 09:26:52 +00:00
cgd 06be60083d changed "Id" to "Header" for rcsids 1993-03-23 00:22:59 +00:00
cgd 346aa5dd48 added rcs ids to all files 1993-03-22 08:04:00 +00:00
cgd e541169ce2 after 0.2.2 "stable" patches applied 1993-03-21 18:04:42 +00:00
cgd 61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00