blob: 59e5de14d55ec225019e023b5bdae8d0ec0560b7 [file] [log] [blame]
hassoca776982004-06-12 14:33:05 +00001/*
2 *
3 * Copyright (C) 2000 Robert Olsson.
4 * Swedish University of Agricultural Sciences
5 *
6 * This file is part of GNU Zebra.
7 *
8 * GNU Zebra is free software; you can redistribute it and/or modify it
9 * under the terms of the GNU General Public License as published by the
10 * Free Software Foundation; either version 2, or (at your option) any
11 * later version.
12 *
13 * GNU Zebra is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with GNU Zebra; see the file COPYING. If not, write to the Free
20 * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
21 * 02111-1307, USA.
22 */
23
24/*
25 * This work includes work with the following copywrite:
26 *
27 * Copyright (C) 1997, 2000 Kunihiro Ishiguro
28 *
29 */
30
31/*
32 * Thanks to Jens Låås at Swedish University of Agricultural Sciences
33 * for reviewing and tests.
34 */
35
36
37#include <zebra.h>
38
39#ifdef HAVE_IRDP
40
41#include "if.h"
42#include "vty.h"
43#include "sockunion.h"
44#include "prefix.h"
45#include "command.h"
46#include "memory.h"
47#include "stream.h"
48#include "ioctl.h"
49#include "connected.h"
50#include "log.h"
51#include "zclient.h"
52#include "thread.h"
53#include "zebra/interface.h"
54#include "zebra/rtadv.h"
55#include "zebra/rib.h"
56#include "zebra/zserv.h"
57#include "zebra/redistribute.h"
58#include "zebra/irdp.h"
59#include <netinet/ip_icmp.h>
60#include "if.h"
61#include "sockunion.h"
62#include "log.h"
63
64
65/* Master of threads. */
66extern struct zebra_t zebrad;
67
68int in_cksum (void *ptr, int nbytes);
69extern int irdp_sock;
70int irdp_send_thread(struct thread *t_advert);
71char *inet_2a(u_int32_t a, char *b);
72void irdp_advert_off(struct interface *ifp);
73
74
75char b1[16], b2[16], b3[16], b4[16]; /* For inet_2a */
76
77struct prefix *irdp_get_prefix(struct interface *ifp)
78{
79 listnode node;
80 struct connected *ifc;
81
82 if(ifp->connected)
83 for (node = listhead (ifp->connected); node; nextnode (node)) {
84 ifc = getdata (node);
85 return ifc->address;
86 }
87 return NULL;
88}
89
90/* Join to the add/leave multicast group. */
91int if_group (struct interface *ifp,
92 int sock,
93 u_int32_t group,
94 int add_leave)
95{
96 struct zebra_if *zi;
97 struct ip_mreq m;
98 struct prefix *p;
99 int ret;
100
101 zi = ifp->info;
102
103 bzero (&m, sizeof (m));
104 m.imr_multiaddr.s_addr = htonl (group);
105 p = irdp_get_prefix(ifp);
106
107 if(!p) {
108 zlog_warn ("IRDP: can't get address for %s", ifp->name);
109 return 1;
110 }
111
112 m.imr_interface = p->u.prefix4;
113
114 ret = setsockopt (sock, IPPROTO_IP, add_leave,
115 (char *) &m, sizeof (struct ip_mreq));
116 if (ret < 0)
117 zlog_warn ("IRDP: %s can't setsockopt %s: %s",
118 add_leave == IP_ADD_MEMBERSHIP? "join group":"leave group",
119 inet_2a(group, b1),
120 strerror (errno));
121
122 return ret;
123}
124
125int if_add_group (struct interface *ifp)
126{
127 struct zebra_if *zi= ifp->info;
128 struct irdp_interface *irdp = &zi->irdp;
129 int ret;
130
131 ret = if_group (ifp, irdp_sock, INADDR_ALLRTRS_GROUP, IP_ADD_MEMBERSHIP);
132 if (ret < 0) {
133 return ret;
134 }
135
136 if(irdp->flags & IF_DEBUG_MISC )
137 zlog_warn("IRDP: Adding group %s for %s\n",
138 inet_2a(htonl(INADDR_ALLRTRS_GROUP), b1),
139 ifp->name);
140 return 0;
141}
142int if_drop_group (struct interface *ifp)
143{
144 struct zebra_if *zi= ifp->info;
145 struct irdp_interface *irdp = &zi->irdp;
146 int ret;
147
148 ret = if_group (ifp, irdp_sock, INADDR_ALLRTRS_GROUP, IP_DROP_MEMBERSHIP);
149 if (ret < 0)
150 return ret;
151
152 if(irdp->flags & IF_DEBUG_MISC)
153 zlog_warn("IRDP: Leaving group %s for %s\n",
154 inet_2a(htonl(INADDR_ALLRTRS_GROUP), b1),
155 ifp->name);
156 return 0;
157}
158
159struct interface *get_iflist_ifp(int idx)
160{
161 listnode node;
162 struct interface *ifp;
163
164 for (node = listhead (iflist); node; nextnode (node)) {
165 ifp = getdata (node);
166 if(ifp->ifindex == idx) return ifp;
167 }
168 return NULL;
169}
170
171void
172if_set_defaults(struct interface *ifp)
173{
174 struct zebra_if *zi=ifp->info;
175 struct irdp_interface *irdp=&zi->irdp;
176
177 irdp->MaxAdvertInterval = IRDP_MAXADVERTINTERVAL;
178 irdp->MinAdvertInterval = IRDP_MINADVERTINTERVAL;
179 irdp->Preference = IRDP_PREFERENCE;
180 irdp->Lifetime = IRDP_LIFETIME;
181}
182
183
184struct Adv *Adv_new ()
185{
186 struct Adv *new;
187 new = XMALLOC (MTYPE_TMP, sizeof (struct Adv));
188 memset (new, 0, sizeof (struct Adv));
189 return new;
190}
191
192void Adv_free (struct Adv *adv)
193{
194 XFREE (MTYPE_TMP, adv);
195}
196
197void irdp_if_start(struct interface *ifp, int multicast, int set_defaults)
198{
199 struct zebra_if *zi= ifp->info;
200 struct irdp_interface *irdp = &zi->irdp;
201 listnode node;
202 u_int32_t timer, seed;
203
204 if (irdp->flags & IF_ACTIVE ) {
205 zlog_warn("IRDP: Interface is already active %s\n", ifp->name);
206 return;
207 }
208 irdp->flags |= IF_ACTIVE;
209
210 if(!multicast)
211 irdp->flags |= IF_BROADCAST;
212
213 if_add_update(ifp);
214
215 if (! (ifp->flags & IFF_UP)) {
216 zlog_warn("IRDP: Interface is down %s\n", ifp->name);
217 }
218
219 /* Shall we cancel if_start if if_add_group fails? */
220
221 if( multicast) {
222 if_add_group(ifp);
223
224 if (! (ifp->flags & (IFF_MULTICAST|IFF_ALLMULTI))) {
225 zlog_warn("IRDP: Interface not multicast enabled %s\n", ifp->name);
226 }
227 }
228
229 if(set_defaults)
230 if_set_defaults(ifp);
231
232 irdp->irdp_sent = 0;
233
234 /* The spec suggests this for randomness */
235
236 seed = 0;
237 if( ifp->connected)
238 for (node = listhead (ifp->connected); node; nextnode (node))
239 {
240 struct connected *ifc = getdata (node);
241 seed = ifc->address->u.prefix4.s_addr;
242 }
243
244 srandom(seed);
245 timer = (random () % IRDP_DEFAULT_INTERVAL) + 1;
246
247 irdp->AdvPrefList = list_new();
248 irdp->AdvPrefList->del = (void *) Adv_free; /* Destructor */
249
250
251 /* And this for startup. Speed limit from 1991 :-). But it's OK*/
252
253 if(irdp->irdp_sent < MAX_INITIAL_ADVERTISEMENTS &&
254 timer > MAX_INITIAL_ADVERT_INTERVAL )
255 timer= MAX_INITIAL_ADVERT_INTERVAL;
256
257
258 if(irdp->flags & IF_DEBUG_MISC)
259 zlog_warn("IRDP: Init timer for %s set to %u\n",
260 ifp->name,
261 timer);
262
263 irdp->t_advertise = thread_add_timer(zebrad.master,
264 irdp_send_thread,
265 ifp,
266 timer);
267}
268
269void irdp_if_stop(struct interface *ifp)
270{
271 struct zebra_if *zi=ifp->info;
272 struct irdp_interface *irdp=&zi->irdp;
273
274 if (irdp == NULL) {
275 zlog_warn ("Interface %s structure is NULL", ifp->name);
276 return;
277 }
278
279 if (! (irdp->flags & IF_ACTIVE )) {
280 zlog_warn("Interface is not active %s\n", ifp->name);
281 return;
282 }
283
284 if(! (irdp->flags & IF_BROADCAST))
285 if_drop_group(ifp);
286
287 irdp_advert_off(ifp);
288
289 list_delete(irdp->AdvPrefList);
290 irdp->AdvPrefList=NULL;
291
292 irdp->flags = 0;
293}
294
295
296void irdp_if_shutdown(struct interface *ifp)
297{
298 struct zebra_if *zi= ifp->info;
299 struct irdp_interface *irdp = &zi->irdp;
300
301 if (irdp->flags & IF_SHUTDOWN ) {
302 zlog_warn("IRDP: Interface is already shutdown %s\n", ifp->name);
303 return;
304 }
305
306 irdp->flags |= IF_SHUTDOWN;
307 irdp->flags &= ~IF_ACTIVE;
308
309 if(! (irdp->flags & IF_BROADCAST))
310 if_drop_group(ifp);
311
312 /* Tell the hosts we are out of service */
313 irdp_advert_off(ifp);
314}
315
316void irdp_if_no_shutdown(struct interface *ifp)
317{
318 struct zebra_if *zi= ifp->info;
319 struct irdp_interface *irdp = &zi->irdp;
320
321 if (! (irdp->flags & IF_SHUTDOWN )) {
322 zlog_warn("IRDP: Interface is not shutdown %s\n", ifp->name);
323 return;
324 }
325
326 irdp->flags &= ~IF_SHUTDOWN;
327
328 irdp_if_start(ifp, irdp->flags & IF_BROADCAST? FALSE : TRUE, FALSE);
329
330}
331
332
333/* Write configuration to user */
334
335void irdp_config_write (struct vty *vty, struct interface *ifp)
336{
337 struct zebra_if *zi=ifp->info;
338 struct irdp_interface *irdp=&zi->irdp;
339 struct Adv *adv;
340 listnode node;
341
342 if(irdp->flags & IF_ACTIVE || irdp->flags & IF_SHUTDOWN) {
343
344 if( irdp->flags & IF_SHUTDOWN)
345 vty_out (vty, " ip irdp shutdown %s", VTY_NEWLINE);
346
347 if( irdp->flags & IF_BROADCAST)
348 vty_out (vty, " ip irdp broadcast%s", VTY_NEWLINE);
349 else
350 vty_out (vty, " ip irdp multicast%s", VTY_NEWLINE);
351
352 vty_out (vty, " ip irdp preference %ld%s",
353 irdp->Preference, VTY_NEWLINE);
354
355 for (node = listhead (irdp->AdvPrefList); node; nextnode (node)) {
356 adv = getdata (node);
357 vty_out (vty, " ip irdp address %s preference %d%s",
358 inet_2a(adv->ip.s_addr, b1),
359 adv->pref,
360 VTY_NEWLINE);
361
362 }
363
364 vty_out (vty, " ip irdp holdtime %d%s",
365 irdp->Lifetime, VTY_NEWLINE);
366
367 vty_out (vty, " ip irdp minadvertinterval %ld%s",
368 irdp->MinAdvertInterval, VTY_NEWLINE);
369
370 vty_out (vty, " ip irdp maxadvertinterval %ld%s",
371 irdp->MaxAdvertInterval, VTY_NEWLINE);
372
373 }
374}
375
376
377DEFUN (ip_irdp_multicast,
378 ip_irdp_multicast_cmd,
379 "ip irdp multicast",
380 IP_STR
381 "ICMP Router discovery on this interface using multicast\n")
382{
383 struct interface *ifp;
384
385 ifp = (struct interface *) vty->index;
386 if(!ifp) {
387 return CMD_WARNING;
388 }
389
390 irdp_if_start(ifp, TRUE, TRUE);
391 return CMD_SUCCESS;
392}
393
394DEFUN (ip_irdp_broadcast,
395 ip_irdp_broadcast_cmd,
396 "ip irdp broadcast",
397 IP_STR
398 "ICMP Router discovery on this interface using broadcast\n")
399{
400 struct interface *ifp;
401
402 ifp = (struct interface *) vty->index;
403 if(!ifp) {
404 return CMD_WARNING;
405 }
406
407 irdp_if_start(ifp, FALSE, TRUE);
408 return CMD_SUCCESS;
409}
410
hasso996933f2004-07-12 16:32:56 +0000411DEFUN (no_ip_irdp,
412 no_ip_irdp_cmd,
hassoca776982004-06-12 14:33:05 +0000413 "no ip irdp",
hasso8d0f15f2004-09-11 16:33:28 +0000414 NO_STR
hassoca776982004-06-12 14:33:05 +0000415 IP_STR
416 "Disable ICMP Router discovery on this interface\n")
417{
418 struct interface *ifp;
419
420 ifp = (struct interface *) vty->index;
421 if(!ifp) {
422 return CMD_WARNING;
423 }
424
425 irdp_if_stop(ifp);
426 return CMD_SUCCESS;
427}
428
429DEFUN (ip_irdp_shutdown,
430 ip_irdp_shutdown_cmd,
431 "ip irdp shutdown",
432 IP_STR
433 "ICMP Router discovery shutdown on this interface\n")
434{
435 struct interface *ifp;
436
437 ifp = (struct interface *) vty->index;
438 if(!ifp) {
439 return CMD_WARNING;
440 }
441
442 irdp_if_shutdown(ifp);
443 return CMD_SUCCESS;
444}
445
hasso996933f2004-07-12 16:32:56 +0000446DEFUN (no_ip_irdp_shutdown,
447 no_ip_irdp_shutdown_cmd,
hassoca776982004-06-12 14:33:05 +0000448 "no ip irdp shutdown",
hasso8d0f15f2004-09-11 16:33:28 +0000449 NO_STR
hassoca776982004-06-12 14:33:05 +0000450 IP_STR
451 "ICMP Router discovery no shutdown on this interface\n")
452{
453 struct interface *ifp;
454
455 ifp = (struct interface *) vty->index;
456 if(!ifp) {
457 return CMD_WARNING;
458 }
459
460 irdp_if_no_shutdown(ifp);
461 return CMD_SUCCESS;
462}
463
464DEFUN (ip_irdp_holdtime,
465 ip_irdp_holdtime_cmd,
466 "ip irdp holdtime <0-9000>",
467 IP_STR
468 "ICMP Router discovery on this interface\n"
469 "Set holdtime value\n"
470 "Holdtime value in seconds. Default is 1800 seconds\n")
471{
472 struct interface *ifp;
473 struct zebra_if *zi;
474 struct irdp_interface *irdp;
475 ifp = (struct interface *) vty->index;
476 if(!ifp) {
477 return CMD_WARNING;
478 }
479
480 zi=ifp->info;
481 irdp=&zi->irdp;
482
483 irdp->Lifetime = atoi(argv[0]);
484 return CMD_SUCCESS;
485}
486
487DEFUN (ip_irdp_minadvertinterval,
488 ip_irdp_minadvertinterval_cmd,
489 "ip irdp minadvertinterval <3-1800>",
490 IP_STR
491 "ICMP Router discovery on this interface\n"
492 "Set minimum time between advertisement\n"
493 "Minimum advertisement interval in seconds\n")
494{
495 struct interface *ifp;
496 struct zebra_if *zi;
497 struct irdp_interface *irdp;
498 ifp = (struct interface *) vty->index;
499 if(!ifp) {
500 return CMD_WARNING;
501 }
502
503 zi=ifp->info;
504 irdp=&zi->irdp;
505
506 if( atoi(argv[0]) <= irdp->MaxAdvertInterval) {
507 irdp->MinAdvertInterval = atoi(argv[0]);
508
509 return CMD_SUCCESS;
510 }
511
512 vty_out (vty, "ICMP warning maxadvertinterval is greater or equal than minadvertinterval%s",
513 VTY_NEWLINE);
514
515 vty_out (vty, "Please correct!%s",
516 VTY_NEWLINE);
517 return CMD_WARNING;
518}
519
520DEFUN (ip_irdp_maxadvertinterval,
521 ip_irdp_maxadvertinterval_cmd,
522 "ip irdp maxadvertinterval <4-1800>",
523 IP_STR
524 "ICMP Router discovery on this interface\n"
525 "Set maximum time between advertisement\n"
526 "Maximum advertisement interval in seconds\n")
527{
528 struct interface *ifp;
529 struct zebra_if *zi;
530 struct irdp_interface *irdp;
531 ifp = (struct interface *) vty->index;
532 if(!ifp) {
533 return CMD_WARNING;
534 }
535
536 zi=ifp->info;
537 irdp=&zi->irdp;
538
539
540 if( irdp->MinAdvertInterval <= atoi(argv[0]) ) {
541 irdp->MaxAdvertInterval = atoi(argv[0]);
542
543 return CMD_SUCCESS;
544 }
545
546 vty_out (vty, "ICMP warning maxadvertinterval is greater or equal than minadvertinterval%s",
547 VTY_NEWLINE);
548
549 vty_out (vty, "Please correct!%s",
550 VTY_NEWLINE);
551 return CMD_WARNING;
552}
553
554DEFUN (ip_irdp_preference,
555 ip_irdp_preference_cmd,
556
557 /* DEFUN needs to be fixed for negative ranages...
558 Be positive for now. :-)
559
560 "ip irdp preference <-2147483648-2147483647>",
561 */
562
563
564 "ip irdp preference <0-2147483647>",
565 IP_STR
566 "ICMP Router discovery on this interface\n"
567 "Set default preference level for this interface\n"
568 "Preference level\n")
569{
570 struct interface *ifp;
571 struct zebra_if *zi;
572 struct irdp_interface *irdp;
573 ifp = (struct interface *) vty->index;
574 if(!ifp) {
575 return CMD_WARNING;
576 }
577
578 zi=ifp->info;
579 irdp=&zi->irdp;
580
581 irdp->Preference = atoi(argv[0]);
582 return CMD_SUCCESS;
583}
584
585DEFUN (ip_irdp_address_preference,
586 ip_irdp_address_preference_cmd,
587 "ip irdp address A.B.C.D preference <0-2147483647>",
588 IP_STR
589 "Alter ICMP Router discovery preference this interface\n"
590 "Specify IRDP non-default preference to advertise\n"
591 "Set IRDP address for advertise\n"
592 "Preference level\n")
593{
594 listnode node;
595 struct in_addr ip;
596 int pref;
597 int ret;
598 struct interface *ifp;
599 struct zebra_if *zi;
600 struct irdp_interface *irdp;
601 struct Adv *adv;
602
603 ifp = (struct interface *) vty->index;
604 if(!ifp) {
605 return CMD_WARNING;
606 }
607
608 zi=ifp->info;
609 irdp=&zi->irdp;
610
611 ret = inet_aton(argv[0], &ip);
612 if(!ret) return CMD_WARNING;
613
614 pref = atoi(argv[1]);
615
616 for (node = listhead (irdp->AdvPrefList); node; nextnode (node)) {
617 adv = getdata (node);
618 if(adv->ip.s_addr == ip.s_addr) return CMD_SUCCESS;
619 }
620
621 adv = Adv_new();
622 adv->ip = ip;
623 adv->pref = pref;
624 listnode_add(irdp->AdvPrefList, adv);
625
626 return CMD_SUCCESS;
627
628}
629
hasso996933f2004-07-12 16:32:56 +0000630DEFUN (no_ip_irdp_address_preference,
631 no_ip_irdp_address_preference_cmd,
hassoca776982004-06-12 14:33:05 +0000632 "no ip irdp address A.B.C.D preference <0-2147483647>",
hasso8d0f15f2004-09-11 16:33:28 +0000633 NO_STR
hassoca776982004-06-12 14:33:05 +0000634 IP_STR
635 "Alter ICMP Router discovery preference this interface\n"
636 "Removes IRDP non-default preference\n"
637 "Select IRDP address\n"
638 "Old preference level\n")
639{
640 listnode node;
641 struct in_addr ip;
642 int pref;
643 int ret;
644 struct interface *ifp;
645 struct zebra_if *zi;
646 struct irdp_interface *irdp;
647 struct Adv *adv;
648
649 ifp = (struct interface *) vty->index;
650 if(!ifp) {
651 return CMD_WARNING;
652 }
653
654 zi=ifp->info;
655 irdp=&zi->irdp;
656
657 ret = inet_aton(argv[0], &ip);
658 if(!ret) return CMD_WARNING;
659
660 pref = atoi(argv[1]);
661
662 for (node = listhead (irdp->AdvPrefList); node; nextnode (node)) {
663 adv = getdata (node);
664 if(adv->ip.s_addr == ip.s_addr ) {
665 listnode_delete(irdp->AdvPrefList, adv);
666 break;
667 }
668 }
669
670 return CMD_SUCCESS;
671
672
673}
674
675DEFUN (ip_irdp_debug_messages,
676 ip_irdp_debug_messages_cmd,
677 "ip irdp debug messages",
678 IP_STR
679 "ICMP Router discovery debug Averts. and Solicits (short)\n")
680{
681 struct interface *ifp;
682 struct zebra_if *zi;
683 struct irdp_interface *irdp;
684 ifp = (struct interface *) vty->index;
685 if(!ifp) {
686 return CMD_WARNING;
687 }
688
689 zi=ifp->info;
690 irdp=&zi->irdp;
691
692 irdp->flags |= IF_DEBUG_MESSAGES;
693
694 return CMD_SUCCESS;
695}
696
697DEFUN (ip_irdp_debug_misc,
698 ip_irdp_debug_misc_cmd,
699 "ip irdp debug misc",
700 IP_STR
701 "ICMP Router discovery debug Averts. and Solicits (short)\n")
702{
703 struct interface *ifp;
704 struct zebra_if *zi;
705 struct irdp_interface *irdp;
706 ifp = (struct interface *) vty->index;
707 if(!ifp) {
708 return CMD_WARNING;
709 }
710
711 zi=ifp->info;
712 irdp=&zi->irdp;
713
714 irdp->flags |= IF_DEBUG_MISC;
715
716 return CMD_SUCCESS;
717}
718
719DEFUN (ip_irdp_debug_packet,
720 ip_irdp_debug_packet_cmd,
721 "ip irdp debug packet",
722 IP_STR
723 "ICMP Router discovery debug Averts. and Solicits (short)\n")
724{
725 struct interface *ifp;
726 struct zebra_if *zi;
727 struct irdp_interface *irdp;
728 ifp = (struct interface *) vty->index;
729 if(!ifp) {
730 return CMD_WARNING;
731 }
732
733 zi=ifp->info;
734 irdp=&zi->irdp;
735
736 irdp->flags |= IF_DEBUG_PACKET;
737
738 return CMD_SUCCESS;
739}
740
741
742DEFUN (ip_irdp_debug_disable,
743 ip_irdp_debug_disable_cmd,
744 "ip irdp debug disable",
745 IP_STR
746 "ICMP Router discovery debug Averts. and Solicits (short)\n")
747{
748 struct interface *ifp;
749 struct zebra_if *zi;
750 struct irdp_interface *irdp;
751 ifp = (struct interface *) vty->index;
752 if(!ifp) {
753 return CMD_WARNING;
754 }
755
756 zi=ifp->info;
757 irdp=&zi->irdp;
758
759 irdp->flags &= ~IF_DEBUG_PACKET;
760 irdp->flags &= ~IF_DEBUG_MESSAGES;
761 irdp->flags &= ~IF_DEBUG_MISC;
762
763 return CMD_SUCCESS;
764}
765
766void
767irdp_if_init ()
768{
769 install_element (INTERFACE_NODE, &ip_irdp_broadcast_cmd);
770 install_element (INTERFACE_NODE, &ip_irdp_multicast_cmd);
hasso996933f2004-07-12 16:32:56 +0000771 install_element (INTERFACE_NODE, &no_ip_irdp_cmd);
hassoca776982004-06-12 14:33:05 +0000772 install_element (INTERFACE_NODE, &ip_irdp_shutdown_cmd);
hasso996933f2004-07-12 16:32:56 +0000773 install_element (INTERFACE_NODE, &no_ip_irdp_shutdown_cmd);
hassoca776982004-06-12 14:33:05 +0000774 install_element (INTERFACE_NODE, &ip_irdp_holdtime_cmd);
775 install_element (INTERFACE_NODE, &ip_irdp_maxadvertinterval_cmd);
776 install_element (INTERFACE_NODE, &ip_irdp_minadvertinterval_cmd);
777 install_element (INTERFACE_NODE, &ip_irdp_preference_cmd);
778 install_element (INTERFACE_NODE, &ip_irdp_address_preference_cmd);
hasso996933f2004-07-12 16:32:56 +0000779 install_element (INTERFACE_NODE, &no_ip_irdp_address_preference_cmd);
hassoca776982004-06-12 14:33:05 +0000780
781 install_element (INTERFACE_NODE, &ip_irdp_debug_messages_cmd);
782 install_element (INTERFACE_NODE, &ip_irdp_debug_misc_cmd);
783 install_element (INTERFACE_NODE, &ip_irdp_debug_packet_cmd);
784 install_element (INTERFACE_NODE, &ip_irdp_debug_disable_cmd);
785}
786
787#endif /* HAVE_IRDP */