Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-stable
Commits
7f6794ad
Commit
7f6794ad
authored
Dec 10, 2003
by
Shashi Guruprasad
Browse files
Changed os_ifconfig_line() to attach an rtabid if present.
parent
3d1ece48
Changes
1
Hide whitespace changes
Inline
Side-by-side
tmcd/freebsd/liblocsetup.pm
View file @
7f6794ad
...
...
@@ -157,7 +157,17 @@ sub os_ifconfig_line($$$$$$;$)
$mediaopt
=
$IFC_FDUPLEX
;
}
$uplines
=
sprintf
(
$IFCONFIG
,
$iface
,
$inet
,
$mask
,
$media
,
$mediaopt
);
$uplines
=
"";
#
# Must set route table id before assigning IP address so that interface
# route winds up in the correct table.
#
if
(
defined
(
$rtabid
))
{
$uplines
.=
"
$IFCONFIGBIN
$iface
rtabid
$rtabid
\n
";
}
$uplines
.=
sprintf
(
$IFCONFIG
,
$iface
,
$inet
,
$mask
,
$media
,
$mediaopt
);
$downlines
=
"
$IFCONFIGBIN
$iface
down
\n
";
if
(
$aliases
ne
"")
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment