From nobody@FreeBSD.org  Fri Jun 29 09:21:24 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 11DAD16A469
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 29 Jun 2007 09:21:24 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [69.147.83.33])
	by mx1.freebsd.org (Postfix) with ESMTP id 02E1013C45B
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 29 Jun 2007 09:21:24 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l5T9LNfH069060
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 29 Jun 2007 09:21:23 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id l5T9LNrw069058;
	Fri, 29 Jun 2007 09:21:23 GMT
	(envelope-from nobody)
Message-Id: <200706290921.l5T9LNrw069058@www.freebsd.org>
Date: Fri, 29 Jun 2007 09:21:23 GMT
From: Roger Gujord <roger@gujord.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: /etc/rc.d/jail improvements for networking (netmask)
X-Send-Pr-Version: www-3.0

>Number:         114119
>Category:       conf
>Synopsis:       [jail] [patch] [request] /etc/rc.d/jail improvements for networking (netmask)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bz
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jun 29 09:30:02 GMT 2007
>Closed-Date:    Sat Nov 29 17:29:17 UTC 2008
>Last-Modified:  Sat Nov 29 17:29:17 UTC 2008
>Originator:     Roger Gujord
>Release:        FreeBSD 6.2-RELEASE
>Organization:
>Environment:
>Description:
Added support for specifying netmasks in /etc/rc.conf:
jail_cellname_netmask="255.255.255.240"

Can be used if netmask must be other than the hosts netmask (ex. several subnets or different ip-ranges with other netmasks).
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

35a36
> 	eval _netmask=\"\$jail_${_j}_netmask\"
80a82
> 	debug "$_j netmask: $_netmask"
102c104,106
< 
---
> 	if [ -z "${_netmask}" ]; then
> 		_netmask="255.255.255.255"
> 	fi
270c274
< 			ifconfig ${_interface} alias ${_ip} netmask 255.255.255.255
---
> 			ifconfig ${_interface} alias ${_ip} netmask ${_netmask}


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-rc 
Responsible-Changed-By: yar 
Responsible-Changed-When: Fri Aug 17 09:01:20 UTC 2007 
Responsible-Changed-Why:  
Over to the rc list for consideration. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=114119 
State-Changed-From-To: open->closed 
State-Changed-By: bz 
State-Changed-When: Sat Nov 29 17:27:57 UTC 2008 
State-Changed-Why:  
Netmask support has been in HEAD and will need updating to 
work better than this and will then be MFCed to 7. 


Responsible-Changed-From-To: freebsd-rc->bz 
Responsible-Changed-By: bz 
Responsible-Changed-When: Sat Nov 29 17:27:57 UTC 2008 
Responsible-Changed-Why:  
Take to get possible follow-ups. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=114119 
>Unformatted:
