From owner-cvs-sys Thu Jun 11 20:48:54 1998 Return-Path: Received: (from daemon@localhost) by hub.freebsd.org (8.8.8/8.8.8) id UAA20613 for cvs-sys-outgoing; Thu, 11 Jun 1998 20:48:54 -0700 (PDT) (envelope-from owner-cvs-sys) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id UAA20531; Thu, 11 Jun 1998 20:48:41 -0700 (PDT) (envelope-from julian@FreeBSD.org) From: Julian Elischer Received: (from julian@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id UAA18762; Thu, 11 Jun 1998 20:48:21 -0700 (PDT) Date: Thu, 11 Jun 1998 20:48:21 -0700 (PDT) Message-Id: <199806120348.UAA18762@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-sys@FreeBSD.ORG Subject: cvs commit: src/sys/net if_ethersubr.c if_fddisubr.c if_loop.c if_var.h src/sys/netatalk ddp_output.c src/sys/netinet if_ether.c ip_input.c ip_output.c Sender: owner-cvs-sys@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk julian 1998/06/11 20:48:20 PDT Modified files: sys/net if_ethersubr.c if_fddisubr.c if_loop.c if_var.h sys/netatalk ddp_output.c sys/netinet if_ether.c ip_input.c ip_output.c Log: Go through the loopback code with a broom.. Remove lots'o'hacks. looutput is now static. Other callers who want to use loopback to allow shortcutting should call the special entrypoint for this, if_simloop(), which is specifically designed for this purpose. Using looutput for this purpose was problematic, particularly with bpf and trying to keep track of whether one should be using the charateristics of the loopback interface or the interface (e.g. if_ethersubr.c) that was requesting the loopback. There was a whole class of errors due to this mis-use each of which had hacks to cover them up. Consists largly of hack removal :-) Revision Changes Path 1.49 +35 -97 src/sys/net/if_ethersubr.c 1.31 +30 -60 src/sys/net/if_fddisubr.c 1.33 +62 -27 src/sys/net/if_loop.c 1.9 +3 -3 src/sys/net/if_var.h 1.10 +9 -0 src/sys/netatalk/ddp_output.c 1.47 +10 -10 src/sys/netinet/if_ether.c 1.90 +2 -7 src/sys/netinet/ip_input.c 1.72 +4 -4 src/sys/netinet/ip_output.c