diff options
author | Ralf Baechle <ralf@linux-mips.org> | 1998-03-17 22:05:47 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 1998-03-17 22:05:47 +0000 |
commit | 27cfca1ec98e91261b1a5355d10a8996464b63af (patch) | |
tree | 8e895a53e372fa682b4c0a585b9377d67ed70d0e /include/net/if_inet6.h | |
parent | 6a76fb7214c477ccf6582bd79c5b4ccc4f9c41b1 (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/if_inet6.h')
-rw-r--r-- | include/net/if_inet6.h | 53 |
1 files changed, 38 insertions, 15 deletions
diff --git a/include/net/if_inet6.h b/include/net/if_inet6.h index 281c2f099..4e9ed9780 100644 --- a/include/net/if_inet6.h +++ b/include/net/if_inet6.h @@ -15,15 +15,21 @@ #ifndef _NET_IF_INET6_H #define _NET_IF_INET6_H +/* These flags match corresponding IFA_F_* flags but ADDR_INVALID, + which is invisible externally. + */ + +#define ADDR_PERMANENT 0x80 + #define DAD_COMPLETE 0x00 -#define DAD_INCOMPLETE 0x01 -#define DAD_STATUS 0x01 +#define DAD_INCOMPLETE 0x40 +#define DAD_STATUS 0x40 + +#define ADDR_STATUS 0x21 +#define ADDR_DEPRECATED 0x20 +#define ADDR_INVALID 0x01 -#define ADDR_STATUS 0x06 -#define ADDR_DEPRECATED 0x02 -#define ADDR_INVALID 0x04 -#define ADDR_PERMANENT 0x80 #define IF_RA_RCVD 0x20 #define IF_RS_SENT 0x10 @@ -53,22 +59,25 @@ struct inet6_ifaddr }; -struct ipv6_mc_socklist { +struct ipv6_mc_socklist +{ struct in6_addr addr; - struct device *dev; + int ifindex; struct ipv6_mc_socklist *next; }; #define MAF_TIMER_RUNNING 0x01 #define MAF_LAST_REPORTER 0x02 +#define MAF_LOADED 0x04 -struct ifmcaddr6 { +struct ifmcaddr6 +{ struct in6_addr mca_addr; struct device *dev; struct ifmcaddr6 *next; struct ifmcaddr6 *if_next; struct timer_list mca_timer; - unsigned long mca_flags; + unsigned mca_flags; atomic_t mca_users; }; @@ -77,7 +86,21 @@ struct ifmcaddr6 { #define IFA_SITE IPV6_ADDR_SITELOCAL #define IFA_GLOBAL 0x0000U -extern int in6_ifnum; +struct ipv6_devconf +{ + int forwarding; + int hop_limit; + int mtu6; + int accept_ra; + int accept_redirects; + int autoconf; + int dad_transmits; + int rtr_solicits; + int rtr_solicit_interval; + int rtr_solicit_delay; + + void *sysctl; +}; struct inet6_dev { @@ -85,16 +108,16 @@ struct inet6_dev struct inet6_ifaddr *addr_list; struct ifmcaddr6 *mc_list; - __u32 if_flags; - __u32 router:1, - unused:31; + struct neigh_parms *nd_parms; struct inet6_dev *next; + struct ipv6_devconf cnf; }; +extern struct ipv6_devconf ipv6_devconf; -extern __inline__ void ipv6_mc_map(struct in6_addr *addr, char *buf) +extern __inline__ void ipv6_eth_mc_map(struct in6_addr *addr, char *buf) { /* * +-------+-------+-------+-------+-------+-------+ |