|
@@ -204,7 +204,7 @@ static int ipv6_tx ( struct io_buffer *iobuf,
|
204
|
204
|
*/
|
205
|
205
|
next_hop = dest->sin6_addr;
|
206
|
206
|
list_for_each_entry ( miniroute, &miniroutes, list ) {
|
207
|
|
- if ( ( strncmp ( &ip6hdr->dest, &miniroute->prefix,
|
|
207
|
+ if ( ( memcmp ( &ip6hdr->dest, &miniroute->prefix,
|
208
|
208
|
miniroute->prefix_len ) == 0 ) ||
|
209
|
209
|
( IP6_EQUAL ( miniroute->gateway, ip6_none ) ) ) {
|
210
|
210
|
netdev = miniroute->netdev;
|
|
@@ -295,8 +295,8 @@ static int ipv6_process_nxt_hdr ( struct io_buffer *iobuf, uint8_t nxt_hdr,
|
295
|
295
|
* This function processes a IPv6 packet
|
296
|
296
|
*/
|
297
|
297
|
static int ipv6_rx ( struct io_buffer *iobuf,
|
298
|
|
- struct net_device *netdev,
|
299
|
|
- const void *ll_source ) {
|
|
298
|
+ __unused struct net_device *netdev,
|
|
299
|
+ __unused const void *ll_source ) {
|
300
|
300
|
|
301
|
301
|
struct ip6_header *ip6hdr = iobuf->data;
|
302
|
302
|
union {
|
|
@@ -316,7 +316,7 @@ static int ipv6_rx ( struct io_buffer *iobuf,
|
316
|
316
|
ipv6_dump ( ip6hdr );
|
317
|
317
|
|
318
|
318
|
/* Check header version */
|
319
|
|
- if ( ip6hdr->ver_traffic_class_flow_label & 0xf0000000 != 0x60000000 ) {
|
|
319
|
+ if ( ( ip6hdr->ver_traffic_class_flow_label & 0xf0000000 ) != 0x60000000 ) {
|
320
|
320
|
DBG ( "Invalid protocol version\n" );
|
321
|
321
|
goto drop;
|
322
|
322
|
}
|