summaryrefslogtreecommitdiffstats
path: root/include/net/addrconf.h
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>1998-03-17 22:05:47 +0000
committerRalf Baechle <ralf@linux-mips.org>1998-03-17 22:05:47 +0000
commit27cfca1ec98e91261b1a5355d10a8996464b63af (patch)
tree8e895a53e372fa682b4c0a585b9377d67ed70d0e /include/net/addrconf.h
parent6a76fb7214c477ccf6582bd79c5b4ccc4f9c41b1 (diff)
Look Ma' what I found on my harddisk ...
o New faster syscalls for 2.1.x, too o Upgrade to 2.1.89. Don't try to run this. It's flaky as hell. But feel free to debug ...
Diffstat (limited to 'include/net/addrconf.h')
-rw-r--r--include/net/addrconf.h37
1 files changed, 26 insertions, 11 deletions
diff --git a/include/net/addrconf.h b/include/net/addrconf.h
index 5cee95332..44fb44d2c 100644
--- a/include/net/addrconf.h
+++ b/include/net/addrconf.h
@@ -40,10 +40,6 @@ struct prefix_info {
#define IN6_ADDR_HSIZE 16
-extern struct inet6_ifaddr *inet6_addr_lst[IN6_ADDR_HSIZE];
-extern struct ifmcaddr6 *inet6_mcast_lst[IN6_ADDR_HSIZE];
-extern struct inet6_dev *inet6_dev_lst[IN6_ADDR_HSIZE];
-
extern void addrconf_init(void);
extern void addrconf_cleanup(void);
@@ -55,7 +51,8 @@ extern int addrconf_add_ifaddr(void *arg);
extern int addrconf_del_ifaddr(void *arg);
extern int addrconf_set_dstaddr(void *arg);
-extern struct inet6_ifaddr * ipv6_chk_addr(struct in6_addr *addr);
+extern struct inet6_ifaddr * ipv6_chk_addr(struct in6_addr *addr,
+ struct device *dev, int nd);
extern struct inet6_ifaddr * ipv6_get_saddr(struct dst_entry *dst,
struct in6_addr *daddr);
extern struct inet6_ifaddr * ipv6_get_lladdr(struct device *dev);
@@ -64,10 +61,10 @@ extern struct inet6_ifaddr * ipv6_get_lladdr(struct device *dev);
* multicast prototypes (mcast.c)
*/
extern int ipv6_sock_mc_join(struct sock *sk,
- struct device *dev,
+ int ifindex,
struct in6_addr *addr);
extern int ipv6_sock_mc_drop(struct sock *sk,
- struct device *dev,
+ int ifindex,
struct in6_addr *addr);
extern void ipv6_sock_mc_close(struct sock *sk);
@@ -75,6 +72,10 @@ extern int ipv6_dev_mc_inc(struct device *dev,
struct in6_addr *addr);
extern int ipv6_dev_mc_dec(struct device *dev,
struct in6_addr *addr);
+extern void ipv6_mc_up(struct inet6_dev *idev);
+extern void ipv6_mc_down(struct inet6_dev *idev);
+extern void ipv6_mc_destroy_dev(struct inet6_dev *idev);
+extern void addrconf_dad_failure(struct inet6_ifaddr *ifp);
extern int ipv6_chk_mcast_addr(struct device *dev,
struct in6_addr *addr);
@@ -115,28 +116,42 @@ static __inline__ int ipv6_devindex_hash(int ifindex)
* compute link-local solicited-node multicast address
*/
-static __inline__ void addrconf_addr_solict_mult(struct in6_addr *addr,
- struct in6_addr *solicited)
+extern __inline__ void addrconf_addr_solict_mult_old(struct in6_addr *addr,
+ struct in6_addr *solicited)
{
ipv6_addr_set(solicited,
__constant_htonl(0xFF020000), 0,
__constant_htonl(0x1), addr->s6_addr32[3]);
}
-static __inline__ void ipv6_addr_all_nodes(struct in6_addr *addr)
+extern __inline__ void addrconf_addr_solict_mult_new(struct in6_addr *addr,
+ struct in6_addr *solicited)
+{
+ ipv6_addr_set(solicited,
+ __constant_htonl(0xFF020000), 0,
+ __constant_htonl(0x1),
+ __constant_htonl(0xFF000000) | addr->s6_addr32[3]);
+}
+
+
+extern __inline__ void ipv6_addr_all_nodes(struct in6_addr *addr)
{
ipv6_addr_set(addr,
__constant_htonl(0xFF020000), 0, 0,
__constant_htonl(0x1));
}
-static __inline__ void ipv6_addr_all_routers(struct in6_addr *addr)
+extern __inline__ void ipv6_addr_all_routers(struct in6_addr *addr)
{
ipv6_addr_set(addr,
__constant_htonl(0xFF020000), 0, 0,
__constant_htonl(0x2));
}
+extern __inline__ int ipv6_addr_is_multicast(struct in6_addr *addr)
+{
+ return (addr->s6_addr32[0] & __constant_htonl(0xFF000000)) == __constant_htonl(0xFF000000);
+}
#endif
#endif