- Timestamp:
- Aug 4, 2016 9:08:23 PM (9 years ago)
- Location:
- trunk/src/VBox/Devices/Network/lwip-new
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/lwip-new/src/core/ipv6/ip6_frag.c
r50023 r63011 449 449 /* Adjust datagram length by adding preceding header lengths. */ 450 450 unfrag_len = (u8_t *)p->payload - (u8_t *)ipr->iphdr0; 451 # ifndef VBOX 451 452 ipr->datagram_len += unfrag_len - IP6_HLEN + IP6_FRAG_HLEN; 453 # else 454 LWIP_ASSERT("overflow", (s16_t)unfrag_len == (ssize_t)unfrag_len); /* s16_t because of pbuf_header call */ 455 ipr->datagram_len += (u16_t)(unfrag_len - IP6_HLEN + IP6_FRAG_HLEN); 456 # endif 452 457 453 458 /* Set payload length in ip header. */ … … 474 479 475 480 /* Move pbuf back to IPv6 header. */ 481 # ifndef VBOX 476 482 if (pbuf_header(p, unfrag_len) != 0) { 483 # else 484 if (pbuf_header(p, (s16_t)unfrag_len) != 0) { 485 # endif 477 486 LWIP_ASSERT("ip6_reass: moving p->payload to ip6 header failed\n", 0); 478 487 goto nullreturn; -
trunk/src/VBox/Devices/Network/lwip-new/src/core/netif.c
r50185 r63011 888 888 netif_create_ip6_linklocal_address(struct netif * netif, u8_t from_mac_48bit) 889 889 { 890 #ifndef VBOX 890 891 u8_t i, addr_index; 892 #else 893 u8_t i; 894 #endif 891 895 892 896 /* Link-local prefix. */ -
trunk/src/VBox/Devices/Network/lwip-new/src/core/tcp_in.c
r58592 r63011 502 502 struct tcp_pcb *npcb; 503 503 err_t rc; 504 #ifdef VBOX 505 (void)syn; 506 #endif 504 507 505 508 if (flags & TCP_RST) { -
trunk/src/VBox/Devices/Network/lwip-new/vbox/sys_arch.c
r62499 r63011 179 179 int rc; 180 180 struct sys_mbox *mbox = NULL; 181 RT_NOREF(size); /** @todo safe to ignore this? */ 181 182 182 183 if (pvMbox == NULL) … … 326 327 uint64_t tsStart, tsEnd; 327 328 struct sys_mbox *mbox = NULL; 329 328 330 if (!pvMbox || !*pvMbox) return 0; 329 AssertReturn(pvMbox && *pvMbox, ERR_ARG);330 331 mbox = (struct sys_mbox*)*pvMbox; 331 332 … … 493 494 * to make lwip thread main function compatible with IPRT thread main function. 494 495 */ 495 static DECLCALLBACK(int) sys_thread_adapter(RTTHREAD ThreadSelf, void *pvUser)496 static DECLCALLBACK(int) sys_thread_adapter(RTTHREAD hThreadSelf, void *pvUser) 496 497 { 497 498 THREADLOCALSTORAGE *tls = (THREADLOCALSTORAGE *)pvUser; 499 RT_NOREF(hThreadSelf); 500 498 501 tls->thread(tls->arg); 499 return 0; 502 503 return VINF_SUCCESS; 500 504 } 501 505 … … 511 515 unsigned id; 512 516 RTTHREAD tid; 517 518 RT_NOREF(prio, stacksize, name); 513 519 514 520 #if SYS_LIGHTWEIGHT_PROT
Note:
See TracChangeset
for help on using the changeset viewer.