]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r272889 and r287402:
authorhrs <hrs@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 9 Sep 2015 08:52:39 +0000 (08:52 +0000)
committerhrs <hrs@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 9 Sep 2015 08:52:39 +0000 (08:52 +0000)
commit2fd9fdd39a3f5aaeff013d33b42cf6672cdbf1e0
treeda5b34b14c500260f058097118ab6faa9fe63e0c
parentb9dec674667b540a4ca99f4a3831d350c133ab6b
MFC r272889 and r287402:

- Virtualize if_epair(4).  An if_xname check for both "a" and "b" interfaces
  is added to return EEXIST when only "b" interface exists---this can happen
  when epair<N>b is moved to a vnet jail and then "ifconfig epair<N> create"
  is invoked there.

- Fix a panic which was reproducible by an infinite loop of
  "ifconfig epair0 create && ifconfig epair0a destroy".
  This was caused by an uninitialized function pointer in
  softc->media.

git-svn-id: svn://svn.freebsd.org/base/stable/10@287594 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/net/if_epair.c