From owner-cvs-all@FreeBSD.ORG Wed Sep 1 18:22:15 2004 Return-Path: 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 02DBD16A4CE; Wed, 1 Sep 2004 18:22:15 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id D717243D45; Wed, 1 Sep 2004 18:22:14 +0000 (GMT) (envelope-from brooks@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i81IMEF0017603; Wed, 1 Sep 2004 18:22:14 GMT (envelope-from brooks@repoman.freebsd.org) Received: (from brooks@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i81IMERb017602; Wed, 1 Sep 2004 18:22:14 GMT (envelope-from brooks) Message-Id: <200409011822.i81IMERb017602@repoman.freebsd.org> From: Brooks Davis Date: Wed, 1 Sep 2004 18:22:14 +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 ifconfig.c src/sys/net if.c if.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Sep 2004 18:22:15 -0000 brooks 2004-09-01 18:22:14 UTC FreeBSD src repository Modified files: sbin/ifconfig ifconfig.c sys/net if.c if.h Log: Use a spare byte in struct if_data to store the structure size without increasing it. Add code to ifconfig to use this size to find the sockaddr_dl after the struct if_data in the routing message. This allows struct if_data to grow (up to 255 bytes) without breaking ifconfig. Submitted by: peter Revision Changes Path 1.107 +4 -1 src/sbin/ifconfig/ifconfig.c 1.202 +1 -0 src/sys/net/if.c 1.90 +1 -0 src/sys/net/if.h