radv.c 17.6 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14
/*
 *	BIRD -- Router Advertisement
 *
 *
 *	Can be freely distributed and used under the terms of the GNU GPL.
 */


#include <stdlib.h>
#include "radv.h"

/**
 * DOC: Router Advertisements
 *
15 16 17 18
 * The RAdv protocol is implemented in two files: |radv.c| containing the
 * interface with BIRD core and the protocol logic and |packets.c| handling low
 * level protocol stuff (RX, TX and packet formats). The protocol does not
 * export any routes.
19
 *
20 21 22 23 24 25
 * The RAdv is structured in the usual way - for each handled interface there is
 * a structure &radv_iface that contains a state related to that interface
 * together with its resources (a socket, a timer). There is also a prepared RA
 * stored in a TX buffer of the socket associated with an iface. These iface
 * structures are created and removed according to iface events from BIRD core
 * handled by radv_if_notify() callback.
26
 *
27 28 29
 * The main logic of RAdv consists of two functions: radv_iface_notify(), which
 * processes asynchronous events (specified by RA_EV_* codes), and radv_timer(),
 * which triggers sending RAs and computes the next timeout.
30
 *
31 32 33 34 35
 * The RAdv protocol could receive routes (through radv_import_control() and
 * radv_rt_notify()), but only the configured trigger route is tracked (in
 * &active var).  When a radv protocol is reconfigured, the connected routing
 * table is examined (in radv_check_active()) to have proper &active value in
 * case of the specified trigger prefix was changed.
36
 *
37 38
 * Supported standards:
 * - RFC 4861 - main RA standard
39
 * - RFC 4191 - Default Router Preferences and More-Specific Routes
40
 * - RFC 6106 - DNS extensions (RDDNS, DNSSL)
41 42
 */

43 44 45 46 47 48 49
static void radv_prune_prefixes(struct radv_iface *ifa);
static void radv_prune_routes(struct radv_proto *p);

/* Invalidate cached RA packet */
static inline void radv_invalidate(struct radv_iface *ifa)
{ ifa->plen = 0; }

50 51 52 53
static void
radv_timer(timer *tm)
{
  struct radv_iface *ifa = tm->data;
54
  struct radv_proto *p = ifa->ra;
55
  btime now = current_time();
56 57 58

  RADV_TRACE(D_EVENTS, "Timer fired on %s", ifa->iface->name);

59 60 61
  if (ifa->valid_time <= now)
    radv_invalidate(ifa);

62 63
  if (ifa->prune_time <= now)
    radv_prune_prefixes(ifa);
64

65 66
  if (p->prune_time <= now)
    radv_prune_routes(p);
67

68
  radv_send_ra(ifa);
69 70 71

  /* Update timer */
  ifa->last = now;
72 73
  btime t = ifa->cf->min_ra_int S;
  btime r = (ifa->cf->max_ra_int - ifa->cf->min_ra_int) S;
74
  t += random() % (r + 1);
75 76

  if (ifa->initial)
77 78
  {
    t = MIN(t, MAX_INITIAL_RTR_ADVERT_INTERVAL);
79
    ifa->initial--;
80
  }
81

82
  tm_start(ifa->timer, t);
83 84
}

85 86 87 88 89 90 91 92 93 94 95 96
static struct radv_prefix_config default_prefix = {
  .onlink = 1,
  .autonomous = 1,
  .valid_lifetime = DEFAULT_VALID_LIFETIME,
  .preferred_lifetime = DEFAULT_PREFERRED_LIFETIME
};

static struct radv_prefix_config dead_prefix = {
};

/* Find a corresponding config for the given prefix */
static struct radv_prefix_config *
97
radv_prefix_match(struct radv_iface *ifa, net_addr_ip6 *px)
98 99 100 101 102 103
{
  struct radv_proto *p = ifa->ra;
  struct radv_config *cf = (struct radv_config *) (p->p.cf);
  struct radv_prefix_config *pc;

  WALK_LIST(pc, ifa->cf->pref_list)
104
    if (net_in_net_ip6(px, &pc->prefix))
105 106 107
      return pc;

  WALK_LIST(pc, cf->pref_list)
108
    if (net_in_net_ip6(px, &pc->prefix))
109 110 111 112 113 114 115
      return pc;

  return &default_prefix;
}

