VirtualBox

Changeset 28483 in vbox


Ignore:
Timestamp:
Apr 19, 2010 4:51:41 PM (15 years ago)
Author:
vboxsync
Message:

NAT: nuke dead code.

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

Legend:

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

    r28449 r28483  
    100100}
    101101
    102 void
    103 fd_block(int fd)
    104 {
    105 #ifdef FIONBIO
    106     int opt = 0;
    107 
    108     ioctlsocket(fd, FIONBIO, &opt);
    109 #else
    110     int opt;
    111 
    112     opt = fcntl(fd, F_GETFL, 0);
    113     opt &= ~O_NONBLOCK;
    114     fcntl(fd, F_SETFL, opt);
    115 #endif
    116 }
    117102
    118103#ifdef VBOX_WITH_SLIRP_BSD_MBUF
  • trunk/src/VBox/Devices/Network/slirp/misc.h

    r28482 r28483  
    3333
    3434
    35 extern int x_port, x_server, x_display;
    36 
    37 int show_x (char *, struct socket *);
    38 void redir_x (u_int32_t, int, int, int);
    3935void getouraddr (PNATState);
    4036void slirp_insque  (PNATState, void *, void *);
    4137void slirp_remque  (PNATState, void *);
    42 int slirp_openpty (int *, int *);
    43 int fork_exec (PNATState, struct socket *, char *, int);
    44 void snooze_hup (int);
    45 void snooze (void);
    46 void relay (int);
    47 void add_emu (char *);
    4838void fd_nonblock (int);
    49 void fd_block (int);
    5039
    5140#ifdef VBOX_WITH_SLIRP_BSD_MBUF
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