VirtualBox

Changeset 100251 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Jun 22, 2023 5:33:57 PM (22 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
157962
Message:

Devices/Network: debug impl of libslirp nat. fixed linker collisions with lwip. bugref:10268

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

Legend:

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

    r63283 r100251  
    8383 */
    8484void
    85 icmp6_input(struct pbuf *p, struct netif *inp)
     85lwip_icmp6_input(struct pbuf *p, struct netif *inp)
    8686{
    8787  struct icmp6_hdr *icmp6hdr;
  • trunk/src/VBox/Devices/Network/lwip-new/src/core/ipv6/ip6.c

    r50185 r100251  
    413413 */
    414414err_t
    415 ip6_input(struct pbuf *p, struct netif *inp)
     415lwip_ip6_input(struct pbuf *p, struct netif *inp)
    416416{
    417417  struct ip6_hdr *ip6hdr;
  • trunk/src/VBox/Devices/Network/lwip-new/src/include/ipv6/lwip/icmp6.h

    r85319 r100251  
    147147#if LWIP_ICMP6 && LWIP_IPV6 /* don't build if not configured for use in lwipopts.h */
    148148
    149 void icmp6_input(struct pbuf *p, struct netif *inp);
     149/* Renaming functions to avoid linker collisions with libslirp  */
     150#define icmp6_input lwip_icmp6_input
     151
     152void lwip_icmp6_input(struct pbuf *p, struct netif *inp);
    150153#if LWIP_CONNECTION_PROXY
    151154void icmp6_proxy_input(struct pbuf *p, struct netif *inp);
  • trunk/src/VBox/Devices/Network/lwip-new/src/include/ipv6/lwip/ip6.h

    r47886 r100251  
    77/*
    88 * Copyright (c) 2010 Inico Technologies Ltd.
    9  * All rights reserved. 
    10  * 
    11  * Redistribution and use in source and binary forms, with or without modification, 
     9 * All rights reserved.
     10 *
     11 * Redistribution and use in source and binary forms, with or without modification,
    1212 * are permitted provided that the following conditions are met:
    1313 *
     
    1818 *    and/or other materials provided with the distribution.
    1919 * 3. The name of the author may not be used to endorse or promote products
    20  *    derived from this software without specific prior written permission. 
    21  *
    22  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 
    23  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 
    24  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 
    25  * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 
    26  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 
    27  * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 
    28  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 
    29  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 
    30  * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 
     20 *    derived from this software without specific prior written permission.
     21 *
     22 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
     23 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
     24 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
     25 * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
     26 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
     27 * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
     28 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
     29 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
     30 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
    3131 * OF SUCH DAMAGE.
    3232 *
    3333 * This file is part of the lwIP TCP/IP stack.
    34  * 
     34 *
    3535 * Author: Ivan Delamer <[email protected]>
    3636 *
     
    161161#define IP6H_HOPLIM_SET(hdr, hl) (hdr)->_hoplim = (u8_t)(hl)
    162162
     163/* Renaming functions to avoid linker collisions with libslirp  */
     164#define ip6_input lwip_ip6_input
     165
    163166
    164167#define ip6_init() /* TODO should we init current addresses and header pointer? */
    165168struct netif *ip6_route(struct ip6_addr *src, struct ip6_addr *dest);
    166169ip6_addr_t   *ip6_select_source_address(struct netif *netif, ip6_addr_t * dest);
    167 err_t         ip6_input(struct pbuf *p, struct netif *inp);
     170err_t         lwip_ip6_input(struct pbuf *p, struct netif *inp);
    168171err_t         ip6_output(struct pbuf *p, struct ip6_addr *src, struct ip6_addr *dest,
    169172                         u8_t hl, u8_t tc, u8_t nexth);
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