module: fixed receiving size
[p2p-kernel-protocol.git] / module / p2pkp_sock.h
index ae5e78a..1d95bfa 100644 (file)
@@ -3,7 +3,7 @@
 
 #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 {
@@ -16,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 */