From hsu@clinet.fi  Fri Dec 29 02:51:42 1995
Received: from hauki.clinet.fi (root@hauki.clinet.fi [194.100.0.1])
          by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id CAA14078
          for <FreeBSD-gnats-submit@freebsd.org>; Fri, 29 Dec 1995 02:51:33 -0800 (PST)
Received: from katiska.clinet.fi (root@katiska.clinet.fi [194.100.0.4]) by hauki.clinet.fi (8.6.12/8.6.4) with ESMTP id MAA08094 for <FreeBSD-gnats-submit@freebsd.org>; Fri, 29 Dec 1995 12:51:15 +0200
Received: (root@localhost) by katiska.clinet.fi (8.6.12/8.6.4) id MAA24321; Fri, 29 Dec 1995 12:51:27 +0200
Message-Id: <199512291051.MAA24321@katiska.clinet.fi>
Date: Fri, 29 Dec 1995 12:51:27 +0200
From: Heikki Suonsivu <hsu@clinet.fi>
Reply-To: hsu@clinet.fi
To: FreeBSD-gnats-submit@freebsd.org
Subject: ifconfig shows (first?) alias if interface has aliases
X-Send-Pr-Version: 3.2

>Number:         918
>Category:       bin
>Synopsis:       ifconfig shows (first?) alias if interface has aliases
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Dec 29 03:00:01 PST 1995
>Closed-Date:    Mon Jan 1 04:25:45 PST 1996
>Last-Modified:  Mon Jan  1 04:27:55 PST 1996
>Originator:     Heikki Suonsivu
>Release:        FreeBSD 2.2-CURRENT i386
>Organization:
Clinet, Espoo, Finland
>Environment:

	multiple IP addresses in the same host

>Description:

	There doesn't seem to be any way to correctly display
	aliases, and ifconfig shows alias addresses instead of the
	"main" address.

>How-To-Repeat:

	ifconfig ed0 194.100.0.4 netmask 255.255.255.224
	ifconfig ed0 194.100.0.17 netmask 255.255.255.255
	... several other aliases

	hsu#katiska.clinet.fi Fri 85: ifconfig ed0
	ed0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
	inet 194.100.0.17 netmask 0xffffffff broadcast 194.100.0.17
        ether 00:00:c0:cd:b9:a3 

>Fix:
	
	

>Release-Note:
>Audit-Trail:

From: Mark Murray <mark@grondar.za>
To: hsu@clinet.fi
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: bin/918: ifconfig shows (first?) alias if interface has aliases 
Date: Fri, 29 Dec 1995 13:48:17 +0200

 Heikki Suonsivu wrote:
 > >Description:
 > 
 > 	There doesn't seem to be any way to correctly display
 > 	aliases, and ifconfig shows alias addresses instead of the
 > 	"main" address.
 > 
 > >How-To-Repeat:
 > 
 > 	ifconfig ed0 194.100.0.4 netmask 255.255.255.224
 > 	ifconfig ed0 194.100.0.17 netmask 255.255.255.255
 > 	... several other aliases
 > 
 > 	hsu#katiska.clinet.fi Fri 85: ifconfig ed0
 > 	ed0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
 > 	inet 194.100.0.17 netmask 0xffffffff broadcast 194.100.0.17
 >         ether 00:00:c0:cd:b9:a3 
 
 My Two Cents:
 
 If you alias your card like this:
 
     ifconfig ed0 inet 196.7.18.130 netmask 255.255.255.240
     ifconfig ed0 alias 196.7.18.129 netmask 255.255.255.255
 
 Then you _never_ see the alias(s).
 
     $ ifconfig ed0
     ed0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
         inet 196.7.18.130 netmask 0xfffffff0 broadcast 196.7.18.143
 --
 Mark Murray
 46 Harvey Rd, Claremont, Cape Town 7700, South Africa
 +27 21 61-3768 GMT+0200
 Finger mark@grondar.za for PGP key

From: "Garrett A. Wollman" <wollman@lcs.mit.edu>
To: hsu@clinet.fi
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: bin/918: ifconfig shows (first?) alias if interface has aliases
Date: Fri, 29 Dec 1995 13:39:07 -0500

 <<On Fri, 29 Dec 1995 12:51:27 +0200, Heikki Suonsivu <hsu@clinet.fi> said:
 
 > 	There doesn't seem to be any way to correctly display
 > 	aliases, and ifconfig shows alias addresses instead of the
 > 	"main" address.
 
 There is no such distinction.  All the addresses attached to an
 interface are just that: addresses attached to an interface.  The
 first one displayed just happens to be the first one in the linked
 list of addresses hanging off the interface structure.
 
 -GAWollman
 
 --
 Garrett A. Wollman   | Shashish is simple, it's discreet, it's brief. ... 
 wollman@lcs.mit.edu  | Shashish is the bonding of hearts in spite of distance.
 Opinions not those of| It is a bond more powerful than absence.  We like people
 MIT, LCS, ANA, or NSA| who like Shashish.  - Claude McKenzie + Florent Vollant
State-Changed-From-To: open->closed 
State-Changed-By: peter 
State-Changed-When: Mon Jan 1 04:25:45 PST 1996 
State-Changed-Why:  
I had just fixed this independently and decided to commit it, and just saw  
this PR.. :-) 

So.. "fixed in rev 1.10 of src/sbin/ifconfig.c" :-) 
>Unformatted:
