VirtualBox

Changeset 76957 in vbox


Ignore:
Timestamp:
Jan 23, 2019 5:18:20 PM (6 years ago)
Author:
vboxsync
Message:

NAT/Net: pxtcp::msg_inpull is only used under specific ifdef, so use
the same ifdef for it and its callback.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/NetworkServices/NAT/pxtcp.c

    r76553 r76957  
    219219    struct tcpip_msg msg_outbound; /* trigger send of outbound data */
    220220    struct tcpip_msg msg_inbound;  /* trigger send of inbound data */
     221#if HAVE_TCP_POLLHUP
    221222    struct tcpip_msg msg_inpull;   /* trigger pull of last inbound data */
     223#endif
    222224};
    223225
     
    265267static void pxtcp_pcb_write_outbound(void *);
    266268static void pxtcp_pcb_write_inbound(void *);
     269#if HAVE_TCP_POLLHUP
    267270static void pxtcp_pcb_pull_inbound(void *);
     271#endif
    268272
    269273/* tcp pcb callbacks */
     
    635639    CALLBACK_MSG(msg_outbound, pxtcp_pcb_write_outbound);
    636640    CALLBACK_MSG(msg_inbound, pxtcp_pcb_write_inbound);
     641#if HAVE_TCP_POLLHUP
    637642    CALLBACK_MSG(msg_inpull, pxtcp_pcb_pull_inbound);
     643#endif
    638644
    639645#undef CALLBACK_MSG
     
    24072413
    24082414
     2415#if HAVE_TCP_POLLHUP
    24092416/**
    24102417 * Callback from poll manager (pxtcp::msg_inpull) to switch
     
    24402447    pxtcp_pcb_sent(pxtcp, pxtcp->pcb, 0);
    24412448}
     2449#endif  /* HAVE_TCP_POLLHUP */
    24422450
    24432451
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