summaryrefslogtreecommitdiff
path: root/include/net/dn_dev.h
diff options
context:
space:
mode:
authorSteven Whitehouse <steve@gw.chygwyn.com>2003-04-17 20:43:09 -0700
committerDavid S. Miller <davem@nuts.ninka.net>2003-04-17 20:43:09 -0700
commite155ad0c1da07294ab56c4665af6b9b486e75b2c (patch)
treebd9e2f5dc3d998aa516d163e3e2eabf5ac8ea7ea /include/net/dn_dev.h
parentbd9056f78415aa24d3dfc32cb91dc90c1fb32258 (diff)
[DECNET]: DECnet routing fixes etc.
o As requested, macros in dn_fib.h changed to decnet specific names o Two bugs fixed (only in 2.5 decnet stack) relating to bind and connection states. o Numerous style changes: using C99 initialisers and inline rather than __inline__ o Use struct flowi as routing key (for forthcoming flow cache) o Add metrics to routing table o Many routing table bug fixes o New wait code to improve efficiency o We use real device MTUs now rather than saying "hmm... looks like ethernet must be 1500" as we used to (still one or two places to fix, but its mostly correct in this patch) o Tidy up in af_decnet.c:dn_sendmsg() in preparation for zerocopy o Updates to rtnetlink code to return more information o Removed ioctl() for decnet fib. It never did anything and rtnetlink is a far better interface anyway. o Converted /proc/decnet_neigh to seq_file (other /proc files to follow) o DECnet route cache now uses RCU like the ipv4 route cache o Misc bug fixes wherever I found them o SO_BINDTODEVICE works for outgoing connections
Diffstat (limited to 'include/net/dn_dev.h')
-rw-r--r--include/net/dn_dev.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/net/dn_dev.h b/include/net/dn_dev.h
index ed539e79588d..8154b81831b7 100644
--- a/include/net/dn_dev.h
+++ b/include/net/dn_dev.h
@@ -8,6 +8,7 @@ struct dn_ifaddr {
struct dn_ifaddr *ifa_next;
struct dn_dev *ifa_dev;
dn_address ifa_local;
+ dn_address ifa_address;
unsigned char ifa_flags;
unsigned char ifa_scope;
char ifa_label[IFNAMSIZ];
@@ -171,7 +172,10 @@ extern int dn_dev_set_default(struct net_device *dev, int force);
extern struct net_device *dn_dev_get_default(void);
extern int dn_dev_bind_default(dn_address *addr);
-static __inline__ int dn_dev_islocal(struct net_device *dev, dn_address addr)
+extern int register_dnaddr_notifier(struct notifier_block *nb);
+extern int unregister_dnaddr_notifier(struct notifier_block *nb);
+
+static inline int dn_dev_islocal(struct net_device *dev, dn_address addr)
{
struct dn_dev *dn_db = dev->dn_ptr;
struct dn_ifaddr *ifa;