VirtualBox

儲存庫 vbox 的更動 50173


忽略:
時間撮記:
2014-1-23 上午05:45:23 (11 年 以前)
作者:
vboxsync
訊息:

lwip: Sync with git master up to
commit 08370c723092e7a8f5cbea3f063f460cb7530d26
Date: Thu Jan 16 21:28:38 2014 +0100

These changes don't affect VBox, same object code is generated.

位置:
trunk/src/VBox/Devices/Network/lwip-new
檔案:
修改 6 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Devices/Network/lwip-new/CHANGELOG

    r50171 r50173  
    8080
    8181 ++ 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
    8293
    8394  2014-01-10: Simon Goldschmidt
  • trunk/src/VBox/Devices/Network/lwip-new/src/api/tcpip.c

    r48092 r50173  
    4747#include "lwip/tcpip.h"
    4848#include "lwip/init.h"
     49#include "lwip/ip.h"
    4950#include "netif/etharp.h"
    5051#include "netif/ppp_oe.h"
  • trunk/src/VBox/Devices/Network/lwip-new/src/core/snmp/mib2.c

    r47886 r50173  
    773773static const u8_t sysdescr_len_default = 4;
    774774static 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];
     775static const u8_t* sysdescr_len_ptr = &sysdescr_len_default;
     776static const u8_t* sysdescr_ptr = &sysdescr_default[0];
    777777/** mib-2.system.sysContact */
    778778static const u8_t syscontact_len_default = 0;
     
    903903 * @param n number of octets to copy.
    904904 */
    905 static void ocstrncpy(u8_t *dst, u8_t *src, u16_t n)
     905static void ocstrncpy(u8_t *dst, const u8_t *src, u16_t n)
    906906{
    907907  u16_t i = n;
     
    919919 * @param n number of sub identifiers to copy.
    920920 */
    921 void objectidncpy(s32_t *dst, s32_t *src, u8_t n)
     921void objectidncpy(s32_t *dst, const s32_t *src, u8_t n)
    922922{
    923923  u8_t i = n;
     
    934934 * @param len points to string length, excluding zero terminator
    935935 */
    936 void snmp_set_sysdesr(u8_t *str, u8_t *len)
     936void snmp_set_sysdescr(const u8_t *str, const u8_t *len)
    937937{
    938938  if (str != NULL)
  • trunk/src/VBox/Devices/Network/lwip-new/src/core/timers.c

    r47886 r50173  
    369369{
    370370  struct sys_timeo *timeout, *t;
     371#if NO_SYS
     372  u32_t now, diff;
     373#endif
    371374
    372375  timeout = (struct sys_timeo *)memp_malloc(MEMP_SYS_TIMEOUT);
     
    375378    return;
    376379  }
     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
    377391  timeout->next = NULL;
    378392  timeout->h = handler;
    379393  timeout->arg = arg;
     394#if NO_SYS
     395  timeout->time = msecs + diff;
     396#else
    380397  timeout->time = msecs;
     398#endif
    381399#if LWIP_DEBUG_TIMERNAMES
    382400  timeout->handler_name = handler_name;
     
    480498        /* timeout has expired */
    481499        had_one = 1;
    482         timeouts_last_time = now;
     500        timeouts_last_time += tmptimeout->time;
    483501        diff -= tmptimeout->time;
    484502        next_timeout = tmptimeout->next;
  • trunk/src/VBox/Devices/Network/lwip-new/src/include/lwip/snmp.h

    r47886 r50173  
    9999
    100100/* system */
    101 void snmp_set_sysdesr(u8_t* str, u8_t* len);
     101void snmp_set_sysdescr(const u8_t* str, const u8_t* len);
    102102void snmp_set_sysobjid(struct snmp_obj_id *oid);
    103103void snmp_get_sysobjid_ptr(struct snmp_obj_id **oid);
     
    232232
    233233/* system */
    234 #define snmp_set_sysdesr(str, len)
     234#define snmp_set_sysdescr(str, len)
    235235#define snmp_set_sysobjid(oid);
    236236#define snmp_get_sysobjid_ptr(oid)
  • trunk/src/VBox/Devices/Network/lwip-new/src/include/lwip/sockets.h

    r50169 r50173  
    168168
    169169#define IPPROTO_IP      0
     170#define IPPROTO_ICMP    1
    170171#define IPPROTO_TCP     6
    171172#define IPPROTO_UDP     17
    172173#if LWIP_IPV6
    173174#define IPPROTO_IPV6    41
     175#define IPPROTO_ICMPV6  58
    174176#endif /* LWIP_IPV6 */
    175177#define IPPROTO_UDPLITE 136
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette