Re: [PATCH] new UDPCP Communication Protocol
From: Eric Dumazet
Date: Mon Jan 03 2011 - 04:28:12 EST
Le lundi 03 janvier 2011 Ã 10:08 +0100, Stefani Seibold a Ãcrit :
> This will not work for two reasons:
> - First there is no way to detect a dead connection. A connection can
> stay for a very long time without data transfer.
> - Second it will not save against a attack where all communication slots
> will be eaten by an attacker and then new valid connections will be not
> The only thing what is possible to make an ioctl call which allows the
> user land client to cancel connections.
> But this will be in my opinion dead code, because white lists of trusted
> address must be fostered and this will make the upgrading of a
> infrastructure to complicate.
Yep, and as UDP messages can easily spoofed, this means you need more
than a list of trusted addresses. You also need to encapsulate the thing
in an secured layer.
Stefani, your implementation has very litle chance being added in
standard kernel, because it is not correctly layered, or documented.
Copying hundred (thousand ?) of lines from existing code only shows
there is a design error in your proposal. It means every time we have to
make a change in this code, we'll have to do it twice.
SUNRPC uses UDP/TCP sockets, and use callbacks to existing UDP/TCP code,
maybe you should take a look to implement an UDPCP stack in kernel.
For instance, a pure socket API seems not the correct choice for UDPCP,
since a transmit should give a report to user, of frame being
delivered/aknowledged or not to/by the remote side ?
With send(), this means you have only one message in transit, no
At least you forgot to document the API, and restrictions.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/