1 /* Mapper for connections between MRouteD multicast routers.
2 * Written by Pavel Curtis <Pavel@PARC.Xerox.Com>
4 * mapper.c,v 3.8.4.3 1998/01/06 01:57:47 fenner Exp
6 * $FreeBSD: src/usr.sbin/mrouted/mapper.c,v 1.15.2.1 2002/09/12 16:27:49 nectar Exp $
7 * $DragonFly: src/usr.sbin/mrouted/mapper.c,v 1.4 2004/03/15 18:10:28 dillon Exp $
11 * Copyright (c) Xerox Corporation 1992. All rights reserved.
13 * License is granted to copy, to use, and to make and to use derivative
14 * works for research and evaluation purposes, provided that Xerox is
15 * acknowledged in all documentation pertaining to any such copy or derivative
16 * work. Xerox grants no other licenses expressed or implied. The Xerox trade
17 * name should not be used in any advertising without its written permission.
19 * XEROX CORPORATION MAKES NO REPRESENTATIONS CONCERNING EITHER THE
20 * MERCHANTABILITY OF THIS SOFTWARE OR THE SUITABILITY OF THIS SOFTWARE
21 * FOR ANY PARTICULAR PURPOSE. The software is provided "as is" without
22 * express or implied warranty of any kind.
24 * These notices must be retained in any copies of any part of this software.
32 #include <arpa/inet.h>
35 #define DEFAULT_TIMEOUT 2 /* How long to wait before retrying requests */
36 #define DEFAULT_RETRIES 1 /* How many times to ask each router */
39 /* All IP addresses are stored in the data structure in NET order. */
41 typedef struct neighbor
{
42 struct neighbor
*next
;
43 u_int32 addr
; /* IP address in NET order */
44 u_char metric
; /* TTL cost of forwarding */
45 u_char threshold
; /* TTL threshold to forward */
46 u_short flags
; /* flags on connection */
47 #define NF_PRESENT 0x8000 /* True if flags are meaningful */
50 typedef struct interface
{
51 struct interface
*next
;
52 u_int32 addr
; /* IP address of the interface in NET order */
53 Neighbor
*neighbors
; /* List of neighbors' IP addresses */
57 u_int32 addr
; /* IP address of this entry in NET order */
58 u_int32 version
; /* which mrouted version is running */
59 int tries
; /* How many requests sent? -1 for aliases */
61 struct node
*alias
; /* If alias, to what? */
62 struct interface
*interfaces
; /* Else, neighbor data */
64 struct node
*left
, *right
;
69 u_int32 our_addr
, target_addr
= 0; /* in NET order */
71 int retries
= DEFAULT_RETRIES
;
72 int timeout
= DEFAULT_TIMEOUT
;
73 int show_names
= TRUE
;
74 vifi_t numvifs
; /* to keep loader happy */
75 /* (see COPY_TABLES macro called in kern.c) */
77 Node
* find_node(u_int32 addr
, Node
**ptr
);
78 Interface
* find_interface(u_int32 addr
, Node
*node
);
79 Neighbor
* find_neighbor(u_int32 addr
, Node
*node
);
80 int main(int argc
, char **argv
);
81 void ask(u_int32 dst
);
82 void ask2(u_int32 dst
);
83 int retry_requests(Node
*node
);
84 char * inet_name(u_int32 addr
);
85 void print_map(Node
*node
);
86 char * graph_name(u_int32 addr
, char *buf
, int len
);
87 void graph_edges(Node
*node
);
88 void elide_aliases(Node
*node
);
90 int get_number(int *var
, int deflt
, char ***pargv
,
92 u_int32
host_addr(char *name
);
93 static void usage(void);
96 find_node(u_int32 addr
, Node
**ptr
)
101 *ptr
= n
= (Node
*) malloc(sizeof(Node
));
106 n
->left
= n
->right
= 0;
108 } else if (addr
== n
->addr
)
110 else if (addr
< n
->addr
)
111 return find_node(addr
, &(n
->left
));
113 return find_node(addr
, &(n
->right
));
117 find_interface(u_int32 addr
, Node
*node
)
121 for (ifc
= node
->u
.interfaces
; ifc
; ifc
= ifc
->next
)
122 if (ifc
->addr
== addr
)
125 ifc
= (Interface
*) malloc(sizeof(Interface
));
127 ifc
->next
= node
->u
.interfaces
;
128 node
->u
.interfaces
= ifc
;
135 find_neighbor(u_int32 addr
, Node
*node
)
139 for (ifc
= node
->u
.interfaces
; ifc
; ifc
= ifc
->next
) {
142 for (nb
= ifc
->neighbors
; nb
; nb
= nb
->next
)
143 if (nb
->addr
== addr
)
152 * Log errors and other messages to stderr, according to the severity of the
153 * message and the current debug level. For errors of severity LOG_ERR or
154 * worse, terminate the program.
157 log(int severity
, int syserr
, char *format
, ...)
162 va_start(ap
, format
);
165 case 0: if (severity
> LOG_WARNING
) return;
166 case 1: if (severity
> LOG_NOTICE
) return;
167 case 2: if (severity
> LOG_INFO
) return;
170 if (severity
== LOG_WARNING
)
171 strcpy(fmt
, "warning - ");
172 strncat(fmt
, format
, sizeof(fmt
)-strlen(fmt
));
173 fmt
[sizeof(fmt
)-1]='\0';
174 vfprintf(stderr
, fmt
, ap
);
176 fprintf(stderr
, "\n");
177 else if (syserr
< sys_nerr
)
178 fprintf(stderr
, ": %s\n", sys_errlist
[syserr
]);
180 fprintf(stderr
, ": errno %d\n", syserr
);
183 if (severity
<= LOG_ERR
)
189 * Send a neighbors-list request.
195 send_igmp(our_addr
, dst
, IGMP_DVMRP
, DVMRP_ASK_NEIGHBORS
,
196 htonl(MROUTED_LEVEL
), 0);
203 send_igmp(our_addr
, dst
, IGMP_DVMRP
, DVMRP_ASK_NEIGHBORS2
,
204 htonl(MROUTED_LEVEL
), 0);
209 * Process an incoming group membership report.
212 accept_group_report(u_int32 src
, u_int32 dst
, u_int32 group
, int r_type
)
215 log(LOG_INFO
, 0, "ignoring IGMP group membership report from %s to %s",
216 inet_fmt(src
, s1
), inet_fmt(dst
, s2
));
221 * Process an incoming neighbor probe message.
224 accept_probe(u_int32 src
, u_int32 dst
, char *p
, int datalen
, u_int32 level
)
226 log(LOG_INFO
, 0, "ignoring DVMRP probe from %s to %s",
227 inet_fmt(src
, s1
), inet_fmt(dst
, s2
));
232 * Process an incoming route report message.
235 accept_report(u_int32 src
, u_int32 dst
, char *p
, int datalen
, u_int32 level
)
237 log(LOG_INFO
, 0, "ignoring DVMRP routing report from %s to %s",
238 inet_fmt(src
, s1
), inet_fmt(dst
, s2
));
243 * Process an incoming neighbor-list request message.
246 accept_neighbor_request(u_int32 src
, u_int32 dst
)
248 if (src
!= our_addr
) {
250 "ignoring spurious DVMRP neighbor request from %s to %s",
251 inet_fmt(src
, s1
), inet_fmt(dst
, s2
));
256 accept_neighbor_request2(u_int32 src
, u_int32 dst
)
258 if (src
!= our_addr
) {
260 "ignoring spurious DVMRP neighbor request2 from %s to %s",
261 inet_fmt(src
, s1
), inet_fmt(dst
, s2
));
266 * Process an incoming neighbor-list message.
269 accept_neighbors(u_int32 src
, u_int32 dst
, u_char
*p
, int datalen
,
272 Node
*node
= find_node(src
, &routers
);
274 if (node
->tries
== 0) /* Never heard of 'em; must have hit them at */
275 node
->tries
= 1; /* least once, though...*/
276 else if (node
->tries
== -1) /* follow alias link */
277 node
= node
->u
.alias
;
279 #define GET_ADDR(a) (a = ((u_int32)*p++ << 24), a += ((u_int32)*p++ << 16),\
280 a += ((u_int32)*p++ << 8), a += *p++)
282 /* if node is running a recent mrouted, ask for additional info */
284 node
->version
= level
;
293 fprintf(stderr
, " datalen = %d\n", datalen
);
294 for (i
= 0; i
< datalen
; i
++) {
296 fprintf(stderr
, " ");
297 fprintf(stderr
, " %02x", p
[i
]);
298 if ((i
& 0xF) == 0xF)
299 fprintf(stderr
, "\n");
301 if ((datalen
& 0xF) != 0xF)
302 fprintf(stderr
, "\n");
305 while (datalen
> 0) { /* loop through interfaces */
307 u_char metric
, threshold
, ncount
;
310 Neighbor
*old_neighbors
;
312 if (datalen
< 4 + 3) {
313 log(LOG_WARNING
, 0, "received truncated interface record from %s",
319 ifc_addr
= htonl(ifc_addr
);
325 /* Fix up any alias information */
326 ifc_node
= find_node(ifc_addr
, &routers
);
327 if (ifc_node
->tries
== 0) { /* new node */
328 ifc_node
->tries
= -1;
329 ifc_node
->u
.alias
= node
;
330 } else if (ifc_node
!= node
331 && (ifc_node
->tries
> 0 || ifc_node
->u
.alias
!= node
)) {
332 /* must merge two hosts' nodes */
333 Interface
*ifc_i
, *next_ifc_i
;
335 if (ifc_node
->tries
== -1) {
336 Node
*tmp
= ifc_node
->u
.alias
;
338 ifc_node
->u
.alias
= node
;
342 /* Merge ifc_node (foo_i) into node (foo_n) */
344 if (ifc_node
->tries
> node
->tries
)
345 node
->tries
= ifc_node
->tries
;
347 for (ifc_i
= ifc_node
->u
.interfaces
; ifc_i
; ifc_i
= next_ifc_i
) {
348 Neighbor
*nb_i
, *next_nb_i
, *nb_n
;
349 Interface
*ifc_n
= find_interface(ifc_i
->addr
, node
);
351 old_neighbors
= ifc_n
->neighbors
;
352 for (nb_i
= ifc_i
->neighbors
; nb_i
; nb_i
= next_nb_i
) {
353 next_nb_i
= nb_i
->next
;
354 for (nb_n
= old_neighbors
; nb_n
; nb_n
= nb_n
->next
)
355 if (nb_i
->addr
== nb_n
->addr
) {
356 if (nb_i
->metric
!= nb_n
->metric
357 || nb_i
->threshold
!= nb_n
->threshold
)
359 "inconsistent %s for neighbor %s of %s",
361 inet_fmt(nb_i
->addr
, s1
),
362 inet_fmt(node
->addr
, s2
));
366 if (!nb_n
) { /* no match for this neighbor yet */
367 nb_i
->next
= ifc_n
->neighbors
;
368 ifc_n
->neighbors
= nb_i
;
372 next_ifc_i
= ifc_i
->next
;
376 ifc_node
->tries
= -1;
377 ifc_node
->u
.alias
= node
;
380 ifc
= find_interface(ifc_addr
, node
);
381 old_neighbors
= ifc
->neighbors
;
383 /* Add the neighbors for this interface */
390 log(LOG_WARNING
, 0, "received truncated neighbor list from %s",
396 neighbor
= htonl(neighbor
);
399 for (nb
= old_neighbors
; nb
; nb
= nb
->next
)
400 if (nb
->addr
== neighbor
) {
401 if (metric
!= nb
->metric
|| threshold
!= nb
->threshold
)
403 "inconsistent %s for neighbor %s of %s",
405 inet_fmt(nb
->addr
, s1
), inet_fmt(node
->addr
, s2
));
409 nb
= (Neighbor
*) malloc(sizeof(Neighbor
));
410 nb
->next
= ifc
->neighbors
;
414 nb
->threshold
= threshold
;
417 n_node
= find_node(neighbor
, &routers
);
418 if (n_node
->tries
== 0 && !target_addr
) { /* it's a new router */
429 accept_neighbors2(u_int32 src
, u_int32 dst
, u_char
*p
, int datalen
,
432 Node
*node
= find_node(src
, &routers
);
433 u_int broken_cisco
= ((level
& 0xffff) == 0x020a); /* 10.2 */
434 /* well, only possibly_broken_cisco, but that's too long to type. */
436 if (node
->tries
== 0) /* Never heard of 'em; must have hit them at */
437 node
->tries
= 1; /* least once, though...*/
438 else if (node
->tries
== -1) /* follow alias link */
439 node
= node
->u
.alias
;
441 while (datalen
> 0) { /* loop through interfaces */
443 u_char metric
, threshold
, ncount
, flags
;
446 Neighbor
*old_neighbors
;
448 if (datalen
< 4 + 4) {
449 log(LOG_WARNING
, 0, "received truncated interface record from %s",
454 ifc_addr
= *(u_int32
*)p
;
462 if (broken_cisco
&& ncount
== 0) /* dumb Ciscos */
464 if (broken_cisco
&& ncount
> 15) /* dumb Ciscos */
465 ncount
= ncount
& 0xf;
467 /* Fix up any alias information */
468 ifc_node
= find_node(ifc_addr
, &routers
);
469 if (ifc_node
->tries
== 0) { /* new node */
470 ifc_node
->tries
= -1;
471 ifc_node
->u
.alias
= node
;
472 } else if (ifc_node
!= node
473 && (ifc_node
->tries
> 0 || ifc_node
->u
.alias
!= node
)) {
474 /* must merge two hosts' nodes */
475 Interface
*ifc_i
, *next_ifc_i
;
477 if (ifc_node
->tries
== -1) {
478 Node
*tmp
= ifc_node
->u
.alias
;
480 ifc_node
->u
.alias
= node
;
484 /* Merge ifc_node (foo_i) into node (foo_n) */
486 if (ifc_node
->tries
> node
->tries
)
487 node
->tries
= ifc_node
->tries
;
489 for (ifc_i
= ifc_node
->u
.interfaces
; ifc_i
; ifc_i
= next_ifc_i
) {
490 Neighbor
*nb_i
, *next_nb_i
, *nb_n
;
491 Interface
*ifc_n
= find_interface(ifc_i
->addr
, node
);
493 old_neighbors
= ifc_n
->neighbors
;
494 for (nb_i
= ifc_i
->neighbors
; nb_i
; nb_i
= next_nb_i
) {
495 next_nb_i
= nb_i
->next
;
496 for (nb_n
= old_neighbors
; nb_n
; nb_n
= nb_n
->next
)
497 if (nb_i
->addr
== nb_n
->addr
) {
498 if (nb_i
->metric
!= nb_n
->metric
499 || nb_i
->threshold
!= nb_i
->threshold
)
501 "inconsistent %s for neighbor %s of %s",
503 inet_fmt(nb_i
->addr
, s1
),
504 inet_fmt(node
->addr
, s2
));
508 if (!nb_n
) { /* no match for this neighbor yet */
509 nb_i
->next
= ifc_n
->neighbors
;
510 ifc_n
->neighbors
= nb_i
;
514 next_ifc_i
= ifc_i
->next
;
518 ifc_node
->tries
= -1;
519 ifc_node
->u
.alias
= node
;
522 ifc
= find_interface(ifc_addr
, node
);
523 old_neighbors
= ifc
->neighbors
;
525 /* Add the neighbors for this interface */
526 while (ncount
-- && datalen
> 0) {
532 log(LOG_WARNING
, 0, "received truncated neighbor list from %s",
537 neighbor
= *(u_int32
*)p
;
541 /* make leaf nets point to themselves */
544 for (nb
= old_neighbors
; nb
; nb
= nb
->next
)
545 if (nb
->addr
== neighbor
) {
546 if (metric
!= nb
->metric
|| threshold
!= nb
->threshold
)
548 "inconsistent %s for neighbor %s of %s",
550 inet_fmt(nb
->addr
, s1
), inet_fmt(node
->addr
, s2
));
554 nb
= (Neighbor
*) malloc(sizeof(Neighbor
));
555 nb
->next
= ifc
->neighbors
;
559 nb
->threshold
= threshold
;
560 nb
->flags
= flags
| NF_PRESENT
;
562 n_node
= find_node(neighbor
, &routers
);
563 if (n_node
->tries
== 0 && !target_addr
) { /* it's a new router */
574 check_vif_state(void)
576 log(LOG_NOTICE
, 0, "network marked down...");
580 retry_requests(Node
*node
)
585 result
= retry_requests(node
->left
);
586 if (node
->tries
> 0 && node
->tries
< retries
) {
594 return retry_requests(node
->right
) || result
;
600 inet_name(u_int32 addr
)
604 e
= gethostbyaddr((char *)&addr
, sizeof(addr
), AF_INET
);
606 return e
? e
->h_name
: 0;
610 print_map(Node
*node
)
615 print_map(node
->left
);
617 addr
= inet_fmt(node
->addr
, s1
);
619 || (node
->tries
>= 0 && node
->u
.interfaces
)
620 || (node
->tries
== -1
621 && node
->u
.alias
->tries
>= 0
622 && node
->u
.alias
->u
.interfaces
)) {
623 if (show_names
&& (name
= inet_name(node
->addr
)))
624 printf("%s (%s):", addr
, name
);
628 printf(" alias for %s\n\n", inet_fmt(node
->u
.alias
->addr
, s1
));
629 else if (!node
->u
.interfaces
)
630 printf(" no response to query\n\n");
635 printf(" <v%d.%d>", node
->version
& 0xff,
636 (node
->version
>> 8) & 0xff);
638 for (ifc
= node
->u
.interfaces
; ifc
; ifc
= ifc
->next
) {
640 char *ifc_name
= inet_fmt(ifc
->addr
, s1
);
641 int ifc_len
= strlen(ifc_name
);
644 printf(" %s:", ifc_name
);
645 for (nb
= ifc
->neighbors
; nb
; nb
= nb
->next
) {
647 printf("%*s", ifc_len
+ 5, "");
648 printf(" %s", inet_fmt(nb
->addr
, s1
));
649 if (show_names
&& (name
= inet_name(nb
->addr
)))
650 printf(" (%s)", name
);
651 printf(" [%d/%d", nb
->metric
, nb
->threshold
);
653 u_short flags
= nb
->flags
;
654 if (flags
& DVMRP_NF_TUNNEL
)
656 if (flags
& DVMRP_NF_SRCRT
)
658 if (flags
& DVMRP_NF_QUERIER
)
660 if (flags
& DVMRP_NF_DISABLED
)
662 if (flags
& DVMRP_NF_DOWN
)
672 print_map(node
->right
);
677 graph_name(u_int32 addr
, char *buf
, int len
)
681 if (len
< sizeof("255.255.255.255")) {
683 "Buffer too small in graph_name, provided %d bytes, but needed %d.\n",
684 len
, sizeof("255.255.255.255"));
687 if (show_names
&& (name
= inet_name(addr
))) {
688 strncpy(buf
, name
, len
- 1);
697 graph_edges(Node
*node
)
704 graph_edges(node
->left
);
705 if (node
->tries
>= 0) {
706 printf(" %d {$ NP %d0 %d0 $} \"%s%s\" \n",
708 node
->addr
& 0xFF, (node
->addr
>> 8) & 0xFF,
709 graph_name(node
->addr
, name
, sizeof(name
)),
710 node
->u
.interfaces
? "" : "*");
711 for (ifc
= node
->u
.interfaces
; ifc
; ifc
= ifc
->next
)
712 for (nb
= ifc
->neighbors
; nb
; nb
= nb
->next
) {
713 Node
*nb_node
= find_node(nb
->addr
, &routers
);
716 if (nb_node
->tries
< 0)
717 nb_node
= nb_node
->u
.alias
;
719 if (node
!= nb_node
&&
720 (!(nb2
= find_neighbor(node
->addr
, nb_node
))
721 || node
->addr
< nb_node
->addr
)) {
722 printf(" %d \"%d/%d",
723 nb_node
->addr
, nb
->metric
, nb
->threshold
);
724 if (nb2
&& (nb2
->metric
!= nb
->metric
725 || nb2
->threshold
!= nb
->threshold
))
726 printf(",%d/%d", nb2
->metric
, nb2
->threshold
);
727 if (nb
->flags
& NF_PRESENT
)
729 nb
->flags
& DVMRP_NF_SRCRT
? "" :
730 nb
->flags
& DVMRP_NF_TUNNEL
? "E" : "P",
731 nb
->flags
& DVMRP_NF_DOWN
? "D" : "");
737 graph_edges(node
->right
);
742 elide_aliases(Node
*node
)
745 elide_aliases(node
->left
);
746 if (node
->tries
>= 0) {
749 for (ifc
= node
->u
.interfaces
; ifc
; ifc
= ifc
->next
) {
752 for (nb
= ifc
->neighbors
; nb
; nb
= nb
->next
) {
753 Node
*nb_node
= find_node(nb
->addr
, &routers
);
755 if (nb_node
->tries
< 0)
756 nb
->addr
= nb_node
->u
.alias
->addr
;
760 elide_aliases(node
->right
);
771 nowstr
= ctime(&now
);
772 nowstr
[24] = '\0'; /* Kill the newline at the end */
773 elide_aliases(routers
);
774 printf("GRAPH \"Multicast Router Connectivity: %s\" = UNDIRECTED\n",
776 graph_edges(routers
);
781 get_number(int *var
, int deflt
, char ***pargv
, int *pargc
)
783 if ((*pargv
)[0][2] == '\0') { /* Get the value from the next argument */
784 if (*pargc
> 1 && isdigit((*pargv
)[1][0])) {
785 (*pargv
)++, (*pargc
)--;
786 *var
= atoi((*pargv
)[0]);
788 } else if (deflt
>= 0) {
793 } else { /* Get value from the rest of this argument */
794 if (isdigit((*pargv
)[0][2])) {
795 *var
= atoi((*pargv
)[0] + 2);
804 host_addr(char *name
)
806 struct hostent
*e
= gethostbyname(name
);
809 if (e
&& e
->h_length
== sizeof(addr
))
810 memcpy(&addr
, e
->h_addr_list
[0], e
->h_length
);
812 addr
= inet_addr(name
);
821 main(int argc
, char **argv
)
823 int flood
= FALSE
, graph
= FALSE
;
826 errx(1, "must be root");
834 while (argc
> 0 && argv
[0][0] == '-') {
835 switch (argv
[0][1]) {
837 if (!get_number(&debug
, DEFAULT_DEBUG
, &argv
, &argc
))
850 if (!get_number(&retries
, -1, &argv
, &argc
))
854 if (!get_number(&timeout
, -1, &argv
, &argc
))
865 } else if (argc
== 1 && !(target_addr
= host_addr(argv
[0])))
866 errx(2, "unknown host: %s", argv
[0]);
869 fprintf(stderr
, "Debug level %u\n", debug
);
871 { /* Find a good local address for us. */
873 struct sockaddr_in addr
;
874 int addrlen
= sizeof(addr
);
876 addr
.sin_family
= AF_INET
;
878 addr
.sin_len
= sizeof addr
;
880 addr
.sin_addr
.s_addr
= dvmrp_group
;
881 addr
.sin_port
= htons(2000); /* any port over 1024 will do... */
882 if ((udp
= socket(AF_INET
, SOCK_DGRAM
, 0)) < 0
883 || connect(udp
, (struct sockaddr
*) &addr
, sizeof(addr
)) < 0
884 || getsockname(udp
, (struct sockaddr
*) &addr
, &addrlen
) < 0)
885 err(-1, "determining local address");
887 our_addr
= addr
.sin_addr
.s_addr
;
890 /* Send initial seed message to all local routers */
891 ask(target_addr
? target_addr
: allhosts_group
);
894 Node
*n
= find_node(target_addr
, &routers
);
902 /* Main receive loop */
906 int count
, recvlen
, dummy
= 0;
908 if (igmp_socket
>= FD_SETSIZE
)
909 log(LOG_ERR
, 0, "descriptor too big");
911 FD_SET(igmp_socket
, &fds
);
916 count
= select(igmp_socket
+ 1, &fds
, 0, 0, &tv
);
922 } else if (count
== 0) {
923 log(LOG_DEBUG
, 0, "Timed out receiving neighbor lists");
924 if (retry_requests(routers
))
930 recvlen
= recvfrom(igmp_socket
, recv_buf
, RECV_BUF_SIZE
,
933 accept_igmp(recvlen
);
934 else if (errno
!= EINTR
)
944 printf("Multicast Router Connectivity:\n\n");
954 fprintf(stderr
, "%s\n%s\n",
955 "usage: map-mbone [-f] [-g] [-n] [-t timeout] [-r retries]",
956 " [-d [debug-level]] [router]");
962 accept_prune(u_int32 src
, u_int32 dst
, char *p
, int datalen
)
967 accept_graft(u_int32 src
, u_int32 dst
, char *p
, int datalen
)
972 accept_g_ack(u_int32 src
, u_int32 dst
, char *p
, int datalen
)
977 add_table_entry(u_int32 origin
, u_int32 mcastgrp
)
982 accept_leave_message(u_int32 src
, u_int32 dst
, u_int32 group
)
987 accept_mtrace(u_int32 src
, u_int32 dst
, u_int32 group
,
988 char *data
, u_int no
, int datalen
)
993 accept_membership_query(u_int32 src
, u_int32 dst
, u_int32 group
, int tmo
)
998 accept_info_request(u_int32 src
, u_int32 dst
, u_char
*p
, int datalen
)
1003 accept_info_reply(u_int32 src
, u_int32 dst
, u_char
*p
, int datalen
)