[RFC 0/6] Allow to disable socket protocol families

Cyrill Gorcunov <[email protected]>
Newsgroups org.kernel.vger.trinity
Message-ID <[email protected]>
When been testing the kernel with fresh trinity repo our admins
were unhappy about traffic which came from our testing nodes, so
here we add --no_proto option which allow a user to exclude
specified protocols from testing.

Please take a look, hope I don't miss something obvious.
Comments are highly appreciated!

Cyrill Gorcunov (6):
  log: Add BUG_ON helper
  net: protocols -- Use ARRAY_SIZE helper
  net: protocols -- Add lookup_proto helper
  net: protocols -- Move protocol function declarations to protocols.h
  params: Add --no_proto|-E option
  net: sockets -- Don't generate sockets with disabled protocol families

 include/log.h       |  2 ++
 include/net.h       |  2 --
 include/params.h    |  2 ++
 include/protocols.h |  9 +++++
 net/protocols.c     | 94 ++++++++++++++++++++++++++++++++++++++++-------------
 params.c            | 11 ++++++-
 sockets.c           | 27 ++++++++++++---
 syscalls/socket.c   | 36 ++++++++++++++++++--
 trinity.c           |  1 +
 9 files changed, 153 insertions(+), 31 deletions(-)
 create mode 100644 include/protocols.h

-- 
1.8.3.1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.