From owner-cvs-all@FreeBSD.ORG  Fri Dec 31 19:46:27 2004
Return-Path: <owner-cvs-all@FreeBSD.ORG>
Delivered-To: cvs-all@freebsd.org
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP
	id D7CE416A4CE; Fri, 31 Dec 2004 19:46:27 +0000 (GMT)
Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115])
	by mx1.FreeBSD.org (Postfix) with ESMTP
	id BFB1D43D49; Fri, 31 Dec 2004 19:46:27 +0000 (GMT)
	(envelope-from sam@FreeBSD.org)
Received: from repoman.freebsd.org (localhost [127.0.0.1])
	by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id iBVJkREZ029616;
	Fri, 31 Dec 2004 19:46:27 GMT
	(envelope-from sam@repoman.freebsd.org)
Received: (from sam@localhost)
	by repoman.freebsd.org (8.13.1/8.13.1/Submit) id iBVJkRsi029615;
	Fri, 31 Dec 2004 19:46:27 GMT
	(envelope-from sam)
Message-Id: <200412311946.iBVJkRsi029615@repoman.freebsd.org>
From: Sam Leffler <sam@FreeBSD.org>
Date: Fri, 31 Dec 2004 19:46:27 +0000 (UTC)
To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org,
	cvs-all@FreeBSD.org
X-FreeBSD-CVS-Branch: HEAD
Subject: cvs commit: src/sbin/ifconfig af_link.c ifconfig.c ifconfig.h
 ifieee80211.c ifmac.c ifmedia.c ifvlan.c
X-BeenThere: cvs-all@freebsd.org
X-Mailman-Version: 2.1.1
Precedence: list
List-Id: CVS commit messages for the entire tree <cvs-all.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/cvs-all>,
	<mailto:cvs-all-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/cvs-all>
List-Post: <mailto:cvs-all@freebsd.org>
List-Help: <mailto:cvs-all-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/cvs-all>,
	<mailto:cvs-all-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Fri, 31 Dec 2004 19:46:28 -0000

sam         2004-12-31 19:46:27 UTC

  FreeBSD src repository

  Modified files:
    sbin/ifconfig        af_link.c ifconfig.c ifconfig.h 
                         ifieee80211.c ifmac.c ifmedia.c ifvlan.c 
  Log:
  Fix special status reporting. Prior to the reorg there was
  special-purpose code to display status for an interface for
  state that was not address-oriented.  This status reporting
  was merged in to the address-oriented status reporting but
  did not work for link address reporting (as discovered with
  fwip interfaces).  Correct this mis-merge and eliminate the
  bogus kludge that was used for link-level address reporting.
  
  o add an af_other_status method for an address family for
    reporting status of things like media, vlan, etc.
  o call the af_other_status methods after reporting address
    status for an interface
  o special-case link address status; when reporting all
    status for an interface invoke it specially prior to
    reporting af_other_status methods (since it requires the
    sockaddr_dl that is passed in to status separately from
    the rtmsg address state)
  o correct the calling convention for link address status;
    don't cast types, construct the proper parameter
  
  This fixes ifconfig on fwip interfaces.
  
  Revision  Changes    Path
  1.2       +4 -2      src/sbin/ifconfig/af_link.c
  1.110     +22 -7     src/sbin/ifconfig/ifconfig.c
  1.15      +10 -1     src/sbin/ifconfig/ifconfig.h
  1.15      +2 -2      src/sbin/ifconfig/ifieee80211.c
  1.4       +2 -2      src/sbin/ifconfig/ifmac.c
  1.18      +2 -2      src/sbin/ifconfig/ifmedia.c
  1.7       +2 -2      src/sbin/ifconfig/ifvlan.c