Commit 40bd7d92 authored by danielinux's avatar danielinux

OLSR: Refactoring with important fixes

parent 755e3395
...@@ -2,18 +2,20 @@ ...@@ -2,18 +2,20 @@
--------------- ---------------
PicoTCP free repository. GPLv2/v3 only. PicoTCP-NG. License: GPLv2/v3 only.
For non-GPL uses, contact [Altran.be PicoTCP](http://picotcp.altran.be). This is a Free fork of PicoTCP, originally distributed by
[Altran.be](http://picotcp.altran.be).
--------------- ---------------
picoTCP is a small-footprint, modular TCP/IP stack designed for embedded systems and the Internet of Things. picoTCP is a small-footprint, modular TCP/IP stack designed for embedded systems and the Internet of Things.
This code is released under the terms of GNU GPL v2 and GNU GPL v3. Some rights reserved. This code is released under the terms of GNU GPL v2 and GNU GPL v3. Some rights reserved.
Other licenses may apply at the sole discretion of the copyright holders.
Learn how to use picoTCP in your project by going through the **Getting Started guide** on our [GitHub wiki](https://gitlab.com/picotcp/picotcp/wikis). Learn how to use picoTCP in your project by going through the **Getting Started guide** on our [GitLab wiki](https://gitlab.com/picotcp/picotcp/wikis).
Contributions are welcome.
--------------- ---------------
......
...@@ -112,7 +112,7 @@ int pico_ipv4_mcast_leave(struct pico_ip4 *mcast_link, struct pico_ip4 *mcast_gr ...@@ -112,7 +112,7 @@ int pico_ipv4_mcast_leave(struct pico_ip4 *mcast_link, struct pico_ip4 *mcast_gr
struct pico_ipv4_link *pico_ipv4_get_default_mcastlink(void); struct pico_ipv4_link *pico_ipv4_get_default_mcastlink(void);
int pico_ipv4_cleanup_links(struct pico_device *dev); int pico_ipv4_cleanup_links(struct pico_device *dev);
/* Raw socket support */ /* Raw socket support (GPLv2/v3 only) */
struct pico_socket_ipv4; struct pico_socket_ipv4;
struct pico_socket *pico_socket_ipv4_open(uint8_t proto); struct pico_socket *pico_socket_ipv4_open(uint8_t proto);
int pico_socket_ipv4_recvfrom(struct pico_socket *s, void *buf, int len, void *orig, uint16_t *remote_port); int pico_socket_ipv4_recvfrom(struct pico_socket *s, void *buf, int len, void *orig, uint16_t *remote_port);
......
This diff is collapsed.
...@@ -7,9 +7,6 @@ ...@@ -7,9 +7,6 @@
#ifndef PICO_OLSR_H #ifndef PICO_OLSR_H
#define PICO_OLSR_H #define PICO_OLSR_H
#include <stdint.h>
#include "pico_addressing.h"
#include "pico_device.h"
/* Objects */ /* Objects */
struct olsr_route_entry struct olsr_route_entry
...@@ -25,11 +22,13 @@ struct olsr_route_entry ...@@ -25,11 +22,13 @@ struct olsr_route_entry
uint16_t ansn; uint16_t ansn;
uint16_t seq; uint16_t seq;
uint8_t lq, nlq; uint8_t lq, nlq;
uint8_t *advertised_tc; uint8_t advertised_tc;
}; };
void pico_olsr_init(void); void pico_olsr_init(void);
int pico_olsr_add(struct pico_device *dev); int pico_olsr_add(struct pico_device *dev);
struct olsr_route_entry *olsr_get_ethentry(struct pico_device *vif); struct olsr_route_entry *olsr_get_ethentry(struct pico_device *vif);
struct olsr_route_entry kill_neighbour(uint32_t loc_add, uint32_t rem_add);
uint8_t olsr_set_nlq(struct pico_ip4 addr, uint8_t nlq);
#endif #endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment