How to get IPv6 address by function __in6_dev_get in kernel?
Following codes is ok in linux2.6, but not in linux3.0.
int ipv6_get_addr(struct net_device *dev, struct in6_addr *addr)
struct inet6_dev *idev;
struct inet6_ifaddr *ifp;
idev = __in6_dev_get(dev);
for(ifp=idev->addr_list; ifp; ifp=ifp0>if_next)
if(ifp->scope != IFA_LINK && !(ifp->flag&&IFA_F_TENTATIVE))
I find data struct inet6_dev and inet6_ifaddr changed. I have no idea with this, anyone can give some suggestions?