Revision 1389f369

View differences:

proto/bgp/packets.c
700 700
      /* Create fake NEXT_HOP attribute */
701 701
      if (len < 1 || (*x != 16 && *x != 32) || len < *x + 2)
702 702
	goto bad;
703
      bgp_attach_attr_ip(&a0->eattrs, bgp_linpool, BA_NEXT_HOP, x[1]);
703
      memcpy(bgp_attach_attr_wa(&a0->eattrs, bgp_linpool, BA_NEXT_HOP, 16), x+1, 16);
704 704
      len -= *x + 2;
705 705
      x += *x + 1;
706 706

  
sysdep/unix/io.c
616 616
  int one = 1;
617 617
#ifdef IPV6
618 618
  if (s->type != SK_UDP_MC && s->type != SK_IP_MC &&
619
      setsockopt(fd, SOL_IPV6, IPV6_UNICAST_HOPS, &s->ttl, sizeof(s->ttl)) < 0)
619
      setsockopt(s->fd, SOL_IPV6, IPV6_UNICAST_HOPS, &s->ttl, sizeof(s->ttl)) < 0)
620 620
    return "IPV6_UNICAST_HOPS";
621 621
#else
622 622
  if (setsockopt(s->fd, SOL_IP, IP_TTL, &s->ttl, sizeof(s->ttl)) < 0)

Also available in: Unified diff