diff options
author | Remi Denis-Courmont <remi.denis-courmont@nokia.com> | 2008-09-22 23:05:57 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-09-22 23:05:57 -0400 |
commit | 107d0d9b8d9a236883db72841fb61cedd5be845e (patch) | |
tree | 6555b3bc7a8ce3551c462e1f3f7d6556eeda0897 /include | |
parent | ba113a94b7503ee23ffe819e7045134b0c1d31de (diff) |
Phonet: Phonet datagram transport protocol
This provides the basic SOCK_DGRAM transport protocol for Phonet.
Signed-off-by: Remi Denis-Courmont <remi.denis-courmont@nokia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/phonet/phonet.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/net/phonet/phonet.h b/include/net/phonet/phonet.h index 2ae5cbb59b60..d3957d3be0fd 100644 --- a/include/net/phonet/phonet.h +++ b/include/net/phonet/phonet.h | |||
@@ -51,6 +51,9 @@ void pn_sock_hash(struct sock *sk); | |||
51 | void pn_sock_unhash(struct sock *sk); | 51 | void pn_sock_unhash(struct sock *sk); |
52 | int pn_sock_get_port(struct sock *sk, unsigned short sport); | 52 | int pn_sock_get_port(struct sock *sk, unsigned short sport); |
53 | 53 | ||
54 | int pn_skb_send(struct sock *sk, struct sk_buff *skb, | ||
55 | const struct sockaddr_pn *target); | ||
56 | |||
54 | static inline struct phonethdr *pn_hdr(struct sk_buff *skb) | 57 | static inline struct phonethdr *pn_hdr(struct sk_buff *skb) |
55 | { | 58 | { |
56 | return (struct phonethdr *)skb_network_header(skb); | 59 | return (struct phonethdr *)skb_network_header(skb); |
@@ -95,4 +98,7 @@ int phonet_proto_register(int protocol, struct phonet_protocol *pp); | |||
95 | void phonet_proto_unregister(int protocol, struct phonet_protocol *pp); | 98 | void phonet_proto_unregister(int protocol, struct phonet_protocol *pp); |
96 | 99 | ||
97 | void phonet_netlink_register(void); | 100 | void phonet_netlink_register(void); |
101 | int isi_register(void); | ||
102 | void isi_unregister(void); | ||
103 | |||
98 | #endif | 104 | #endif |