FreeBSD Bugzilla – Attachment 108933 Details for
Bug 149867
[patch] rc.fibs(5): new rc.d script to manage multiple FIBS (kern options ROUTETABLES)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
file.txt
file.txt (text/plain), 1005 bytes, created by
Allan Jude
on 2010-08-22 05:40:01 UTC
(
hide
)
Description:
file.txt
Filename:
MIME Type:
Creator:
Allan Jude
Created:
2010-08-22 05:40:01 UTC
Size:
1005 bytes
patch
obsolete
>#!/bin/sh ># ># Configure multiple FIBs for ROUTETABLES ># ># $Id$ ># > ># PROVIDE: fibs ># REQUIRE: netif ppp routing FILESYSTEMS ># KEYWORD: nojail > >. /etc/rc.subr >. /etc/network.subr > >name="fibs" >start_cmd="fibs_start" >stop_cmd="fibs_stop" > >fibs_start() >{ > > # Setup static routes for each FIB. > # > _numfibs=`sysctl -n net.fibs` > _fiblist=`jot ${_numfibs} 0 ${_numfibs} 1` > for n in ${_fiblist}; do > eval _fibroutes=\$fib_${n}_routes > if [ -n "${_fibroutes}" ]; then > for i in ${_fibroutes}; do > eval _fib_args=\$fib_${n}_${i} > setfib ${n} route add ${_fib_args} > done > fi > done >} > >fibs_stop() >{ > _numfibs=`sysctl -n net.fibs` > _fiblist=`jot ${_numfibs} 0 ${_numfibs} 1` > for n in ${_fiblist}; do > setfib ${n} route -n flush > done >} > >load_rc_config $name >run_rc_command "$1"
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 149867
: 108933