]> git.baikalelectronics.ru Git - kernel.git/commit
Phonet: 'connect' socket implementation for Pipe controller
authorKumar Sanghvi <kumar.sanghvi@stericsson.com>
Tue, 12 Oct 2010 20:14:43 +0000 (20:14 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Oct 2010 21:40:34 +0000 (14:40 -0700)
commitb74683ffd184375bae8b1e751fa4983f7c99143d
tree8eaefeadef047a8bc6fcc269669ac4288e41ef64
parentf98000df76f81677f780c23af5ba6d7d0505fb15
Phonet: 'connect' socket implementation for Pipe controller

Based on suggestion by Rémi Denis-Courmont to implement 'connect'
for Pipe controller logic,  this patch implements 'connect' socket
call for the Pipe controller logic.
The patch does following:-
- Removes setsockopts for PNPIPE_CREATE and PNPIPE_DESTROY
- Adds setsockopt for setting the Pipe handle value
- Implements connect socket call
- Updates the Pipe controller logic

User-space should now follow below sequence with Pipe controller:-
-socket
-bind
-setsockopt for PNPIPE_PIPE_HANDLE
-connect
-setsockopt for PNPIPE_ENCAP_IP
-setsockopt for PNPIPE_ENABLE

GPRS/3G data has been tested working fine with this.

Signed-off-by: Kumar Sanghvi <kumar.sanghvi@stericsson.com>
Acked-by: Rémi Denis-Courmont <remi.denis-courmont@nokia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/phonet.h
include/net/phonet/pep.h
net/phonet/pep.c
net/phonet/socket.c