46 #define UIP_IP_BUF ((struct uip_ip_hdr *)&uip_buf[UIP_LLH_LEN]) 50 #define LOG_MODULE "SLIP" 51 #define LOG_LEVEL LOG_LEVEL_NONE 53 void set_prefix_64(uip_ipaddr_t *);
55 static uip_ipaddr_t last_sender;
70 slip_input_callback(
void)
74 LOG_INFO(
"Got configuration message of type %c\n",
79 memset(&prefix, 0, 16);
84 LOG_INFO(
"Setting prefix ");
85 LOG_INFO_6ADDR(&prefix);
87 set_prefix_64(&prefix);
94 char *hexchar =
"0123456789abcdef";
124 if(uip_ipaddr_cmp(&last_sender, &
UIP_IP_BUF->srcipaddr)) {
127 LOG_ERR(
"slip-bridge: Destination off-link but no route src=");
139 const struct uip_fallback_interface rpl_interface = {
#define UIP_IP_BUF
Pointer to IP 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_LLH_LEN
The link level header length.
#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.