FreeBSD Bugzilla – Attachment 152507 Details for
Bug 187203
[hyper-v] CARP protocol not work on HYPER-V 2012 R2
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch
hv-carp.diff (text/plain), 1.07 KB, created by
Xin LI
on 2015-02-03 06:12:04 UTC
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Xin LI
Created:
2015-02-03 06:12:04 UTC
Size:
1.07 KB
patch
obsolete
>Index: sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c >=================================================================== >--- sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c (revision 278136) >+++ sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c (working copy) >@@ -736,7 +736,14 @@ hn_ioctl(struct ifnet *ifp, u_long cmd, caddr_t da > switch(cmd) { > > case SIOCSIFADDR: >- case SIOCGIFADDR: >+#ifdef INET >+ if (ifa->ifa_addr->sa_family == AF_INET) { >+ ifp->if_flags |= IFF_UP; >+ if (!(ifp->if_drv_flags & IFF_DRV_RUNNING)) >+ hn_ifinit(sc); >+ arp_ifinit(ifp, ifa); >+ } else >+#endif > error = ether_ioctl(ifp, cmd, data); > break; > case SIOCSIFMTU: >@@ -900,6 +907,7 @@ hn_stop(hn_softc_t *sc) > printf(" Closing Device ...\n"); > > ifp->if_drv_flags &= ~(IFF_DRV_RUNNING | IFF_DRV_OACTIVE); >+ if_link_state_change(ifp, LINK_STATE_DOWN); > sc->hn_initdone = 0; > > ret = hv_rf_on_close(device_ctx); >@@ -949,6 +957,7 @@ hn_ifinit_locked(hn_softc_t *sc) > } > ifp->if_drv_flags |= IFF_DRV_RUNNING; > ifp->if_drv_flags &= ~IFF_DRV_OACTIVE; >+ if_link_state_change(ifp, LINK_STATE_UP); > } > > /*
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 187203
:
151515
| 152507