ip_mroute.c (194581) | ip_mroute.c (194760) |
---|---|
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 * --- 53 unchanged lines hidden (view full) --- 62 * TODO: Cleanup LSRR removal further. 63 * TODO: Push RSVP stubs into raw_ip.c. 64 * TODO: Use bitstring.h for vif set. 65 * TODO: Fix mrt6_ioctl dangling ref when dynamically loaded. 66 * TODO: Sync ip6_mroute.c with this file. 67 */ 68 69#include <sys/cdefs.h> | 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 * --- 53 unchanged lines hidden (view full) --- 62 * TODO: Cleanup LSRR removal further. 63 * TODO: Push RSVP stubs into raw_ip.c. 64 * TODO: Use bitstring.h for vif set. 65 * TODO: Fix mrt6_ioctl dangling ref when dynamically loaded. 66 * TODO: Sync ip6_mroute.c with this file. 67 */ 68 69#include <sys/cdefs.h> |
70__FBSDID("$FreeBSD: head/sys/netinet/ip_mroute.c 194581 2009-06-21 10:29:31Z rdivacky $"); | 70__FBSDID("$FreeBSD: head/sys/netinet/ip_mroute.c 194760 2009-06-23 20:19:09Z rwatson $"); |
71 72#include "opt_inet.h" 73#include "opt_mrouting.h" 74 75#define _PIM_VT 1 76 77#include <sys/param.h> 78#include <sys/kernel.h> --- 799 unchanged lines hidden (view full) --- 878 } else { 879 sin.sin_addr = vifcp->vifc_lcl_addr; 880 ifa = ifa_ifwithaddr((struct sockaddr *)&sin); 881 if (ifa == NULL) { 882 VIF_UNLOCK(); 883 return EADDRNOTAVAIL; 884 } 885 ifp = ifa->ifa_ifp; | 71 72#include "opt_inet.h" 73#include "opt_mrouting.h" 74 75#define _PIM_VT 1 76 77#include <sys/param.h> 78#include <sys/kernel.h> --- 799 unchanged lines hidden (view full) --- 878 } else { 879 sin.sin_addr = vifcp->vifc_lcl_addr; 880 ifa = ifa_ifwithaddr((struct sockaddr *)&sin); 881 if (ifa == NULL) { 882 VIF_UNLOCK(); 883 return EADDRNOTAVAIL; 884 } 885 ifp = ifa->ifa_ifp; |
886 ifa_free(ifa); |
|
886 } 887 888 if ((vifcp->vifc_flags & VIFF_TUNNEL) != 0) { 889 CTR1(KTR_IPMF, "%s: tunnels are no longer supported", __func__); 890 VIF_UNLOCK(); 891 return EOPNOTSUPP; 892 } else if (vifcp->vifc_flags & VIFF_REGISTER) { 893 ifp = &multicast_register_if; --- 2001 unchanged lines hidden --- | 887 } 888 889 if ((vifcp->vifc_flags & VIFF_TUNNEL) != 0) { 890 CTR1(KTR_IPMF, "%s: tunnels are no longer supported", __func__); 891 VIF_UNLOCK(); 892 return EOPNOTSUPP; 893 } else if (vifcp->vifc_flags & VIFF_REGISTER) { 894 ifp = &multicast_register_if; --- 2001 unchanged lines hidden --- |