xref: /freebsd/usr.sbin/setfib/setfib.1 (revision 8972c8b6a52fb17534716a3cf15f381b863d4ba4)
18b07e49aSJulian Elischer.\" Copyright (c) 2008 Cisco systems
28b07e49aSJulian Elischer.\"	Author Julian Elischer.  All rights reserved.
38b07e49aSJulian Elischer.\"
48b07e49aSJulian Elischer.\" Redistribution and use in source and binary forms, with or without
58b07e49aSJulian Elischer.\" modification, are permitted provided that the following conditions
68b07e49aSJulian Elischer.\" are met:
78b07e49aSJulian Elischer.\" 1. Redistributions of source code must retain the above copyright
88b07e49aSJulian Elischer.\"    notice, this list of conditions and the following disclaimer.
98b07e49aSJulian Elischer.\" 2. Neither the name of the University nor the names of its contributors
108b07e49aSJulian Elischer.\"    may be used to endorse or promote products derived from this software
118b07e49aSJulian Elischer.\"    without specific prior written permission.
128b07e49aSJulian Elischer.\"
138b07e49aSJulian Elischer.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
148b07e49aSJulian Elischer.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
158b07e49aSJulian Elischer.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
168b07e49aSJulian Elischer.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
178b07e49aSJulian Elischer.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
188b07e49aSJulian Elischer.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
198b07e49aSJulian Elischer.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
208b07e49aSJulian Elischer.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
218b07e49aSJulian Elischer.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
228b07e49aSJulian Elischer.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
238b07e49aSJulian Elischer.\" SUCH DAMAGE.
248b07e49aSJulian Elischer.\"
258b07e49aSJulian Elischer.\" $FreeBSD$
268b07e49aSJulian Elischer.\"
278b07e49aSJulian Elischer.Dd April 9, 2008
288b07e49aSJulian Elischer.Dt SETFIB 1
298b07e49aSJulian Elischer.Os
308b07e49aSJulian Elischer.Sh NAME
318b07e49aSJulian Elischer.Nm setfib
32f30f7085SChristian Brueffer.Nd execute a utility with an altered default network view
338b07e49aSJulian Elischer.Sh SYNOPSIS
348b07e49aSJulian Elischer.Nm
358b07e49aSJulian Elischer.Op Fl F
368b07e49aSJulian Elischer.Ar fib
378b07e49aSJulian Elischer.Ar utility
388b07e49aSJulian Elischer.Op Ar argument ...
398b07e49aSJulian Elischer.Sh DESCRIPTION
408b07e49aSJulian ElischerThe
418b07e49aSJulian Elischer.Nm
428b07e49aSJulian Elischerutility runs
438b07e49aSJulian Elischer.Ar utility
44f30f7085SChristian Bruefferwith an different routing table.
45f30f7085SChristian BruefferThe table number
46f30f7085SChristian Brueffer.Dq Ar fib
478b07e49aSJulian Elischerwill be used by default for all sockets started by this
48*8972c8b6SJoel Dahlprocess or descendants.
498b07e49aSJulian Elischer.Sh ENVIRONMENT
508b07e49aSJulian ElischerThe
518b07e49aSJulian Elischer.Ev PATH
528b07e49aSJulian Elischerenvironment variable is used to locate the requested
538b07e49aSJulian Elischer.Ar utility
548b07e49aSJulian Elischerif the name contains no
558b07e49aSJulian Elischer.Ql /
568b07e49aSJulian Elischercharacters.
578b07e49aSJulian Elischer.Sh EXIT STATUS
588b07e49aSJulian ElischerIf
598b07e49aSJulian Elischer.Ar utility
608b07e49aSJulian Elischeris invoked, the exit status of
618b07e49aSJulian Elischer.Nm
628b07e49aSJulian Elischeris the exit status of
638b07e49aSJulian Elischer.Ar utility .
648b07e49aSJulian Elischer.Pp
658b07e49aSJulian ElischerAn exit status of 126 indicates
668b07e49aSJulian Elischer.Ar utility
678b07e49aSJulian Elischerwas found, but could not be executed.
688b07e49aSJulian ElischerAn exit status of 127 indicates
698b07e49aSJulian Elischer.Ar utility
708b07e49aSJulian Elischercould not be found.
718b07e49aSJulian Elischer.Sh EXAMPLES
728b07e49aSJulian ElischerExecute utility
738b07e49aSJulian Elischer.Sq netstat
748b07e49aSJulian Elischerto view the second routing table.
758b07e49aSJulian Elischer.Pp
768b07e49aSJulian Elischer.Dl "setfib -F 1 netstat -rn"
778b07e49aSJulian Elischeror
788b07e49aSJulian Elischer.Dl "setfib 1 netstat -rn"
798b07e49aSJulian Elischeror
808b07e49aSJulian Elischer.Dl "setfib -1 netstat -rn"
818b07e49aSJulian Elischer.Sh SEE ALSO
828b07e49aSJulian Elischer.Xr setfib 2 ,
838b07e49aSJulian Elischer.Xr setsockopt 2
848b07e49aSJulian Elischer.Sh STANDARDS
858b07e49aSJulian ElischerThe
868b07e49aSJulian Elischer.Nm
87f30f7085SChristian Bruefferutility is a
88f30f7085SChristian Brueffer.Fx
89f30f7085SChristian Bruefferspecific extension, however many
90f30f7085SChristian Brueffer.Ux
91f30f7085SChristian Bruefferlike systems
928b07e49aSJulian Elischerhave an equivalent function.
938b07e49aSJulian Elischer.Sh HISTORY
948b07e49aSJulian ElischerThe
958b07e49aSJulian Elischer.Nm
968b07e49aSJulian Elischerutility appeared in
972a72feb4SChristian Brueffer.Fx 7.1 .
98