Revision 05476c4d proto/radv/packets.c

View differences:

proto/radv/packets.c
416 416
  sk->data = ifa;
417 417
  sk->flags = SKF_LADDR_RX;
418 418

  
419
  if (sk_open(sk) != 0)
419
  if (sk_open(sk) < 0)
420 420
    goto err;
421 421

  
422 422
  /* We want listen just to ICMPv6 messages of type RS and RA */
423
  if (sk_set_icmp_filter(sk, ICMPV6_RS, ICMPV6_RA) < 0)
423
  if (sk_set_icmp6_filter(sk, ICMPV6_RS, ICMPV6_RA) < 0)
424 424
    goto err;
425 425

  
426 426
  if (sk_setup_multicast(sk) < 0)
......
433 433
  return 1;
434 434

  
435 435
 err:
436
  sk_log_error(sk, ifa->ra->p.name);
436 437
  rfree(sk);
437 438
  return 0;
438 439
}

Also available in: Unified diff