/*
 * Go through the list of prefixes, compare them with configs and decide if we
116 117
 * want them or not.
 */
118
static void
119
radv_prepare_prefixes(struct radv_iface *ifa)
120 121
{
  struct radv_proto *p = ifa->ra;
122
  struct radv_prefix *pfx, *next;
123
  btime now = current_time();
124

125
  /* First mark all the prefixes as unused */
126 127 128
  WALK_LIST(pfx, ifa->prefixes)
    pfx->mark = 0;

129
  /* Find all the prefixes we want to use and make sure they are in the list. */
130 131 132
  struct ifa *addr;
  WALK_LIST(addr, ifa->iface->addrs)
  {
133 134 135 136 137 138
    if ((addr->prefix.type != NET_IP6) ||
	(addr->scope <= SCOPE_LINK))
      continue;

    net_addr_ip6 *prefix = (void *) &addr->prefix;
    struct radv_prefix_config *pc = radv_prefix_match(ifa, prefix);
139 140 141 142 143 144 145

    if (!pc || pc->skip)
      continue;

    /* Do we have it already? */
    struct radv_prefix *existing = NULL;
    WALK_LIST(pfx, ifa->prefixes)
146
      if (net_equal_ip6(&pfx->prefix, prefix))
147 148 149 150 151 152 153
      {
	existing = pfx;
	break;
      }

    if (!existing)
    {
154 155
      RADV_TRACE(D_EVENTS, "Adding new prefix %N on %s",
		 prefix, ifa->iface->name);
156

157
      existing = mb_allocz(ifa->pool, sizeof *existing);
158
      net_copy_ip6(&existing->prefix, prefix);
159 160
      add_tail(&ifa->prefixes, NODE existing);
    }
161

162 163 164 165
    /*
     * Update the information (it may have changed, or even bring a prefix back
     * to life).
     */
166 167
    existing->valid = 1;
    existing->changed = now;
168
    existing->mark = 1;
169
    existing->cf = pc;
170 171
  }

172 173
  WALK_LIST_DELSAFE(pfx, next, ifa->prefixes)
  {
174
    if (pfx->valid && !pfx->mark)
175
    {
176
      RADV_TRACE(D_EVENTS, "Invalidating prefix %N on %s",
177
		 pfx->prefix, ifa->iface->name);
178

179 180
      pfx->valid = 0;
      pfx->changed = now;
181
      pfx->cf = &dead_prefix;
182
    }
183 184 185 186 187 188 189
  }
}

static void
radv_prune_prefixes(struct radv_iface *ifa)
{
  struct radv_proto *p = ifa->ra;
190 191 192
  btime now = current_time();
  btime next = TIME_INFINITY;
  btime expires = 0;
193

194 195 196
  struct radv_prefix *px, *pxn;
  WALK_LIST_DELSAFE(px, pxn, ifa->prefixes)
  {
197
    if (!px->valid)
198
    {
199
      expires = px->changed + ifa->cf->prefix_linger_time S;
200 201

      if (expires <= now)
202
      {
203
	RADV_TRACE(D_EVENTS, "Removing prefix %N on %s",
204
		   px->prefix, ifa->iface->name);
205

206 207
	rem_node(NODE px);
	mb_free(px);
208 209
      }
      else
210
	next = MIN(next, expires);
211
    }
212
  }
213

214
  ifa->prune_time = next;
215 216
}

217
static char* ev_name[] = { NULL, "Init", "Change", "RS" };
218 219 220 221

void
radv_iface_notify(struct radv_iface *ifa, int event)
{
222
  struct radv_proto *p = ifa->ra;
223 224 225 226 227 228 229 230 231

  if (!ifa->sk)
    return;

  RADV_TRACE(D_EVENTS, "Event %s on %s", ev_name[event], ifa->iface->name);

  switch (event)
  {
  case RA_EV_CHANGE:
232
    radv_invalidate(ifa);
233 234
  case RA_EV_INIT:
    ifa->initial = MAX_INITIAL_RTR_ADVERTISEMENTS;
235 236
    radv_prepare_prefixes(ifa);
    radv_prune_prefixes(ifa);
237 238 239 240 241 242 243
    break;

  case RA_EV_RS:
    break;
  }

  /* Update timer */
244
  btime t = ifa->last + ifa->cf->min_delay S - current_time();
245
  tm_start(ifa->timer, t);
246 247
}

