X-Git-Url: http://p2p-next.cs.pub.ro/gitweb/?a=blobdiff_plain;f=module%2Fp2pkp_sock.h;h=1d95bfa3a53a390cbcfb5938621d74279d1c4a9b;hb=HEAD;hp=96d25aa7192b751d620c3238385d078ec84f3c05;hpb=2d6f09bf6e183a2a889d52af3c0acc48c5998043;p=p2p-kernel-protocol.git diff --git a/module/p2pkp_sock.h b/module/p2pkp_sock.h index 96d25aa..1d95bfa 100644 --- a/module/p2pkp_sock.h +++ b/module/p2pkp_sock.h @@ -3,7 +3,8 @@ #include -#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 */