Changeset 58207 in vbox
- Timestamp:
- Oct 12, 2015 9:29:02 PM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 103326
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxNetAdp/linux/VBoxNetAdp-linux.c
r57841 r58207 200 200 memcpy(pNetDev->dev_addr, pMACAddress, ETH_ALEN); 201 201 Log2(("vboxNetAdpOsCreate: pNetDev->dev_addr = %.6Rhxd\n", pNetDev->dev_addr)); 202 203 /* 204 * To get proper operstate transition to IF_OPER_UP we 205 * need to call netif_carrier_on(), which triggers netlink 206 * notifications that do the work. But first we need to 207 * turn it off here, otherwise that call will do nothing 208 * and we will be stuck in IF_OPER_UNKNOWN. 209 * 210 * Do this before registration so that only the state bit 211 * is set, but no state change notifications are generated. 212 */ 213 netif_carrier_off(pNetDev); 214 202 215 err = register_netdev(pNetDev); 203 216 if (!err) … … 206 219 pThis->szName[sizeof(pThis->szName) - 1] = '\0'; 207 220 pThis->u.s.pNetDev = pNetDev; 221 222 /* 223 * TODO: We might want to set carrier only when 224 * VBoxNetFlt attaches the intnet to us. 225 */ 226 netif_carrier_on(pNetDev); 227 208 228 Log2(("vboxNetAdpOsCreate: pThis=%p pThis->szName = %p\n", pThis, pThis->szName)); 209 229 return VINF_SUCCESS;
Note:
See TracChangeset
for help on using the changeset viewer.