ip6_mroute.c (78064) | ip6_mroute.c (83130) |
---|---|
1/* $FreeBSD: head/sys/netinet6/ip6_mroute.c 78064 2001-06-11 12:39:29Z ume $ */ | 1/* $FreeBSD: head/sys/netinet6/ip6_mroute.c 83130 2001-09-06 02:40:43Z jlemon $ */ |
2/* $KAME: ip6_mroute.c,v 1.46 2001/04/04 05:17:30 itojun Exp $ */ 3 4/* 5 * Copyright (C) 1998 WIDE Project. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions --- 531 unchanged lines hidden (view full) --- 541 542 if (mifcp->mif6c_mifi >= MAXMIFS) 543 return EINVAL; 544 mifp = mif6table + mifcp->mif6c_mifi; 545 if (mifp->m6_ifp) 546 return EADDRINUSE; /* XXX: is it appropriate? */ 547 if (mifcp->mif6c_pifi == 0 || mifcp->mif6c_pifi > if_index) 548 return ENXIO; | 2/* $KAME: ip6_mroute.c,v 1.46 2001/04/04 05:17:30 itojun Exp $ */ 3 4/* 5 * Copyright (C) 1998 WIDE Project. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions --- 531 unchanged lines hidden (view full) --- 541 542 if (mifcp->mif6c_mifi >= MAXMIFS) 543 return EINVAL; 544 mifp = mif6table + mifcp->mif6c_mifi; 545 if (mifp->m6_ifp) 546 return EADDRINUSE; /* XXX: is it appropriate? */ 547 if (mifcp->mif6c_pifi == 0 || mifcp->mif6c_pifi > if_index) 548 return ENXIO; |
549 ifp = ifindex2ifnet[mifcp->mif6c_pifi]; | 549 ifp = ifnet_byindex(mifcp->mif6c_pifi); |
550 551 if (mifcp->mif6c_flags & MIFF_REGISTER) { 552 if (reg_mif_num == (mifi_t)-1) { 553 multicast_register_if.if_name = "register_mif"; 554 multicast_register_if.if_flags |= IFF_LOOPBACK; 555 multicast_register_if.if_index = mifcp->mif6c_mifi; 556 reg_mif_num = mifcp->mif6c_mifi; 557 } --- 1260 unchanged lines hidden --- | 550 551 if (mifcp->mif6c_flags & MIFF_REGISTER) { 552 if (reg_mif_num == (mifi_t)-1) { 553 multicast_register_if.if_name = "register_mif"; 554 multicast_register_if.if_flags |= IFF_LOOPBACK; 555 multicast_register_if.if_index = mifcp->mif6c_mifi; 556 reg_mif_num = mifcp->mif6c_mifi; 557 } --- 1260 unchanged lines hidden --- |