aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorRemi Denis-Courmont <remi.denis-courmont@nokia.com>2008-09-22 23:05:57 -0400
committerDavid S. Miller <davem@davemloft.net>2008-09-22 23:05:57 -0400
commit107d0d9b8d9a236883db72841fb61cedd5be845e (patch)
tree6555b3bc7a8ce3551c462e1f3f7d6556eeda0897 /include
parentba113a94b7503ee23ffe819e7045134b0c1d31de (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.h6
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);
51void pn_sock_unhash(struct sock *sk); 51void pn_sock_unhash(struct sock *sk);
52int pn_sock_get_port(struct sock *sk, unsigned short sport); 52int pn_sock_get_port(struct sock *sk, unsigned short sport);
53 53
54int pn_skb_send(struct sock *sk, struct sk_buff *skb,
55 const struct sockaddr_pn *target);
56
54static inline struct phonethdr *pn_hdr(struct sk_buff *skb) 57static 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);
95void phonet_proto_unregister(int protocol, struct phonet_protocol *pp); 98void phonet_proto_unregister(int protocol, struct phonet_protocol *pp);
96 99
97void phonet_netlink_register(void); 100void phonet_netlink_register(void);
101int isi_register(void);
102void isi_unregister(void);
103
98#endif 104#endif