248
static void
249
radv_iface_notify_all(struct radv_proto *p, int event)
250 251 252
{
  struct radv_iface *ifa;

253
  WALK_LIST(ifa, p->iface_list)
254 255 256
    radv_iface_notify(ifa, event);
}

257
static struct radv_iface *
258
radv_iface_find(struct radv_proto *p, struct iface *what)
259 260 261
{
  struct radv_iface *ifa;

262
  WALK_LIST(ifa, p->iface_list)
263 264 265 266 267 268 269 270 271 272
    if (ifa->iface == what)
      return ifa;

  return NULL;
}

static void
radv_iface_add(struct object_lock *lock)
{
  struct radv_iface *ifa = lock->data;
273
  struct radv_proto *p = ifa->ra;
274 275 276

  if (! radv_sk_open(ifa))
  {
277
    log(L_ERR "%s: Socket open failed on interface %s", p->p.name, ifa->iface->name);
278 279 280 281 282 283 284
    return;
  }

  radv_iface_notify(ifa, RA_EV_INIT);
}

static void
285
radv_iface_new(struct radv_proto *p, struct iface *iface, struct radv_iface_config *cf)
286 287 288 289 290
{
  struct radv_iface *ifa;

  RADV_TRACE(D_EVENTS, "Adding interface %s", iface->name);

291
  pool *pool = rp_new(p->p.pool, iface->name);
292
  ifa = mb_allocz(pool, sizeof(struct radv_iface));
293
  ifa->pool = pool;
294
  ifa->ra = p;
295 296
  ifa->cf = cf;
  ifa->iface = iface;
297
  ifa->addr = iface->llv6;
298
  init_list(&ifa->prefixes);
299
  ifa->prune_time = TIME_INFINITY;
300

301
  add_tail(&p->iface_list, NODE ifa);
302

303
  ifa->timer = tm_new_init(pool, radv_timer, ifa, 0, 0);
304 305 306 307 308 309 310 311 312 313 314 315 316 317 318

  struct object_lock *lock = olock_new(pool);
  lock->type = OBJLOCK_IP;
  lock->port = ICMPV6_PROTO;
  lock->iface = iface;
  lock->data = ifa;
  lock->hook = radv_iface_add;
  ifa->lock = lock;

  olock_acquire(lock);
}

static void
radv_iface_remove(struct radv_iface *ifa)
{
319
  struct radv_proto *p = ifa->ra;
320 321 322 323
  RADV_TRACE(D_EVENTS, "Removing interface %s", ifa->iface->name);

  rem_node(NODE ifa);

324
  rfree(ifa->pool);
325 326 327
}

static void
328
radv_if_notify(struct proto *P, unsigned flags, struct iface *iface)
329
{
330 331
  struct radv_proto *p = (struct radv_proto *) P;
  struct radv_config *cf = (struct radv_config *) (P->cf);
332 333 334 335 336 337

  if (iface->flags & IF_IGNORE)
    return;

  if (flags & IF_CHANGE_UP)
  {
338 339 340 341 342 343 344 345 346
    struct radv_iface_config *ic = (void *) iface_patt_find(&cf->patt_list, iface, NULL);

    /* Ignore non-multicast ifaces */
    if (!(iface->flags & IF_MULTICAST))
      return;

    /* Ignore ifaces without link-local address */
    if (!iface->llv6)
      return;
347 348

    if (ic)
349
      radv_iface_new(p, iface, ic);
350 351 352 353

    return;
  }

354
  struct radv_iface *ifa = radv_iface_find(p, iface);
355 356 357 358 359 360 361 362 363 364 365 366 367 368
  if (!ifa)
    return;

  if (flags & IF_CHANGE_DOWN)
  {
    radv_iface_remove(ifa);
    return;
  }

  if ((flags & IF_CHANGE_LINK) && (iface->flags & IF_LINK_UP))
    radv_iface_notify(ifa, RA_EV_INIT);
}

