VirtualBox

儲存庫 vbox 的更動 15393


忽略:
時間撮記:
2008-12-12 下午07:16:05 (16 年 以前)
作者:
vboxsync
訊息:

slirp:icmp: move debuging in more correct and safier way

位置:
trunk/src/VBox/Devices/Network/slirp
檔案:
修改 3 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Devices/Network/slirp/bootp.c

    r15293 r15393  
    153153        LogRel(("NAT: %s %R[IP4]\n",
    154154                rc ? "DHCP released IP address" : "Ignored DHCP release for IP address",
    155                 &bp->bp_ciaddr));
     155                bp->bp_ciaddr.s_addr));
    156156        /* This message is not to be answered in any way. */
    157157        return;
     
    245245    if (send_nak)
    246246        LogRel(("NAT: Client requested IP address %R[IP4] -- sending NAK\n",
    247                 &requested_ip));
     247                requested_ip.s_addr));
    248248    else
    249249        LogRel(("NAT: DHCP offered IP address %R[IP4]\n",
    250                 &daddr.sin_addr));
     250                daddr.sin_addr.s_addr));
    251251
    252252    if (   dhcp_msg_type == DHCPDISCOVER
  • trunk/src/VBox/Devices/Network/slirp/debug.c

    r15287 r15393  
    230230    AssertReturn(strcmp(pszType, "IP4") == 0, 0);
    231231
    232     ip = ntohl(*(uint32_t*)pvValue);
     232    ip = ntohl((uint32_t)(uintptr_t)pvValue);
    233233    return RTStrFormat(pfnOutput, pvArgOutput, NULL, 0, IP4_ADDR_PRINTF_FORMAT,
    234234           IP4_ADDR_PRINTF_DECOMP(ip));
  • trunk/src/VBox/Devices/Network/slirp/ip_icmp.c

    r15387 r15393  
    219219            {
    220220                /* Should be reaplaced by hash here */
    221                 LogRel(("trying:%R[natsock] against %R[IP4]:%d lport=%d hlport=%d\n", so, &faddr, fport, lport, so->so_hlport));
     221                LogRel(("trying:%R[natsock] against %R[IP4]:%d lport=%d hlport=%d\n", so, faddr.s_addr, fport, lport, so->so_hlport));
    222222                if (   so->so_faddr.s_addr == faddr.s_addr
    223223                    && so->so_fport == fport
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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