Changeset 62961 in vbox for trunk/src/VBox/Devices/Network
- Timestamp:
- Aug 4, 2016 8:14:22 AM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 109564
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DevINIP.cpp
r62511 r62961 181 181 static err_t devINIPOutputRaw(struct netif *netif, struct pbuf *p) 182 182 { 183 NOREF(netif); 183 184 int rc = VINF_SUCCESS; 184 185 … … 322 323 static DECLCALLBACK(int) devINIPNetworkDown_WaitInputAvail(PPDMINETWORKDOWN pInterface, RTMSINTERVAL cMillies) 323 324 { 325 RT_NOREF(pInterface, cMillies); 324 326 LogFlow(("%s: pInterface=%p\n", __FUNCTION__, pInterface)); 325 327 LogFlow(("%s: return VINF_SUCCESS\n", __FUNCTION__)); … … 337 339 static DECLCALLBACK(int) devINIPNetworkDown_Input(PPDMINETWORKDOWN pInterface, const void *pvBuf, size_t cb) 338 340 { 341 RT_NOREF(pInterface); 339 342 const uint8_t *pbBuf = (const uint8_t *)pvBuf; 340 343 size_t len = cb; 341 344 const struct eth_hdr *ethhdr; 342 345 struct pbuf *p, *q; 343 int rc = VINF_SUCCESS;344 346 345 347 LogFlow(("%s: pInterface=%p pvBuf=%p cb=%lu\n", __FUNCTION__, pInterface, pvBuf, cb)); … … 350 352 if (!g_pDevINIPData) 351 353 { 352 LogFlow(("%s: return %Rrc (no global)\n", __FUNCTION__, rc));354 LogFlow(("%s: return %Rrc (no global)\n", __FUNCTION__, VINF_SUCCESS)); 353 355 return VINF_SUCCESS; 354 356 } … … 359 361 360 362 /* We allocate a pbuf chain of pbufs from the pool. */ 361 p = lwip_pbuf_alloc(PBUF_RAW, len, PBUF_POOL); 363 Assert((u16_t)len == len); 364 p = lwip_pbuf_alloc(PBUF_RAW, (u16_t)len, PBUF_POOL); 362 365 if (p != NULL) 363 366 { … … 384 387 } 385 388 386 LogFlow(("%s: return %Rrc\n", __FUNCTION__, rc));387 return rc;389 LogFlow(("%s: return %Rrc\n", __FUNCTION__, VINF_SUCCESS)); 390 return VINF_SUCCESS; 388 391 } 389 392 … … 605 608 static DECLCALLBACK(int) devINIPConstruct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfg) 606 609 { 610 RT_NOREF(iInstance); 607 611 PDEVINTNETIP pThis = PDMINS_2_DATA(pDevIns, PDEVINTNETIP); 608 int rc = VINF_SUCCESS;609 err_t errRc = ERR_OK;610 612 611 613 LogFlow(("%s: pDevIns=%p iInstance=%d pCfg=%p\n", __FUNCTION__, … … 646 648 * Get the configuration settings. 647 649 */ 648 rc = CFGMR3QueryBytes(pCfg, "MAC", &pThis->MAC, sizeof(pThis->MAC));650 int rc = CFGMR3QueryBytes(pCfg, "MAC", &pThis->MAC, sizeof(pThis->MAC)); 649 651 if (rc == VERR_CFGM_NOT_BYTES) 650 652 {
Note:
See TracChangeset
for help on using the changeset viewer.