]> git.baikalelectronics.ru Git - kernel.git/commit
Phonet: resource routing backend
authorRémi Denis-Courmont <remi.denis-courmont@nokia.com>
Wed, 15 Sep 2010 12:30:11 +0000 (12:30 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 16 Sep 2010 04:31:32 +0000 (21:31 -0700)
commit4d65fea4ec54465907ebc609dbb431f21d94a095
treed212f0e503a4db4c2b04a0457250bba940205f39
parent9ea1c7fdb541031fa5c4f4817efe0ca91ac32459
Phonet: resource routing backend

When both destination device and object are nul, Phonet routes the
packet according to the resource field. In fact, this is the most
common pattern when sending Phonet "request" packets. In this case,
the packet is delivered to whichever endpoint (socket) has
registered the resource.

This adds a new table so that Linux processes can register their
Phonet sockets to Phonet resources, if they have adequate privileges.

(Namespace support is not implemented at the moment.)

Signed-off-by: Rémi Denis-Courmont <remi.denis-courmont@nokia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/phonet/phonet.h
net/phonet/socket.c