儲存庫 vbox 的更動 50173
- 時間撮記:
- 2014-1-23 上午05:45:23 (11 年 以前)
- 位置:
- trunk/src/VBox/Devices/Network/lwip-new
- 檔案:
-
- 修改 6 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Devices/Network/lwip-new/CHANGELOG
r50171 r50173 80 80 81 81 ++ Bugfixes: 82 83 2014-01-14: "Freddie Chopin" 84 * snmp.h, mib2.c: fixed constness and spelling of sysdescr 85 86 2014-01-14: Simon Goldschmidt (patch by Thomas Faber) 87 * tcpip.c: patch #8241: Fix implicit declaration of ip_input with 88 LWIP_TCPIP_CORE_LOCKING_INPUT disabled 89 90 2014-01-14: chrysn 91 * timers.c: patch #8244 make timeouts usable reliably from outside of the 92 timeout routine 82 93 83 94 2014-01-10: Simon Goldschmidt -
trunk/src/VBox/Devices/Network/lwip-new/src/api/tcpip.c
r48092 r50173 47 47 #include "lwip/tcpip.h" 48 48 #include "lwip/init.h" 49 #include "lwip/ip.h" 49 50 #include "netif/etharp.h" 50 51 #include "netif/ppp_oe.h" -
trunk/src/VBox/Devices/Network/lwip-new/src/core/snmp/mib2.c
r47886 r50173 773 773 static const u8_t sysdescr_len_default = 4; 774 774 static const u8_t sysdescr_default[] = "lwIP"; 775 static u8_t* sysdescr_len_ptr = (u8_t*)&sysdescr_len_default;776 static u8_t* sysdescr_ptr = (u8_t*)&sysdescr_default[0];775 static const u8_t* sysdescr_len_ptr = &sysdescr_len_default; 776 static const u8_t* sysdescr_ptr = &sysdescr_default[0]; 777 777 /** mib-2.system.sysContact */ 778 778 static const u8_t syscontact_len_default = 0; … … 903 903 * @param n number of octets to copy. 904 904 */ 905 static void ocstrncpy(u8_t *dst, u8_t *src, u16_t n)905 static void ocstrncpy(u8_t *dst, const u8_t *src, u16_t n) 906 906 { 907 907 u16_t i = n; … … 919 919 * @param n number of sub identifiers to copy. 920 920 */ 921 void objectidncpy(s32_t *dst, s32_t *src, u8_t n)921 void objectidncpy(s32_t *dst, const s32_t *src, u8_t n) 922 922 { 923 923 u8_t i = n; … … 934 934 * @param len points to string length, excluding zero terminator 935 935 */ 936 void snmp_set_sysdes r(u8_t *str,u8_t *len)936 void snmp_set_sysdescr(const u8_t *str, const u8_t *len) 937 937 { 938 938 if (str != NULL) -
trunk/src/VBox/Devices/Network/lwip-new/src/core/timers.c
r47886 r50173 369 369 { 370 370 struct sys_timeo *timeout, *t; 371 #if NO_SYS 372 u32_t now, diff; 373 #endif 371 374 372 375 timeout = (struct sys_timeo *)memp_malloc(MEMP_SYS_TIMEOUT); … … 375 378 return; 376 379 } 380 381 #if NO_SYS 382 now = sys_now(); 383 if (next_timeout == NULL) { 384 diff = 0; 385 timeouts_last_time = now; 386 } else { 387 diff = now - timeouts_last_time; 388 } 389 #endif 390 377 391 timeout->next = NULL; 378 392 timeout->h = handler; 379 393 timeout->arg = arg; 394 #if NO_SYS 395 timeout->time = msecs + diff; 396 #else 380 397 timeout->time = msecs; 398 #endif 381 399 #if LWIP_DEBUG_TIMERNAMES 382 400 timeout->handler_name = handler_name; … … 480 498 /* timeout has expired */ 481 499 had_one = 1; 482 timeouts_last_time = now;500 timeouts_last_time += tmptimeout->time; 483 501 diff -= tmptimeout->time; 484 502 next_timeout = tmptimeout->next; -
trunk/src/VBox/Devices/Network/lwip-new/src/include/lwip/snmp.h
r47886 r50173 99 99 100 100 /* system */ 101 void snmp_set_sysdes r(u8_t* str,u8_t* len);101 void snmp_set_sysdescr(const u8_t* str, const u8_t* len); 102 102 void snmp_set_sysobjid(struct snmp_obj_id *oid); 103 103 void snmp_get_sysobjid_ptr(struct snmp_obj_id **oid); … … 232 232 233 233 /* system */ 234 #define snmp_set_sysdes r(str, len)234 #define snmp_set_sysdescr(str, len) 235 235 #define snmp_set_sysobjid(oid); 236 236 #define snmp_get_sysobjid_ptr(oid) -
trunk/src/VBox/Devices/Network/lwip-new/src/include/lwip/sockets.h
r50169 r50173 168 168 169 169 #define IPPROTO_IP 0 170 #define IPPROTO_ICMP 1 170 171 #define IPPROTO_TCP 6 171 172 #define IPPROTO_UDP 17 172 173 #if LWIP_IPV6 173 174 #define IPPROTO_IPV6 41 175 #define IPPROTO_ICMPV6 58 174 176 #endif /* LWIP_IPV6 */ 175 177 #define IPPROTO_UDPLITE 136
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器