VirtualBox

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


Ignore:
Timestamp:
Feb 19, 2009 1:36:07 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
43104
Message:

NAT: logging

File:
1 edited

Legend:

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

    r16946 r16948  
    11211121                int status = getsockopt(so->s, SOL_SOCKET, SO_ERROR, &err, &optlen);
    11221122                if (status != 0)
    1123                     LogRel(("NAT:can't get error status from %R[natsock]\n", so));
     1123                    LogRel(("NAT: can't get error status from %R[natsock]\n", so));
    11241124#ifndef RT_OS_SOLARIS
    11251125                status = ioctl(so->s, FIONREAD, &inq); /* tcp(7) recommends SIOCINQ which is Linux specific */
     
    11271127                {
    11281128                    /* EINVAL returned if socket in listen state tcp(7)*/
    1129                     LogRel(("NAT:can't get depth of IN queue status from %R[natsock]\n", so));
     1129                    LogRel(("NAT: can't get depth of IN queue status from %R[natsock]\n", so));
    11301130                }
    11311131                status = ioctl(so->s, TIOCOUTQ, &outq); /* SIOCOUTQ see previous comment */
    11321132                if (status != 0)
    1133                     LogRel(("NAT:can't get depth of OUT queue from %R[natsock]\n", so));
     1133                    LogRel(("NAT: can't get depth of OUT queue from %R[natsock]\n", so));
    11341134#else
    11351135                inq = outq = -1;
     
    11531153                         * Give TCP/IP stack wait or expire the socket.
    11541154                         */
    1155                         LogRel(("NAT:%R[natsock] err(%d:%s) s(in:%d,out:%d)happens on read I/O, "
     1155                        LogRel(("NAT: %R[natsock] err(%d:%s) s(in:%d,out:%d)happens on read I/O, "
    11561156                            "other side close connection \n", so, err, strerror(err), inq, outq));
    11571157                        CONTINUE(tcp);
     
    11631163                    && !UNIX_CHECK_FD_SET(so, NetworkEvents, xfds))
    11641164                {
    1165                     LogRel(("NAT:system expires the socket %R[natsock] err(%d:%s) s(in:%d,out:%d) happens on non-I/O. ",
     1165                    LogRel(("NAT: system expires the socket %R[natsock] err(%d:%s) s(in:%d,out:%d) happens on non-I/O. ",
    11661166                            so, err, strerror(err), inq, outq));
    11671167                    goto tcp_input_close;
    11681168                }
    1169                 LogRel(("NAT:%R[natsock] we've met(%d:%s) s(in:%d, out:%d) unhandled combination hup (%d) "
     1169                LogRel(("NAT: %R[natsock] we've met(%d:%s) s(in:%d, out:%d) unhandled combination hup (%d) "
    11701170                    "rederr(%d) on (r:%d, w:%d, x:%d)\n",
    11711171                        so, err, strerror(err),
     
    13861386    if (!m)
    13871387    {
    1388         LogRel(("can't allocate new mbuf\n"));
     1388        LogRel(("NAT: can't allocate new mbuf\n"));
    13891389        return;
    13901390    }
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