VirtualBox

Changeset 40421 in vbox


Ignore:
Timestamp:
Mar 11, 2012 2:28:13 AM (13 years ago)
Author:
vboxsync
Message:

NAT: warnings [-Wunused-but-set-variable]

Location:
trunk/src/VBox/Devices/Network/slirp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/slirp/bootp.c

    r40122 r40421  
    348348static int dhcp_send_nack(PNATState pData, struct bootp_t *bp, BOOTPClient *bc, struct mbuf *m)
    349349{
    350     struct bootp_t *rbp;
    351     rbp = mtod(m, struct bootp_t *);
    352350    NOREF(bc);
    353351
  • trunk/src/VBox/Devices/Network/slirp/ip_icmp.c

    r40048 r40421  
    201201    struct socket *last_socket = NULL;
    202202    struct socket *so = NULL;
    203     struct in_addr laddr, faddr;
     203    struct in_addr faddr;
    204204    u_short lport, fport;
    205205
    206     laddr.s_addr = ~0;
    207206    faddr.s_addr = ~0;
    208207
     
    260259            faddr.s_addr = ip->ip_dst.s_addr;
    261260            fport = udp->uh_dport;
    262             laddr.s_addr = ip->ip_src.s_addr;
    263261            lport = udp->uh_sport;
    264262            last_socket = udp_last_so;
     
    272270                faddr.s_addr = ip->ip_dst.s_addr;
    273271                fport = tcp->th_dport;
    274                 laddr.s_addr = ip->ip_src.s_addr;
    275272                lport = tcp->th_sport;
    276273                last_socket = tcp_last_so;
     
    709706        /* DEBUG : append message to ICMP packet */
    710707        int message_len;
    711         char *cpnt;
    712708        message_len = strlen(message);
    713709        if (message_len > ICMP_MAXDATALEN)
    714710            message_len = ICMP_MAXDATALEN;
    715         cpnt = (char *)m->m_data+m->m_len;
    716711        m_append(pData, m, message_len, message);
    717712    }
Note: See TracChangeset for help on using the changeset viewer.

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