mroute.c (78309) | mroute.c (78314) |
---|---|
1/* 2 * Copyright (c) 1989 Stephen Deering 3 * Copyright (c) 1992, 1993 4 * The Regents of the University of California. All rights reserved. 5 * 6 * This code is derived from software contributed to Berkeley by 7 * Stephen Deering of Stanford University. 8 * --- 25 unchanged lines hidden (view full) --- 34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 35 * SUCH DAMAGE. 36 * 37 * @(#)mroute.c 8.2 (Berkeley) 4/28/95 38 */ 39 40#ifndef lint 41static const char rcsid[] = | 1/* 2 * Copyright (c) 1989 Stephen Deering 3 * Copyright (c) 1992, 1993 4 * The Regents of the University of California. All rights reserved. 5 * 6 * This code is derived from software contributed to Berkeley by 7 * Stephen Deering of Stanford University. 8 * --- 25 unchanged lines hidden (view full) --- 34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 35 * SUCH DAMAGE. 36 * 37 * @(#)mroute.c 8.2 (Berkeley) 4/28/95 38 */ 39 40#ifndef lint 41static const char rcsid[] = |
42 "$FreeBSD: head/usr.bin/netstat/mroute.c 78309 2001-06-15 23:07:59Z assar $"; | 42 "$FreeBSD: head/usr.bin/netstat/mroute.c 78314 2001-06-15 23:35:13Z assar $"; |
43#endif /* not lint */ 44 45/* 46 * Print DVMRP multicast routing structures and statistics. 47 * 48 * MROUTING 1.0 49 */ 50 --- 11 unchanged lines hidden (view full) --- 62#include <net/route.h> 63#include <netinet/ip_mroute.h> 64 65#include <stdio.h> 66#include <stdlib.h> 67#include "netstat.h" 68 69void | 43#endif /* not lint */ 44 45/* 46 * Print DVMRP multicast routing structures and statistics. 47 * 48 * MROUTING 1.0 49 */ 50 --- 11 unchanged lines hidden (view full) --- 62#include <net/route.h> 63#include <netinet/ip_mroute.h> 64 65#include <stdio.h> 66#include <stdlib.h> 67#include "netstat.h" 68 69void |
70mroutepr(mfcaddr, vifaddr) 71 u_long mfcaddr, vifaddr; | 70mroutepr(u_long mfcaddr, u_long vifaddr) |
72{ 73 struct mfc *mfctable[MFCTBLSIZ]; 74 struct vif viftable[MAXVIFS]; 75 struct mfc mfc, *m; 76 register struct vif *v; 77 register vifi_t vifi; 78 register int i; 79 register int banner_printed; --- 65 unchanged lines hidden (view full) --- 145 printf("\nMulticast Routing Table is empty\n"); 146 147 printf("\n"); 148 numeric_addr = saved_numeric_addr; 149} 150 151 152void | 71{ 72 struct mfc *mfctable[MFCTBLSIZ]; 73 struct vif viftable[MAXVIFS]; 74 struct mfc mfc, *m; 75 register struct vif *v; 76 register vifi_t vifi; 77 register int i; 78 register int banner_printed; --- 65 unchanged lines hidden (view full) --- 144 printf("\nMulticast Routing Table is empty\n"); 145 146 printf("\n"); 147 numeric_addr = saved_numeric_addr; 148} 149 150 151void |
153mrt_stats(mstaddr) 154 u_long mstaddr; | 152mrt_stats(u_long mstaddr) |
155{ 156 struct mrtstat mrtstat; 157 158 if (mstaddr == 0) { 159 printf("No IPv4 multicast routing compiled into this system.\n"); 160 return; 161 } 162 --- 29 unchanged lines hidden --- | 153{ 154 struct mrtstat mrtstat; 155 156 if (mstaddr == 0) { 157 printf("No IPv4 multicast routing compiled into this system.\n"); 158 return; 159 } 160 --- 29 unchanged lines hidden --- |