VirtualBox

Changeset 16511 in vbox for trunk/src/VBox/Devices/Network


Ignore:
Timestamp:
Feb 4, 2009 12:45:10 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
42430
Message:

NAT: cosmetics

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/slirp/ip_icmp.h

    r15636 r16511  
    171171void icmp_reflect _P((PNATState, struct mbuf *));
    172172
    173 struct icmp_msg{
     173struct icmp_msg
     174{
    174175    LIST_ENTRY(icmp_msg) im_list;
    175176    struct mbuf *im_m;
  • trunk/src/VBox/Devices/Network/slirp/slirp.c

    r16501 r16511  
    5555            /* This should not happen */                                                        \
    5656            error = WSAGetLastError();                                                          \
    57             LogRel(("WSAEventSelector (" #label ") error %d (so=%x, socket=%s, event=%x)\n",    \
     57            LogRel(("WSAEventSelect (" #label ") error %d (so=%x, socket=%s, event=%x)\n",      \
    5858                        error, (so), (so)->s, VBOX_SOCKET_EVENT));                              \
    5959        }                                                                                       \
    60     } while(0);                                                                                                 \
     60    } while(0);                                                                                 \
    6161    CONTINUE(label)
    6262
  • trunk/src/VBox/Devices/Network/slirp/socket.c

    r16504 r16511  
    202202         * would be dangerous.
    203203         */
    204         int status = 0;
     204        int status, ignored;
    205205        unsigned long pending = 0;
    206         int ignored;
    207206        status = WSAIoctl(so->s, FIONREAD, NULL, 0, &pending, sizeof(unsigned long), &ignored, NULL, NULL);
    208         if(status < 0)
    209         {
     207        if (status < 0)
    210208            Log2(("error in WSAIoctl: %d\n", WSAGetLastError()));
    211         }
    212209        if (nn == 0 && (pending != 0))
    213210        {
  • trunk/src/VBox/Devices/Network/slirp/udp.c

    r16449 r16511  
    161161     */
    162162    if (   ntohs(uh->uh_dport) == TFTP_SERVER
    163             && CTL_CHECK(ntohl(ip->ip_dst.s_addr), CTL_TFTP))
     163        && CTL_CHECK(ntohl(ip->ip_dst.s_addr), CTL_TFTP))
    164164    {
    165165        tftp_input(pData, m);
Note: See TracChangeset for help on using the changeset viewer.

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