48#define LOG_MODULE "SLIP"
49#define LOG_LEVEL LOG_LEVEL_NONE
51void set_prefix_64(uip_ipaddr_t *);
53static uip_ipaddr_t last_sender;
68slip_input_callback(
void)
72 LOG_INFO(
"Got configuration message of type %c\n",
77 memset(&prefix, 0, 16);
78 memcpy(&prefix, &
uip_buf[2], 8);
82 LOG_INFO(
"Setting prefix ");
83 LOG_INFO_6ADDR(&prefix);
85 set_prefix_64(&prefix);
90 LOG_INFO(
"Got request message of type %c\n",
uip_buf[1]);
92 char *hexchar =
"0123456789abcdef";
116 slip_set_input_callback(slip_input_callback);
122 if(uip_ipaddr_cmp(&last_sender, &
UIP_IP_BUF->srcipaddr)) {
125 LOG_ERR(
"slip-bridge: Destination off-link but no route src=");
137const struct uip_fallback_interface rpl_interface = {
void process_start(struct process *p, process_data_t data)
Start a process.
uip_lladdr_t uip_lladdr
Host L2 address.
#define UIP_LLADDR_LEN
802.15.4 address
#define UIP_IP_BUF
Direct access to IPv6 header.
#define uip_ipaddr_copy(dest, src)
Copy an IP address from one place to another.
#define uip_buf
Macro to access uip_aligned_buf as an array of bytes.
uint16_t uip_len
The length of the packet in the uip_buf buffer.
Header file for the logging system.
Header file for IPv6-related data structures.
Header file for the uIP TCP/IP stack.