mcast.c (3eb66e91a25497065c5322b1268cbc3953642227) mcast.c (4effd28c1245303dce7fd290c501ac2c11052114)
1/*
2 * Multicast support for IPv6
3 * Linux INET6 implementation
4 *
5 * Authors:
6 * Pedro Roque <roque@di.fc.ul.pt>
7 *
8 * Based on linux/ipv4/igmp.c and linux/ipv4/ip_sockglue.c

--- 926 unchanged lines hidden (view full) ---

935 ma_put(mc);
936 return 0;
937}
938
939int ipv6_dev_mc_inc(struct net_device *dev, const struct in6_addr *addr)
940{
941 return __ipv6_dev_mc_inc(dev, addr, MCAST_EXCLUDE);
942}
1/*
2 * Multicast support for IPv6
3 * Linux INET6 implementation
4 *
5 * Authors:
6 * Pedro Roque <roque@di.fc.ul.pt>
7 *
8 * Based on linux/ipv4/igmp.c and linux/ipv4/ip_sockglue.c

--- 926 unchanged lines hidden (view full) ---

935 ma_put(mc);
936 return 0;
937}
938
939int ipv6_dev_mc_inc(struct net_device *dev, const struct in6_addr *addr)
940{
941 return __ipv6_dev_mc_inc(dev, addr, MCAST_EXCLUDE);
942}
943EXPORT_SYMBOL(ipv6_dev_mc_inc);
943
944/*
945 * device multicast group del
946 */
947int __ipv6_dev_mc_dec(struct inet6_dev *idev, const struct in6_addr *addr)
948{
949 struct ifmcaddr6 *ma, **map;
950

--- 31 unchanged lines hidden (view full) ---

982 idev = __in6_dev_get(dev);
983 if (!idev)
984 err = -ENODEV;
985 else
986 err = __ipv6_dev_mc_dec(idev, addr);
987
988 return err;
989}
944
945/*
946 * device multicast group del
947 */
948int __ipv6_dev_mc_dec(struct inet6_dev *idev, const struct in6_addr *addr)
949{
950 struct ifmcaddr6 *ma, **map;
951

--- 31 unchanged lines hidden (view full) ---

983 idev = __in6_dev_get(dev);
984 if (!idev)
985 err = -ENODEV;
986 else
987 err = __ipv6_dev_mc_dec(idev, addr);
988
989 return err;
990}
991EXPORT_SYMBOL(ipv6_dev_mc_dec);
990
991/*
992 * check if the interface/address pair is valid
993 */
994bool ipv6_chk_mcast_addr(struct net_device *dev, const struct in6_addr *group,
995 const struct in6_addr *src_addr)
996{
997 struct inet6_dev *idev;

--- 2027 unchanged lines hidden ---
992
993/*
994 * check if the interface/address pair is valid
995 */
996bool ipv6_chk_mcast_addr(struct net_device *dev, const struct in6_addr *group,
997 const struct in6_addr *src_addr)
998{
999 struct inet6_dev *idev;

--- 2027 unchanged lines hidden ---