tech-kern archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: New Syscall
Taylor R Campbell wrote:
> Date: Wed, 14 Oct 2015 22:55:41 +0100 (BST)
> From: Robert Swindells <rjs%fdy2.co.uk@localhost>
>
> The syscall is sctp_peeloff().
>
>Hmm... Introducing a protocol-specific syscall doesn't strike me as a
>great design. I can imagine wanting to do something similar with,
>e.g., minimalt, if we ever had that in-kernel.
>
>If we have to have something protocol-specific, an ioctl would work
>just as well, and use up a somewhat less scarce resource.
The code is from KAME, I didn't write it from scratch, FreeBSD also has
a syscall for it.
Linux uses getsockopt() for this, which seems wrong to me as you are
not just reading a setting when you make the call.
Robert Swindells
Home |
Main Index |
Thread Index |
Old Index