VirtualBox

Ignore:
Timestamp:
Nov 5, 2015 2:40:13 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
103939
Message:

lwip: make tcp_accept_null globally visible, use it instead of
tcp_proxy_accept_null and g/c the latter.

Location:
trunk/src/VBox/Devices/Network/lwip-new/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/lwip-new/src/core/tcp.c

    r58555 r58581  
    532532 * Default accept callback if no accept callback is specified by the user.
    533533 */
    534 static err_t
     534err_t
    535535tcp_accept_null(void *arg, struct tcp_pcb *pcb, err_t err)
    536536{
  • trunk/src/VBox/Devices/Network/lwip-new/src/core/tcp_in.c

    r58555 r58581  
    6464
    6565#if LWIP_CONNECTION_PROXY
    66 static err_t tcp_proxy_accept_null(void *arg, struct tcp_pcb *pcb, err_t err);
    67 
    68 tcp_accept_fn tcp_proxy_accept_callback = tcp_proxy_accept_null;
     66tcp_accept_fn tcp_proxy_accept_callback = tcp_accept_null;
    6967#endif
    7068
     
    615613
    616614#if LWIP_CONNECTION_PROXY
    617 /**
    618  * XXX: This is a copy-pasted tcp_accept_null(), a static function
    619  * from tcp.c.  For normal listening PCB tcp_pcb::accept is set to
    620  * that function when PCB is created in tcp_listen_with_backlog().  I
    621  * don't want to shuffle code around or mess with visibility for now,
    622  * so just provide a copy here.
    623  */
    624 static err_t
    625 tcp_proxy_accept_null(void *arg, struct tcp_pcb *pcb, err_t err)
    626 {
    627   LWIP_UNUSED_ARG(arg);
    628   LWIP_UNUSED_ARG(err);
    629 
    630   tcp_abort(pcb);
    631   return ERR_ABRT;
    632 }
    633 
    634 
    635615/**
    636616 * We run proxied packets through tcp_input() since it mostly does
  • trunk/src/VBox/Devices/Network/lwip-new/src/include/lwip/tcp_impl.h

    r47886 r58581  
    485485
    486486#if LWIP_CALLBACK_API
     487err_t tcp_accept_null(void *arg, struct tcp_pcb *pcb, err_t err);
    487488err_t tcp_recv_null(void *arg, struct tcp_pcb *pcb, struct pbuf *p, err_t err);
    488489#endif /* LWIP_CALLBACK_API */
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