summaryrefslogtreecommitdiff
path: root/include/net/phonet
diff options
context:
space:
mode:
authorRémi Denis-Courmont <remi.denis-courmont@nokia.com>2009-10-14 04:48:28 +0400
committerDavid S. Miller <davem@davemloft.net>2009-10-15 02:04:16 +0400
commit55748ac0468134a89bc55aed6a9691e320caa8a9 (patch)
tree8a8856b6fe6f6b36148f87dfaec2e30d79eb028b /include/net/phonet
parentf14001fcd7bd03983c872810a3b11af4148bae72 (diff)
downloadlinux-55748ac0468134a89bc55aed6a9691e320caa8a9.tar.xz
Phonet: routing table backend
The Phonet "universe" only has 64 addresses, so we keep a trivial flat routing table. Signed-off-by: Rémi Denis-Courmont <remi.denis-courmont@nokia.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/phonet')
-rw-r--r--include/net/phonet/pn_dev.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/net/phonet/pn_dev.h b/include/net/phonet/pn_dev.h
index 44c923c9e21d..87b5d8112e18 100644
--- a/include/net/phonet/pn_dev.h
+++ b/include/net/phonet/pn_dev.h
@@ -47,6 +47,11 @@ u8 phonet_address_get(struct net_device *dev, u8 addr);
int phonet_address_lookup(struct net *net, u8 addr);
void phonet_address_notify(int event, struct net_device *dev, u8 addr);
+int phonet_route_add(struct net_device *dev, u8 daddr);
+int phonet_route_del(struct net_device *dev, u8 daddr);
+struct net_device *phonet_route_get(struct net *net, u8 daddr);
+struct net_device *phonet_route_output(struct net *net, u8 daddr);
+
#define PN_NO_ADDR 0xff
extern const struct file_operations pn_sock_seq_fops;