doc: final revise of the document
[p2p-kernel-protocol.git] / module / p2pkp_sock.h
index 96d25aa..1d95bfa 100644 (file)
@@ -3,7 +3,8 @@
 
 #include <net/sock.h>
 
-#define P2PKP_DEFAULT_BUF_LEN  256
+#define P2PKP_DEFAULT_BUF_LEN  8196
+#define P2PKP_DEFAULT_MODE             0644
 
 struct p2pkp_conn_info {
        struct sockaddr_in sin;
@@ -15,6 +16,7 @@ struct p2pkp_sock {
        spinlock_t conn_lock;
        struct list_head conn_list;
        struct socket *net_sock;
+       struct file * file;
        unsigned int buffer_len;
        unsigned char buffer[P2PKP_DEFAULT_BUF_LEN];
        int bind_ifindex;       /* bound interface index; 0 for any interface */