diff options
author | Rémi Denis-Courmont <remi.denis-courmont@nokia.com> | 2009-10-13 20:48:28 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-10-14 18:04:16 -0400 |
commit | 55748ac0468134a89bc55aed6a9691e320caa8a9 (patch) | |
tree | 8a8856b6fe6f6b36148f87dfaec2e30d79eb028b /include/net/phonet | |
parent | f14001fcd7bd03983c872810a3b11af4148bae72 (diff) |
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.h | 5 |
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); | |||
47 | int phonet_address_lookup(struct net *net, u8 addr); | 47 | int phonet_address_lookup(struct net *net, u8 addr); |
48 | void phonet_address_notify(int event, struct net_device *dev, u8 addr); | 48 | void phonet_address_notify(int event, struct net_device *dev, u8 addr); |
49 | 49 | ||
50 | int phonet_route_add(struct net_device *dev, u8 daddr); | ||
51 | int phonet_route_del(struct net_device *dev, u8 daddr); | ||
52 | struct net_device *phonet_route_get(struct net *net, u8 daddr); | ||
53 | struct net_device *phonet_route_output(struct net *net, u8 daddr); | ||
54 | |||
50 | #define PN_NO_ADDR 0xff | 55 | #define PN_NO_ADDR 0xff |
51 | 56 | ||
52 | extern const struct file_operations pn_sock_seq_fops; | 57 | extern const struct file_operations pn_sock_seq_fops; |