Page MenuHomeFreeBSD

D20311.id57544.diff
No OneTemporary

D20311.id57544.diff

Index: libexec/rc/rc.conf
===================================================================
--- libexec/rc/rc.conf
+++ libexec/rc/rc.conf
@@ -121,9 +121,9 @@
nisdomainname="NO" # Set to NIS domain if using NIS (or NO).
dhclient_program="/sbin/dhclient" # Path to dhcp client program.
dhclient_flags="" # Extra flags to pass to dhcp client.
-#dhclient_flags_fxp0="" # Extra dhclient flags for fxp0 only
+#dhclient_flags_em0="" # Extra dhclient flags for em0 only
background_dhclient="NO" # Start dhcp client in the background.
-#background_dhclient_fxp0="YES" # Start dhcp client on fxp0 in the background.
+#background_dhclient_em0="YES" # Start dhcp client on em0 in the background.
synchronous_dhclient="NO" # Start dhclient directly on configured
# interfaces during startup.
defaultroute_delay="30" # Time to wait for a default route on a DHCP interface.
@@ -147,19 +147,19 @@
# firewall.
#firewall_client_net_ipv6="2001:db8:2:1::/64" # IPv6 network prefix for
# "client" firewall.
-firewall_simple_iif="ed1" # Inside network interface for "simple"
+firewall_simple_iif="em1" # Inside network interface for "simple"
# firewall.
firewall_simple_inet="192.0.2.16/28" # Inside network address for "simple"
# firewall.
-firewall_simple_oif="ed0" # Outside network interface for "simple"
+firewall_simple_oif="em0" # Outside network interface for "simple"
# firewall.
firewall_simple_onet="192.0.2.0/28" # Outside network address for "simple"
# firewall.
-#firewall_simple_iif_ipv6="ed1" # Inside IPv6 network interface for "simple"
+#firewall_simple_iif_ipv6="em1" # Inside IPv6 network interface for "simple"
# firewall.
#firewall_simple_inet_ipv6="2001:db8:2:800::/56" # Inside IPv6 network prefix
# for "simple" firewall.
-#firewall_simple_oif_ipv6="ed0" # Outside IPv6 network interface for "simple"
+#firewall_simple_oif_ipv6="em0" # Outside IPv6 network interface for "simple"
# firewall.
#firewall_simple_onet_ipv6="2001:db8:2:0::/56" # Outside IPv6 network prefix
# for "simple" firewall.
@@ -241,14 +241,14 @@
#cloned_interfaces="gif0 gif1 gif2 gif3" # Pre-cloning GENERIC config.
#ifconfig_lo0="inet 127.0.0.1" # default loopback device configuration.
#ifconfig_lo0_alias0="inet 127.0.0.254 netmask 0xffffffff" # Sample alias entry.
-#ifconfig_ed0_ipv6="inet6 2001:db8:1::1 prefixlen 64" # Sample IPv6 addr entry
-#ifconfig_ed0_alias0="inet6 2001:db8:2::1 prefixlen 64" # Sample IPv6 alias
-#ifconfig_fxp0_name="net0" # Change interface name from fxp0 to net0.
-#vlans_fxp0="101 vlan0" # vlan(4) interfaces for fxp0 device
+#ifconfig_em0_ipv6="inet6 2001:db8:1::1 prefixlen 64" # Sample IPv6 addr entry
+#ifconfig_em0_alias0="inet6 2001:db8:2::1 prefixlen 64" # Sample IPv6 alias
+#ifconfig_em0_name="net0" # Change interface name from em0 to net0.
+#vlans_em0="101 vlan0" # vlan(4) interfaces for em0 device
#create_args_vlan0="vlan 102" # vlan tag for vlan0 device
#wlans_ath0="wlan0" # wlan(4) interfaces for ath0 device
#wlandebug_wlan0="scan+auth+assoc" # Set debug flags with wlandebug(8)
-#ipv4_addrs_fxp0="192.168.0.1/24 192.168.1.1-5/28" # example IPv4 address entry.
+#ipv4_addrs_em0="192.168.0.1/24 192.168.1.1-5/28" # example IPv4 address entry.
#
#autobridge_interfaces="bridge0" # List of bridges to check
#autobridge_bridge0="tap* vlan0" # Interface glob to automatically add to the bridge
@@ -336,7 +336,7 @@
pppoed_enable="NO" # Run the PPP over Ethernet daemon.
pppoed_provider="*" # Provider and ppp(8) config file entry.
pppoed_flags="-P /var/run/pppoed.pid" # Flags to pppoed (if enabled).
-pppoed_interface="fxp0" # The interface that pppoed runs on.
+pppoed_interface="em0" # The interface that pppoed runs on.
sshd_enable="NO" # Enable sshd
sshd_program="/usr/sbin/sshd" # path to sshd, if you want a different one.
sshd_flags="" # Additional flags for sshd.
@@ -506,11 +506,11 @@
# addrs.
#route6d_flags="-q" # If you want to run a routing daemon on an end
# node, you should stop advertisement.
-#ipv6_network_interfaces="ed0 ep0" # Examples for router
+#ipv6_network_interfaces="em0 em1" # Examples for router
# or static configuration for end node.
# Choose correct prefix value.
-#ipv6_prefix_ed0="fec0:0000:0000:0001 fec0:0000:0000:0002" # Examples for rtr.
-#ipv6_prefix_ep0="fec0:0000:0000:0003 fec0:0000:0000:0004" # Examples for rtr.
+#ipv6_prefix_em0="fec0:0000:0000:0001 fec0:0000:0000:0002" # Examples for rtr.
+#ipv6_prefix_em1="fec0:0000:0000:0003 fec0:0000:0000:0004" # Examples for rtr.
ipv6_default_interface="NO" # Default output interface for scoped addrs.
# This works only with
# ipv6_gateway_enable="NO".
Index: sbin/ifconfig/ifconfig.8
===================================================================
--- sbin/ifconfig/ifconfig.8
+++ sbin/ifconfig/ifconfig.8
@@ -196,7 +196,7 @@
parameter is a string of the form
.Dq name unit ,
for example,
-.Dq Li ed0 .
+.Dq Li em0 .
.It Ar groupname
List the interfaces in the given group.
.El
@@ -2935,26 +2935,26 @@
with a network mask of
.Li 255.255.255.0 ,
to the interface
-.Li fxp0 :
-.Dl # ifconfig fxp0 inet 192.0.2.10 netmask 255.255.255.0
+.Li em0 :
+.Dl # ifconfig em0 inet 192.0.2.10 netmask 255.255.255.0
.Pp
Add the IPv4 address
.Li 192.0.2.45 ,
with the CIDR network prefix
.Li /28 ,
to the interface
-.Li ed0 ,
+.Li em0 ,
using
.Cm add
as a synonym for the canonical form of the option
.Cm alias :
-.Dl # ifconfig ed0 inet 192.0.2.45/28 add
+.Dl # ifconfig em0 inet 192.0.2.45/28 add
.Pp
Remove the IPv4 address
.Li 192.0.2.45
from the interface
-.Li ed0 :
-.Dl # ifconfig ed0 inet 192.0.2.45 -alias
+.Li em0 :
+.Dl # ifconfig em0 inet 192.0.2.45 -alias
.Pp
Enable IPv6 functionality of the interface:
.Dl # ifconfig em0 inet6 -ifdisabled
Index: share/man/man5/rc.conf.5
===================================================================
--- share/man/man5/rc.conf.5
+++ share/man/man5/rc.conf.5
@@ -1264,11 +1264,11 @@
syntax with the address family keyword such as
.Li inet .
Assuming that the interface in question was
-.Li ed0 ,
+.Li em0 ,
it might look something like this:
.Bd -literal
-ifconfig_ed0_alias0="inet 127.0.0.253 netmask 0xffffffff"
-ifconfig_ed0_alias1="inet 127.0.0.254 netmask 0xffffffff"
+ifconfig_em0_alias0="inet 127.0.0.253 netmask 0xffffffff"
+ifconfig_em0_alias1="inet 127.0.0.254 netmask 0xffffffff"
.Ed
.Pp
It also possible to configure multiple IP addresses in Classless
@@ -1308,11 +1308,11 @@
.Li inet6 .
.Pp
With the interface in question being
-.Li ed0 ,
+.Li em0 ,
an example could look like:
.Bd -literal
-ifconfig_ed0_alias2="inet 192.0.2.129/27"
-ifconfig_ed0_alias3="inet 192.0.2.1-5/28"
+ifconfig_em0_alias2="inet 192.0.2.129/27"
+ifconfig_em0_alias3="inet 192.0.2.1-5/28"
.Ed
.Pp
and so on.
@@ -1334,10 +1334,10 @@
Execution stops at the first unsuccessful access, so if
something like this is present:
.Bd -literal
-ifconfig_ed0_alias0="inet 127.0.0.251 netmask 0xffffffff"
-ifconfig_ed0_alias1="inet 127.0.0.252 netmask 0xffffffff"
-ifconfig_ed0_alias2="inet 127.0.0.253 netmask 0xffffffff"
-ifconfig_ed0_alias4="inet 127.0.0.254 netmask 0xffffffff"
+ifconfig_em0_alias0="inet 127.0.0.251 netmask 0xffffffff"
+ifconfig_em0_alias1="inet 127.0.0.252 netmask 0xffffffff"
+ifconfig_em0_alias2="inet 127.0.0.253 netmask 0xffffffff"
+ifconfig_em0_alias4="inet 127.0.0.254 netmask 0xffffffff"
.Ed
.Pp
Then note that alias4 would
@@ -1353,7 +1353,7 @@
.Va ifconfig_ Ns Ao Ar interface Ac Ns Va _alias Ns Aq Ar n
and can have all of entries in a variable like the following:
.Bd -literal
-ifconfig_ed0_aliases="\\
+ifconfig_em0_aliases="\\
inet 127.0.0.251 netmask 0xffffffff \\
inet 127.0.0.252 netmask 0xffffffff \\
inet 127.0.0.253 netmask 0xffffffff \\
@@ -1460,11 +1460,11 @@
.Va ifconfig_ Ns Aq Ar interface
variable.
For instance, to initialize the
-.Li ed0
+.Li em0
device via DHCP,
it is possible to use something like:
.Bd -literal
-ifconfig_ed0="DHCP"
+ifconfig_em0="DHCP"
.Ed
.Pp
If you want to configure your wireless interface with
@@ -1515,7 +1515,7 @@
.Pp
It is also possible to rename an interface by doing:
.Bd -literal
-ifconfig_ed0_name="net0"
+ifconfig_em0_name="net0"
ifconfig_net0="inet 192.0.2.1 netmask 0xffffff00"
.Ed
.It Va ipv6_enable
@@ -1688,8 +1688,8 @@
keyword.
For example:
.Bd -literal
-ifconfig_ed0_ipv6="inet6 2001:db8:1::1 prefixlen 64"
-ifconfig_ed0_alias0="inet6 2001:db8:2::1 prefixlen 64"
+ifconfig_em0_ipv6="inet6 2001:db8:1::1 prefixlen 64"
+ifconfig_em0_alias0="inet6 2001:db8:2::1 prefixlen 64"
.Ed
.Pp
Interfaces that have an
@@ -1716,7 +1716,7 @@
If only a link-local address is needed on the interface,
the following configuration can be used:
.Bd -literal
-ifconfig_ed0_ipv6="inet6 auto_linklocal"
+ifconfig_em0_ipv6="inet6 auto_linklocal"
.Ed
.Pp
A link-local address can also be configured manually.
@@ -1725,7 +1725,7 @@
card is replaced.
For example:
.Bd -literal
-ifconfig_ed0_ipv6="inet6 fe80::1 prefixlen 64"
+ifconfig_em0_ipv6="inet6 fe80::1 prefixlen 64"
.Ed
.It Va ipv6_prefix_ Ns Aq Ar interface
.Pq Vt str
@@ -1739,15 +1739,15 @@
.Pp
For example, the following configuration
.Bd -literal
-ipv6_prefix_ed0="2001:db8:1:0 2001:db8:2:0"
+ipv6_prefix_em0="2001:db8:1:0 2001:db8:2:0"
.Ed
.Pp
is equivalent to the following:
.Bd -literal
-ifconfig_ed0_alias0="inet6 2001:db8:1:: eui64 prefixlen 64"
-ifconfig_ed0_alias1="inet6 2001:db8:1:: prefixlen 64 anycast"
-ifconfig_ed0_alias2="inet6 2001:db8:2:: eui64 prefixlen 64"
-ifconfig_ed0_alias3="inet6 2001:db8:2:: prefixlen 64 anycast"
+ifconfig_em0_alias0="inet6 2001:db8:1:: eui64 prefixlen 64"
+ifconfig_em0_alias1="inet6 2001:db8:1:: prefixlen 64 anycast"
+ifconfig_em0_alias2="inet6 2001:db8:2:: eui64 prefixlen 64"
+ifconfig_em0_alias3="inet6 2001:db8:2:: prefixlen 64 anycast"
.Ed
.Pp
These Subnet-Router anycast addresses will be added only when
Index: tools/tools/tinybsd/conf/firewall/etc/rc.firewall
===================================================================
--- tools/tools/tinybsd/conf/firewall/etc/rc.firewall
+++ tools/tools/tinybsd/conf/firewall/etc/rc.firewall
@@ -195,13 +195,13 @@
############
# set these to your outside interface network and netmask and ip
- oif="ed0"
+ oif="em0"
onet="192.0.2.0"
omask="255.255.255.240"
oip="192.0.2.1"
# set these to your inside interface network and netmask and ip
- iif="ed1"
+ iif="em1"
inet="192.0.2.16"
imask="255.255.255.240"
iip="192.0.2.17"
Index: usr.sbin/jail/jail.8
===================================================================
--- usr.sbin/jail/jail.8
+++ usr.sbin/jail/jail.8
@@ -1101,7 +1101,7 @@
mount.devfs;
host.hostname = testhostname;
ip4.addr = 192.0.2.100;
- interface = ed0;
+ interface = em0;
exec.start = "/bin/sh /etc/rc";
exec.stop = "/bin/sh /etc/rc.shutdown";
}

File Metadata

Mime Type
text/plain
Expires
Fri, Feb 27, 1:13 PM (17 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29019698
Default Alt Text
D20311.id57544.diff (10 KB)

Event Timeline