Porting mros2 as an Mbed library.
Dependents: mbed-os-example-mros2 example-mbed-mros2-sub-pose example-mbed-mros2-pub-twist example-mbed-mros2-mturtle-teleop
embeddedRTPS/thirdparty/lwip/default_netif.h@0:580aba13d1a1, 2021-12-30 (annotated)
- Committer:
- smoritaemb
- Date:
- Thu Dec 30 21:06:29 2021 +0900
- Revision:
- 0:580aba13d1a1
Updated to catch up to mros2 v2.3
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
smoritaemb | 0:580aba13d1a1 | 1 | /* |
smoritaemb | 0:580aba13d1a1 | 2 | * Copyright (c) 2001-2003 Swedish Institute of Computer Science. |
smoritaemb | 0:580aba13d1a1 | 3 | * All rights reserved. |
smoritaemb | 0:580aba13d1a1 | 4 | * |
smoritaemb | 0:580aba13d1a1 | 5 | * Redistribution and use in source and binary forms, with or without modification, |
smoritaemb | 0:580aba13d1a1 | 6 | * are permitted provided that the following conditions are met: |
smoritaemb | 0:580aba13d1a1 | 7 | * |
smoritaemb | 0:580aba13d1a1 | 8 | * 1. Redistributions of source code must retain the above copyright notice, |
smoritaemb | 0:580aba13d1a1 | 9 | * this list of conditions and the following disclaimer. |
smoritaemb | 0:580aba13d1a1 | 10 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
smoritaemb | 0:580aba13d1a1 | 11 | * this list of conditions and the following disclaimer in the documentation |
smoritaemb | 0:580aba13d1a1 | 12 | * and/or other materials provided with the distribution. |
smoritaemb | 0:580aba13d1a1 | 13 | * 3. The name of the author may not be used to endorse or promote products |
smoritaemb | 0:580aba13d1a1 | 14 | * derived from this software without specific prior written permission. |
smoritaemb | 0:580aba13d1a1 | 15 | * |
smoritaemb | 0:580aba13d1a1 | 16 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED |
smoritaemb | 0:580aba13d1a1 | 17 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
smoritaemb | 0:580aba13d1a1 | 18 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT |
smoritaemb | 0:580aba13d1a1 | 19 | * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, |
smoritaemb | 0:580aba13d1a1 | 20 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT |
smoritaemb | 0:580aba13d1a1 | 21 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
smoritaemb | 0:580aba13d1a1 | 22 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
smoritaemb | 0:580aba13d1a1 | 23 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING |
smoritaemb | 0:580aba13d1a1 | 24 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY |
smoritaemb | 0:580aba13d1a1 | 25 | * OF SUCH DAMAGE. |
smoritaemb | 0:580aba13d1a1 | 26 | * |
smoritaemb | 0:580aba13d1a1 | 27 | * This file is part of the lwIP TCP/IP stack. |
smoritaemb | 0:580aba13d1a1 | 28 | * |
smoritaemb | 0:580aba13d1a1 | 29 | * Author: Adam Dunkels <adam@sics.se> |
smoritaemb | 0:580aba13d1a1 | 30 | * |
smoritaemb | 0:580aba13d1a1 | 31 | */ |
smoritaemb | 0:580aba13d1a1 | 32 | |
smoritaemb | 0:580aba13d1a1 | 33 | #ifndef LWIP_DEFAULT_NETIF_H |
smoritaemb | 0:580aba13d1a1 | 34 | #define LWIP_DEFAULT_NETIF_H |
smoritaemb | 0:580aba13d1a1 | 35 | |
smoritaemb | 0:580aba13d1a1 | 36 | #include "lwip/ip_addr.h" |
smoritaemb | 0:580aba13d1a1 | 37 | |
smoritaemb | 0:580aba13d1a1 | 38 | #ifdef __cplusplus |
smoritaemb | 0:580aba13d1a1 | 39 | extern "C" { |
smoritaemb | 0:580aba13d1a1 | 40 | #endif |
smoritaemb | 0:580aba13d1a1 | 41 | |
smoritaemb | 0:580aba13d1a1 | 42 | #if LWIP_IPV4 |
smoritaemb | 0:580aba13d1a1 | 43 | void init_default_netif(const ip4_addr_t *ipaddr, const ip4_addr_t *netmask, const ip4_addr_t *gw); |
smoritaemb | 0:580aba13d1a1 | 44 | #else |
smoritaemb | 0:580aba13d1a1 | 45 | void init_default_netif(void); |
smoritaemb | 0:580aba13d1a1 | 46 | #endif |
smoritaemb | 0:580aba13d1a1 | 47 | |
smoritaemb | 0:580aba13d1a1 | 48 | void default_netif_poll(void); |
smoritaemb | 0:580aba13d1a1 | 49 | void default_netif_shutdown(void); |
smoritaemb | 0:580aba13d1a1 | 50 | |
smoritaemb | 0:580aba13d1a1 | 51 | #ifdef __cplusplus |
smoritaemb | 0:580aba13d1a1 | 52 | } |
smoritaemb | 0:580aba13d1a1 | 53 | #endif |
smoritaemb | 0:580aba13d1a1 | 54 | |
smoritaemb | 0:580aba13d1a1 | 55 | #endif |