Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Oct 2004 23:24:18 +0200
From:      Andre Oppermann <andre@freebsd.org>
To:        freebsd-current@freebsd.org
Subject:   etc/rc* script crowd, loadable IPDIVERT module
Message-ID:  <41758602.10C37D29@freebsd.org>

next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------D0781A0111C97BB4C25C48FC
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

If someone from the etc/rc* script crowd could have a look at the natd
stuff and changes to automatically load the new ipdivert module the
same way as ipfw is dynamically loaded that would be great!

-- 
Andre
--------------D0781A0111C97BB4C25C48FC
Content-Type: message/rfc822
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Return-Path: <owner-src-committers@FreeBSD.org>
Delivered-To: andre@networx.ch
Received: (qmail 61975 invoked from network); 19 Oct 2004 21:15:56 -0000
Received: from mx2.freebsd.org ([216.136.204.119])
          (envelope-sender <owner-src-committers@FreeBSD.org>)
          by c00l3r.networx.ch (qmail-ldap-1.03) with SMTP
          for <andre@networx.ch>; 19 Oct 2004 21:15:56 -0000
Received: from hub.freebsd.org (hub.freebsd.org [216.136.204.18])
	by mx2.freebsd.org (Postfix) with ESMTP id B13DD585B9
	for <andre@networx.ch>; Tue, 19 Oct 2004 21:16:10 +0000 (GMT)
	(envelope-from owner-src-committers@FreeBSD.org)
Received: by hub.freebsd.org (Postfix)
	id 3275C16A5B7; Tue, 19 Oct 2004 21:14:59 +0000 (GMT)
Delivered-To: andre@freebsd.org
Received: by hub.freebsd.org (Postfix, from userid 538)
	id C7D8B16A5AE; Tue, 19 Oct 2004 21:14:58 +0000 (GMT)
Delivered-To: src-committers@freebsd.org
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP
	id DBD7D16A5AA; Tue, 19 Oct 2004 21:14:57 +0000 (GMT)
Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115])
	by mx1.FreeBSD.org (Postfix) with ESMTP
	id CEE1343D3F; Tue, 19 Oct 2004 21:14:57 +0000 (GMT)
	(envelope-from andre@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 i9JLEvk8001575;
	Tue, 19 Oct 2004 21:14:57 GMT
	(envelope-from andre@repoman.freebsd.org)
Received: (from andre@localhost)
	by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i9JLEvjQ001574;
	Tue, 19 Oct 2004 21:14:57 GMT
	(envelope-from andre)
Message-Id: <200410192114.i9JLEvjQ001574@repoman.freebsd.org>
From: Andre Oppermann <andre@FreeBSD.org>
Date: Tue, 19 Oct 2004 21:14:57 +0000 (UTC)
To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org,
	cvs-all@FreeBSD.org
Subject: cvs commit: src/sys/modules/ipdivert Makefile src/sys/netinet
         in_proto.c ip_divert.c ip_divert.h ip_fw2.c ip_fw_pfil.c
X-FreeBSD-CVS-Branch: HEAD
Sender: owner-src-committers@FreeBSD.org
Precedence: bulk
X-Loop: FreeBSD.ORG
X-Mozilla-Status2: 00000000

andre       2004-10-19 21:14:57 UTC

  FreeBSD src repository

  Modified files:
    sys/netinet          in_proto.c ip_divert.c ip_divert.h 
                         ip_fw2.c ip_fw_pfil.c 
  Added files:
    sys/modules/ipdivert Makefile 
  Log:
  Convert IPDIVERT into a loadable module.  This makes use of the dynamic loadability
  of protocols.  The call to divert_packet() is done through a function pointer.  All
  semantics of IPDIVERT remain intact.  If IPDIVERT is not loaded ipfw will refuse to
  install divert rules and  natd will complain about 'protocol not supported'.  Once
  it is loaded both will work and accept rules and open the divert socket.  The module
  can only be unloaded if no divert sockets are open.  It does not close any divert
  sockets when an unload is requested but will return EBUSY instead.
  
  Revision  Changes    Path
  1.1       +8 -0      src/sys/modules/ipdivert/Makefile (new)
  1.75      +0 -13     src/sys/netinet/in_proto.c
  1.101     +67 -8     src/sys/netinet/ip_divert.c
  1.4       +10 -4     src/sys/netinet/ip_divert.h
  1.82      +2 -4      src/sys/netinet/ip_fw2.c
  1.11      +13 -8     src/sys/netinet/ip_fw_pfil.c


--------------D0781A0111C97BB4C25C48FC--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?41758602.10C37D29>