Revision 48e5f32d proto/radv/packets.c

View differences:

proto/radv/packets.c
404 404
  sock *sk = sk_new(ifa->ra->p.pool);
405 405
  sk->type = SK_IP;
406 406
  sk->dport = ICMPV6_PROTO;
407
  sk->saddr = IPA_NONE;
407
  sk->saddr = ifa->addr->ip;
408 408

  
409 409
  sk->ttl = 255; /* Mandatory for Neighbor Discovery packets */
410 410
  sk->rx_hook = radv_rx_hook;
......
419 419
  if (sk_open(sk) != 0)
420 420
    goto err;
421 421

  
422
  sk->saddr = ifa->addr->ip;
423

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

Also available in: Unified diff