summaryrefslogtreecommitdiffstats
path: root/net/phonet/af_phonet.c
diff options
context:
space:
mode:
authorRémi Denis-Courmont <remi.denis-courmont@nokia.com>2008-10-05 11:15:13 -0700
committerDavid S. Miller <davem@davemloft.net>2008-10-05 11:15:13 -0700
commit9641458d3ec42def729fde64669abf07f3220cd5 (patch)
tree414a31324c800ad9ecc8665de7ffaa9eee963a0e /net/phonet/af_phonet.c
parent9995a32b4d14dcda2f8df58030526bee91114c16 (diff)
downloadlinux-9641458d3ec42def729fde64669abf07f3220cd5.tar.gz
linux-9641458d3ec42def729fde64669abf07f3220cd5.tar.bz2
linux-9641458d3ec42def729fde64669abf07f3220cd5.zip
Phonet: Pipe End Point for Phonet Pipes protocol
This protocol provides some connection handling and negotiated congestion control. Nokia cellular modems use it for bulk transfers. It provides packet boundaries (hence SOCK_SEQPACKET). Congestion control is per packet rather per byte, so we do not re-use the generic socket memory accounting. Signed-off-by: Rémi Denis-Courmont <remi.denis-courmont@nokia.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/phonet/af_phonet.c')
-rw-r--r--net/phonet/af_phonet.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/phonet/af_phonet.c b/net/phonet/af_phonet.c
index 0a74aeaf5adf..9e9c6fce11aa 100644
--- a/net/phonet/af_phonet.c
+++ b/net/phonet/af_phonet.c
@@ -58,6 +58,9 @@ static int pn_socket_create(struct net *net, struct socket *sock, int protocol)
case SOCK_DGRAM:
protocol = PN_PROTO_PHONET;
break;
+ case SOCK_SEQPACKET:
+ protocol = PN_PROTO_PIPE;
+ break;
default:
return -EPROTONOSUPPORT;
}