48 #define LOG_MODULE "SLIP" 49 #define LOG_LEVEL LOG_LEVEL_NONE 51 void set_prefix_64(uip_ipaddr_t *);
53 static uip_ipaddr_t last_sender;
68 slip_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";
122 if(uip_ipaddr_cmp(&last_sender, &
UIP_IP_BUF->srcipaddr)) {
125 LOG_ERR(
"slip-bridge: Destination off-link but no route src=");
137 const struct uip_fallback_interface rpl_interface = {
#define UIP_IP_BUF
Direct access to IPv6 header.
uip_lladdr_t uip_lladdr
Host L2 address.
uint16_t uip_len
The length of the packet in the uip_buf buffer.
void slip_arch_init(void)
Initialize the SLIP driver.
static uint8_t output(const linkaddr_t *localdest)
Take an IP packet and format it to be sent on an 802.15.4 network using 6lowpan.
Header file for IPv6-related data structures.
#define UIP_LLADDR_LEN
802.15.4 address
#define uip_buf
Macro to access uip_aligned_buf as an array of bytes.
#define uip_ipaddr_copy(dest, src)
Copy an IP address from one place to another.
Header file for the uIP TCP/IP stack.
Header file for the logging system
void process_start(struct process *p, process_data_t data)
Start a process.