Fork of Smoothie to port to mbed non-LPC targets.
Fork of Smoothie by
libs/Network/uip/uip/uip-neighbor.h@2:1df0b61d3b5a, 2014-02-28 (annotated)
- Committer:
- Michael J. Spencer
- Date:
- Fri Feb 28 18:52:52 2014 -0800
- Revision:
- 2:1df0b61d3b5a
Update to latest Smoothie.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Michael J. Spencer |
2:1df0b61d3b5a | 1 | /* |
Michael J. Spencer |
2:1df0b61d3b5a | 2 | * Copyright (c) 2006, Swedish Institute of Computer Science. |
Michael J. Spencer |
2:1df0b61d3b5a | 3 | * All rights reserved. |
Michael J. Spencer |
2:1df0b61d3b5a | 4 | * |
Michael J. Spencer |
2:1df0b61d3b5a | 5 | * Redistribution and use in source and binary forms, with or without |
Michael J. Spencer |
2:1df0b61d3b5a | 6 | * modification, are permitted provided that the following conditions |
Michael J. Spencer |
2:1df0b61d3b5a | 7 | * are met: |
Michael J. Spencer |
2:1df0b61d3b5a | 8 | * 1. Redistributions of source code must retain the above copyright |
Michael J. Spencer |
2:1df0b61d3b5a | 9 | * notice, this list of conditions and the following disclaimer. |
Michael J. Spencer |
2:1df0b61d3b5a | 10 | * 2. Redistributions in binary form must reproduce the above copyright |
Michael J. Spencer |
2:1df0b61d3b5a | 11 | * notice, this list of conditions and the following disclaimer in the |
Michael J. Spencer |
2:1df0b61d3b5a | 12 | * documentation and/or other materials provided with the distribution. |
Michael J. Spencer |
2:1df0b61d3b5a | 13 | * 3. Neither the name of the Institute nor the names of its contributors |
Michael J. Spencer |
2:1df0b61d3b5a | 14 | * may be used to endorse or promote products derived from this software |
Michael J. Spencer |
2:1df0b61d3b5a | 15 | * without specific prior written permission. |
Michael J. Spencer |
2:1df0b61d3b5a | 16 | * |
Michael J. Spencer |
2:1df0b61d3b5a | 17 | * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND |
Michael J. Spencer |
2:1df0b61d3b5a | 18 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
Michael J. Spencer |
2:1df0b61d3b5a | 19 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
Michael J. Spencer |
2:1df0b61d3b5a | 20 | * ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE |
Michael J. Spencer |
2:1df0b61d3b5a | 21 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
Michael J. Spencer |
2:1df0b61d3b5a | 22 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS |
Michael J. Spencer |
2:1df0b61d3b5a | 23 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
Michael J. Spencer |
2:1df0b61d3b5a | 24 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
Michael J. Spencer |
2:1df0b61d3b5a | 25 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
Michael J. Spencer |
2:1df0b61d3b5a | 26 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
Michael J. Spencer |
2:1df0b61d3b5a | 27 | * SUCH DAMAGE. |
Michael J. Spencer |
2:1df0b61d3b5a | 28 | * |
Michael J. Spencer |
2:1df0b61d3b5a | 29 | * This file is part of the uIP TCP/IP stack |
Michael J. Spencer |
2:1df0b61d3b5a | 30 | * |
Michael J. Spencer |
2:1df0b61d3b5a | 31 | * $Id: uip-neighbor.h,v 1.2 2006/06/12 08:00:30 adam Exp $ |
Michael J. Spencer |
2:1df0b61d3b5a | 32 | */ |
Michael J. Spencer |
2:1df0b61d3b5a | 33 | |
Michael J. Spencer |
2:1df0b61d3b5a | 34 | /** |
Michael J. Spencer |
2:1df0b61d3b5a | 35 | * \file |
Michael J. Spencer |
2:1df0b61d3b5a | 36 | * Header file for database of link-local neighbors, used by |
Michael J. Spencer |
2:1df0b61d3b5a | 37 | * IPv6 code and to be used by future ARP code. |
Michael J. Spencer |
2:1df0b61d3b5a | 38 | * \author |
Michael J. Spencer |
2:1df0b61d3b5a | 39 | * Adam Dunkels <adam@sics.se> |
Michael J. Spencer |
2:1df0b61d3b5a | 40 | */ |
Michael J. Spencer |
2:1df0b61d3b5a | 41 | |
Michael J. Spencer |
2:1df0b61d3b5a | 42 | #ifndef __UIP_NEIGHBOR_H__ |
Michael J. Spencer |
2:1df0b61d3b5a | 43 | #define __UIP_NEIGHBOR_H__ |
Michael J. Spencer |
2:1df0b61d3b5a | 44 | |
Michael J. Spencer |
2:1df0b61d3b5a | 45 | #include "uip.h" |
Michael J. Spencer |
2:1df0b61d3b5a | 46 | |
Michael J. Spencer |
2:1df0b61d3b5a | 47 | struct uip_neighbor_addr { |
Michael J. Spencer |
2:1df0b61d3b5a | 48 | #if UIP_NEIGHBOR_CONF_ADDRTYPE |
Michael J. Spencer |
2:1df0b61d3b5a | 49 | UIP_NEIGHBOR_CONF_ADDRTYPE addr; |
Michael J. Spencer |
2:1df0b61d3b5a | 50 | #else |
Michael J. Spencer |
2:1df0b61d3b5a | 51 | struct uip_eth_addr addr; |
Michael J. Spencer |
2:1df0b61d3b5a | 52 | #endif |
Michael J. Spencer |
2:1df0b61d3b5a | 53 | }; |
Michael J. Spencer |
2:1df0b61d3b5a | 54 | |
Michael J. Spencer |
2:1df0b61d3b5a | 55 | void uip_neighbor_init(void); |
Michael J. Spencer |
2:1df0b61d3b5a | 56 | void uip_neighbor_add(uip_ipaddr_t ipaddr, struct uip_neighbor_addr *addr); |
Michael J. Spencer |
2:1df0b61d3b5a | 57 | void uip_neighbor_update(uip_ipaddr_t ipaddr); |
Michael J. Spencer |
2:1df0b61d3b5a | 58 | struct uip_neighbor_addr *uip_neighbor_lookup(uip_ipaddr_t ipaddr); |
Michael J. Spencer |
2:1df0b61d3b5a | 59 | void uip_neighbor_periodic(void); |
Michael J. Spencer |
2:1df0b61d3b5a | 60 | |
Michael J. Spencer |
2:1df0b61d3b5a | 61 | #endif /* __UIP-NEIGHBOR_H__ */ |