VirtualBox

忽略:
時間撮記:
2024-5-13 下午03:19:03 (10 月 以前)
作者:
vboxsync
svn:sync-xref-src-repo-rev:
163144
訊息:

NetworkServices/NAT: Some unused variable fixes, bugref:3409

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/NetworkServices/NAT/pxping.c

    r98103 r104603  
    686686    int hopl;
    687687    u16_t iphlen;
    688     u16_t id, seq;
     688    u16_t id;
    689689    int status;
    690690
     
    695695
    696696    id  = icmph->id;
    697     seq = icmph->seqno;
    698 
    699697    pcb = pxping_pcb_for_request(pxping, 1,
    700698                                 ipX_current_src_addr(),
     
    708706    DPRINTF(("ping %p: %R[ping_pcb] seq %d len %u hopl %d\n",
    709707             pcb, pcb,
    710              ntohs(seq), (unsigned int)p->tot_len,
     708             ntohs(icmph->seqno), (unsigned int)p->tot_len,
    711709             IP6H_HOPLIM(iph)));
    712710
     
    12591257    struct ip_hdr *iph;
    12601258    struct icmp_echo_hdr *icmph;
    1261     u16_t id, seq;
     1259    u16_t id;
    12621260    ip_addr_t guest_ip, target_ip;
    12631261    int mapped;
     
    12721270
    12731271    id  = icmph->id;
    1274     seq = icmph->seqno;
    1275 
    12761272    DPRINTF(("<--- PING %RTnaipv4 id 0x%x seq %d\n",
    1277              peer->sin_addr.s_addr, ntohs(id), ntohs(seq)));
     1273             peer->sin_addr.s_addr, ntohs(id), ntohs(icmph->seqno)));
    12781274
    12791275    /*
     
    13621358    struct icmp_echo_hdr *icmph, *oicmph;
    13631359    u16_t oipoff, oiphlen, oiplen;
    1364     u16_t id, seq;
     1360    u16_t id;
    13651361    ip_addr_t guest_ip, target_ip, error_ip;
    13661362    int target_mapped, error_mapped;
     
    14241420
    14251421    id  = oicmph->id;
    1426     seq = oicmph->seqno;
    14271422
    14281423    DPRINTF2(("%s: ping %RTnaipv4 id 0x%x seq %d",
    1429               __func__, ip4_addr_get_u32(&oiph->dest), ntohs(id), ntohs(seq)));
     1424              __func__, ip4_addr_get_u32(&oiph->dest), ntohs(id), ntohs(oicmph->seqno)));
    14301425    if (ICMPH_TYPE(icmph) == ICMP_DUR) {
    14311426        DPRINTF2((" unreachable (code %d)\n", ICMPH_CODE(icmph)));
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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