From owner-cvs-all Mon Jun 17 17:15:39 2002 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 65F1437B420; Mon, 17 Jun 2002 17:15:32 -0700 (PDT) Received: (from kbyanc@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g5I0FV070856; Mon, 17 Jun 2002 17:15:31 -0700 (PDT) (envelope-from kbyanc) Message-Id: <200206180015.g5I0FV070856@freefall.freebsd.org> From: Kelly Yancey Date: Mon, 17 Jun 2002 17:15:31 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/netinet if_ether.c src/sys/net if_iso88025subr.c iso88025.h X-FreeBSD-CVS-Branch: RELENG_4 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG kbyanc 2002/06/17 17:15:31 PDT Modified files: (Branch: RELENG_4) sys/netinet if_ether.c sys/net if_iso88025subr.c iso88025.h Log: MFC netinet/if_ether.c:1.93-1.94, net/if_iso88025subr.c:1.21, net/iso88025.h:1.6-1.8: Move ISO88025 source routing information into sockaddr_dl's sdl_data field. This returns the sdl_data field to a variable-length field. More importantly, this prevents a easily-reproduceable data-corruption bug when the interface name plus the hardware address exceed the sdl_data field's original 12 byte limit. However, token-ring interfaces may still overflow the new sdl_data field's 46 byte limit if the interface name exceeds 6 characters (since 6 characters for interface name plus 6 for hardware address plus 34 for source routing = the size of sdl_data). Sponsored by: NTT Multimedia Communications Labs Revision Changes Path 1.7.2.7 +2 -2 src/sys/net/if_iso88025subr.c 1.3.2.2 +12 -1 src/sys/net/iso88025.h 1.64.2.19 +8 -8 src/sys/netinet/if_ether.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message