static void
369
radv_ifa_notify(struct proto *P, unsigned flags UNUSED, struct ifa *a)
370
{
371
  struct radv_proto *p = (struct radv_proto *) P;
372 373 374 375 376 377 378

  if (a->flags & IA_SECONDARY)
    return;

  if (a->scope <= SCOPE_LINK)
    return;

379
  struct radv_iface *ifa = radv_iface_find(p, a->iface);
380 381 382 383 384

  if (ifa)
    radv_iface_notify(ifa, RA_EV_CHANGE);
}

385 386
static inline int
radv_trigger_valid(struct radv_config *cf)
387
{
388 389 390 391 392 393 394
  return cf->trigger.type != 0;
}

static inline int
radv_net_match_trigger(struct radv_config *cf, net *n)
{
  return radv_trigger_valid(cf) && net_equal(n->n.addr, &cf->trigger);
395 396 397
}

int
398
radv_import_control(struct proto *P, rte **new, ea_list **attrs UNUSED, struct linpool *pool UNUSED)
399
{
400 401
  // struct radv_proto *p = (struct radv_proto *) P;
  struct radv_config *cf = (struct radv_config *) (P->cf);
402 403 404 405

  if (radv_net_match_trigger(cf, (*new)->net))
    return RIC_PROCESS;

406 407 408 409
  if (cf->propagate_routes)
    return RIC_PROCESS;
  else
    return RIC_DROP;
410 411 412
}

static void
413
radv_rt_notify(struct proto *P, struct channel *ch UNUSED, net *n, rte *new, rte *old UNUSED, ea_list *attrs)
414
{
415 416
  struct radv_proto *p = (struct radv_proto *) P;
  struct radv_config *cf = (struct radv_config *) (P->cf);
417
  struct radv_route *rt;
418
  eattr *ea;
419 420 421

  if (radv_net_match_trigger(cf, n))
  {
422 423
    u8 old_active = p->active;
    p->active = !!new;
424

425
    if (p->active == old_active)
426 427
      return;

428
    if (p->active)
429 430 431 432
      RADV_TRACE(D_EVENTS, "Triggered");
    else
      RADV_TRACE(D_EVENTS, "Suppressed");

433
    radv_iface_notify_all(p, RA_EV_CHANGE);
434
    return;
435
  }
436 437 438 439 440 441 442 443 444 445 446 447 448 449

  if (!cf->propagate_routes)
    return;

  /*
   * Some other route we want to send (or stop sending). Update the cache,
   * with marking a removed one as dead or creating a new one as needed.
   *
   * And yes, we exclude the trigger route on purpose.
   */

  if (new)
  {
    /* Update */
450 451 452 453 454 455 456 457

    ea = ea_find(attrs, EA_RA_PREFERENCE);
    uint preference = ea ? ea->u.data : RA_PREF_MEDIUM;
    uint preference_set = !!ea;

    ea = ea_find(attrs, EA_RA_LIFETIME);
    uint lifetime = ea ? ea->u.data : 0;
    uint lifetime_set = !!ea;
458 459 460 461 462

    if ((preference != RA_PREF_LOW) &&
	(preference != RA_PREF_MEDIUM) &&
	(preference != RA_PREF_HIGH))
    {
463 464
      log(L_WARN "%s: Invalid ra_preference value %u on route %N",
	  p->p.name, preference, n->n.addr);
465
      preference = RA_PREF_MEDIUM;
466
      preference_set = 1;
467 468 469 470
      lifetime = 0;
      lifetime_set = 1;
    }

471
    rt = fib_get(&p->routes, n->n.addr);
472 473

    /* Ignore update if nothing changed */
474
    if (rt->valid &&
475
	(rt->preference == preference) &&
476
	(rt->preference_set == preference_set) &&
477 478 479 480 481 482 483
	(rt->lifetime == lifetime) &&
	(rt->lifetime_set == lifetime_set))
      return;

    if (p->routes.entries == 18)
      log(L_WARN "%s: More than 17 routes exported to RAdv", p->p.name);

484
    rt->valid = 1;
485
    rt->changed = current_time();
486
    rt->preference = preference;
487
    rt->preference_set = preference_set;
488 489 490 491 492 493
    rt->lifetime = lifetime;
    rt->lifetime_set = lifetime_set;
  }
  else
  {
    /* Withdraw */
494
    rt = fib_find(&p->routes, n->n.addr);
495

496
    if (!rt || !rt->valid)
497 498 499
      return;

    /* Invalidate the route */
500
    rt->valid = 0;
501
    rt->changed = current_time();
502 503

    /* Invalidated route will be pruned eventually */
504
    btime expires = rt->changed + cf->max_linger_time S;
505
    p->prune_time = MIN(p->prune_time, expires);
506
  }
507 508 509 510 511 512 513 514 515 516 517

  radv_iface_notify_all(p, RA_EV_CHANGE);
}

/*
 * Cleans up all the dead routes that expired and schedules itself to be run
 * again if there are more routes waiting for expiration.
 */
static void
radv_prune_routes(struct radv_proto *p)
{
518
  struct radv_config *cf = (struct radv_config *) (p->p.cf);
519 520 521
  btime now = current_time();
  btime next = TIME_INFINITY;
  btime expires = 0;
522 523 524 525 526 527 528 529 530

  /* Should not happen */
  if (!p->fib_up)
    return;

  struct fib_iterator fit;
  FIB_ITERATE_INIT(&fit, &p->routes);

again:
531
  FIB_ITERATE_START(&p->routes, &fit, struct radv_route, rt)
532
  {
533
    if (!rt->valid)
534
    {
535
      expires = rt->changed + cf->max_linger_time S;
536

537
      /* Delete expired nodes */
538
      if (expires <= now)
539
      {
540 541
	FIB_ITERATE_PUT(&fit);
	fib_delete(&p->routes, rt);
542 543 544
	goto again;
      }
      else
545
	next = MIN(next, expires);
546 547
    }
  }
548
  FIB_ITERATE_END;
549 550

  p->prune_time = next;
551 552 553
}

static int
554
radv_check_active(struct radv_proto *p)
555
{
556
  struct radv_config *cf = (struct radv_config *) (p->p.cf);
557

558
  if (!radv_trigger_valid(cf))
559 560
    return 1;

561 562
  struct channel *c = p->p.main_channel;
  return rt_examine(c->table, &cf->trigger, &p->p, c->out_filter);
563 564 565 566 567 568 569 570 571
}

static void
radv_postconfig(struct proto_config *CF)
{
  // struct radv_config *cf = (void *) CF;

  /* Define default channel */
  if (EMPTY_LIST(CF->channels))
572
    channel_config_new(NULL, net_label[NET_IP6], NET_IP6, CF);
573 574
}

575
static struct proto *
576
radv_init(struct proto_config *CF)
577
{
578
  struct proto *P = proto_new(CF);
579

580
  P->main_channel = proto_add_channel(P, proto_cf_main_channel(CF));
581

582 583 584 585
  P->import_control = radv_import_control;
  P->rt_notify = radv_rt_notify;
  P->if_notify = radv_if_notify;
  P->ifa_notify = radv_ifa_notify;
586

587
  return P;
588 589
}

590 591 592 593 594 595 596
static void
radv_set_fib(struct radv_proto *p, int up)
{
  if (up == p->fib_up)
    return;

  if (up)
597 598
    fib_init(&p->routes, p->p.pool, NET_IP6, sizeof(struct radv_route),
	     OFFSETOF(struct radv_route, n), 4, NULL);
599 600 601 602 603 604 605
  else
    fib_free(&p->routes);

  p->fib_up = up;
  p->prune_time = TIME_INFINITY;
}

606
static int
607
radv_start(struct proto *P)
608
{
609 610
  struct radv_proto *p = (struct radv_proto *) P;
  struct radv_config *cf = (struct radv_config *) (P->cf);
611

612
  init_list(&(p->iface_list));
613
  p->valid = 1;
614
  p->active = !radv_trigger_valid(cf);
615

616 617 618 619
  p->fib_up = 0;
  radv_set_fib(p, cf->propagate_routes);
  p->prune_time = TIME_INFINITY;

620 621 622 623 624 625 626
  return PS_UP;
}

static inline void
radv_iface_shutdown(struct radv_iface *ifa)
{
  if (ifa->sk)
627 628 629 630
  {
    radv_invalidate(ifa);
    radv_send_ra(ifa);
  }
631 632 633
}

static int
634
radv_shutdown(struct proto *P)
635
{
636
  struct radv_proto *p = (struct radv_proto *) P;
637

638 639
  p->valid = 0;

640
  struct radv_iface *ifa;
641
  WALK_LIST(ifa, p->iface_list)
642 643 644 645 646 647
    radv_iface_shutdown(ifa);

  return PS_DOWN;
}

static int
648
radv_reconfigure(struct proto *P, struct proto_config *CF)
649
{
650
  struct radv_proto *p = (struct radv_proto *) P;
651
  struct radv_config *old = (struct radv_config *) (P->cf);
652
  struct radv_config *new = (struct radv_config *) CF;
653

654
  if (!proto_configure_channel(P, &P->main_channel, proto_cf_main_channel(CF)))
655 656
    return 0;

657
  P->cf = CF; /* radv_check_active() requires proper P->cf */
658
  p->active = radv_check_active(p);
659

660 661 662 663 664
  /* Allocate or free FIB */
  radv_set_fib(p, new->propagate_routes);

  /* We started to accept routes so we need to refeed them */
  if (!old->propagate_routes && new->propagate_routes)
665
    channel_request_feeding(p->p.main_channel);
666

667 668 669
  struct iface *iface;
  WALK_LIST(iface, iface_list)
  {
670 671 672 673 674 675 676 677 678 679 680
    if (!(iface->flags & IF_UP))
      continue;

    /* Ignore non-multicast ifaces */
    if (!(iface->flags & IF_MULTICAST))
      continue;

    /* Ignore ifaces without link-local address */
    if (!iface->llv6)
      continue;

681
    struct radv_iface *ifa = radv_iface_find(p, iface);
682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700
    struct radv_iface_config *ic = (struct radv_iface_config *)
      iface_patt_find(&new->patt_list, iface, NULL);

    if (ifa && ic)
    {
      ifa->cf = ic;

      /* We cheat here - always notify the change even if there isn't
	 any. That would leads just to a few unnecessary RAs. */
      radv_iface_notify(ifa, RA_EV_CHANGE);
    }

    if (ifa && !ic)
    {
      radv_iface_shutdown(ifa);
      radv_iface_remove(ifa);
    }

    if (!ifa && ic)
701
      radv_iface_new(p, iface, ic);
702 703 704 705 706
  }

  return 1;
}

707 708 709 710 711 712 713 714 715 716
static void
radv_copy_config(struct proto_config *dest, struct proto_config *src)
{
  struct radv_config *d = (struct radv_config *) dest;
  struct radv_config *s = (struct radv_config *) src;

  /* We clean up patt_list, ifaces are non-sharable */
  init_list(&d->patt_list);

  /* We copy pref_list, shallow copy suffices */
717
  cfg_copy_list(&d->pref_list, &s->pref_list, sizeof(struct radv_prefix_config));
718 719
}

720
static void
721
radv_get_status(struct proto *P, byte *buf)
722
{
723
  struct radv_proto *p = (struct radv_proto *) P;
724

725
  if (!p->active)
726 727
    strcpy(buf, "Suppressed");
}
728

729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761
static const char *
radv_pref_str(u32 pref)
{
  switch (pref)
  {
    case RA_PREF_LOW:
      return "low";
    case RA_PREF_MEDIUM:
      return "medium";
    case RA_PREF_HIGH:
      return "high";
    default:
      return "??";
  }
}

/* The buffer has some minimal size */
static int
radv_get_attr(eattr *a, byte *buf, int buflen UNUSED)
{
  switch (a->id)
  {
  case EA_RA_PREFERENCE:
    bsprintf(buf, "preference: %s", radv_pref_str(a->u.data));
    return GA_FULL;
  case EA_RA_LIFETIME:
    bsprintf(buf, "lifetime");
    return GA_NAME;
  default:
    return GA_UNKNOWN;
  }
}

762 763 764
struct protocol proto_radv = {
  .name =		"RAdv",
  .template =		"radv%d",
765
  .attr_class =		EAP_RADV,
766
  .channel_mask =	NB_IP6,
767
  .proto_size =		sizeof(struct radv_proto),
768
  .config_size =	sizeof(struct radv_config),
769
  .postconfig =		radv_postconfig,
770 771 772
  .init =		radv_init,
  .start =		radv_start,
  .shutdown =		radv_shutdown,
773
  .reconfigure =	radv_reconfigure,
774
  .copy_config =	radv_copy_config,
775 776
  .get_status =		radv_get_status,
  .get_attr =		radv_get_attr
777
};