All of lore.kernel.org
 help / color / mirror / Atom feed
* [Patch v10 0/3] net: reserve ports for applications using fixed port numbers
@ 2010-05-05 10:26 Amerigo Wang
  2010-05-05 10:26 ` [Patch 1/3] sysctl: refactor integer handling proc code Amerigo Wang
                   ` (4 more replies)
  0 siblings, 5 replies; 17+ messages in thread
From: Amerigo Wang @ 2010-05-05 10:26 UTC (permalink / raw)
  To: linux-kernel
  Cc: Octavian Purdila, ebiederm, Eric Dumazet, penguin-kernel, netdev,
	Neil Horman, Amerigo Wang, xiaosuo, adobriyan, David Miller


Changes from the previous version:
- Use 'true' and 'false' for bool's;
- Fix some coding style problems;
- Allow appending lines to bitmap proc file so that it will be
  easier to add new bits.

------------------>

This patch introduces /proc/sys/net/ipv4/ip_local_reserved_ports which
allows users to reserve ports for third-party applications.

The reserved ports will not be used by automatic port assignments
(e.g. when calling connect() or bind() with port number 0). Explicit
port allocation behavior is unchanged.

There are still some miss behaviors with regard to proc parsing in odd
invalid cases (for "40000\0-40001" all is acknowledged but only 40000
is accepted) but they are not easy to fix without changing the current
"acknowledge how much we accepted" behavior.

Because of that and because the same issues are present in the
existing proc_dointvec code as well I don't think its worth holding
the actual feature (port reservation) after such petty error recovery
issues.



^ permalink raw reply	[flat|nested] 17+ messages in thread
* [Patch v9 0/3] net: reserve ports for applications using fixed port numbers
@ 2010-04-30  8:25 Amerigo Wang
  2010-04-30  8:25 ` [Patch 3/3] " Amerigo Wang
  0 siblings, 1 reply; 17+ messages in thread
From: Amerigo Wang @ 2010-04-30  8:25 UTC (permalink / raw)
  To: linux-kernel
  Cc: Octavian Purdila, ebiederm, Eric Dumazet, penguin-kernel, netdev,
	Neil Horman, Amerigo Wang, adobriyan, David Miller


Changes from the previous version:
- Dropped the infiniband part, because Tetsuo modified the related code,
  I will send a separate patch for it once this is accepted.
- Fixed some '\0' issues introduced by the previous version.
- Use copy_from_user(), instead of get_user().
- Use memchr().

------------------>

This patch introduces /proc/sys/net/ipv4/ip_local_reserved_ports which
allows users to reserve ports for third-party applications.

The reserved ports will not be used by automatic port assignments
(e.g. when calling connect() or bind() with port number 0). Explicit
port allocation behavior is unchanged.

There are still some miss behaviors with regard to proc parsing in odd
invalid cases (for "40000\0-40001" all is acknowledged but only 40000
is accepted) but they are not easy to fix without changing the current
"acknowledge how much we accepted" behavior.

Because of that and because the same issues are present in the
existing proc_dointvec code as well I don't think its worth holding
the actual feature (port reservation) after such petty error recovery
issues.



^ permalink raw reply	[flat|nested] 17+ messages in thread
* [Patch v8 0/3] net: reserve ports for applications using fixed port numbers
@ 2010-04-12 10:03 Amerigo Wang
  2010-04-12 10:04 ` [Patch 3/3] " Amerigo Wang
  0 siblings, 1 reply; 17+ messages in thread
From: Amerigo Wang @ 2010-04-12 10:03 UTC (permalink / raw)
  To: linux-kernel
  Cc: Octavian Purdila, ebiederm, Eric Dumazet, penguin-kernel, netdev,
	Neil Horman, Amerigo Wang, David Miller

Changes from the previous version:
- Rename proc_{get,put}_ulong to proc_{get,put}_long();
- Fix potential dead loop problems in cma code.

------------->

This patch introduces /proc/sys/net/ipv4/ip_local_reserved_ports which
allows users to reserve ports for third-party applications.

The reserved ports will not be used by automatic port assignments
(e.g. when calling connect() or bind() with port number 0). Explicit
port allocation behavior is unchanged.

There are still some miss behaviors with regard to proc parsing in odd
invalid cases (for "40000\0-40001" all is acknowledged but only 40000
is accepted) but they are not easy to fix without changing the current
"acknowledge how much we accepted" behavior.

Because of that and because the same issues are present in the
existing proc_dointvec code as well I don't think its worth holding
the actual feature (port reservation) after such petty error recovery
issues.



^ permalink raw reply	[flat|nested] 17+ messages in thread
* [Patch v7 0/3] net: reserve ports for applications using fixed port numbers
@ 2010-04-09 10:10 Amerigo Wang
  2010-04-09 10:11 ` [Patch 3/3] " Amerigo Wang
  0 siblings, 1 reply; 17+ messages in thread
From: Amerigo Wang @ 2010-04-09 10:10 UTC (permalink / raw)
  To: linux-kernel
  Cc: Octavian Purdila, ebiederm, Eric Dumazet, netdev, Neil Horman,
	Amerigo Wang, David Miller

Changes from the previous version:
- Update to latest Linus' tree;
- Address Eric B.'s concern, copy the whole bitmap instead of set one by one.

------------->

This patch introduces /proc/sys/net/ipv4/ip_local_reserved_ports which
allows users to reserve ports for third-party applications.

The reserved ports will not be used by automatic port assignments
(e.g. when calling connect() or bind() with port number 0). Explicit
port allocation behavior is unchanged.

There are still some miss behaviors with regard to proc parsing in odd
invalid cases (for "40000\0-40001" all is acknowledged but only 40000
is accepted) but they are not easy to fix without changing the current
"acknowledge how much we accepted" behavior.

Because of that and because the same issues are present in the
existing proc_dointvec code as well I don't think its worth holding
the actual feature (port reservation) after such petty error recovery
issues.



^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2010-05-16  6:28 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-05 10:26 [Patch v10 0/3] net: reserve ports for applications using fixed port numbers Amerigo Wang
2010-05-05 10:26 ` [Patch 1/3] sysctl: refactor integer handling proc code Amerigo Wang
2010-05-05 10:26 ` [Patch 2/3] sysctl: add proc_do_large_bitmap Amerigo Wang
2010-05-05 10:27 ` [Patch 3/3] net: reserve ports for applications using fixed port numbers Amerigo Wang
2010-05-10  4:01 ` [Patch v10 0/3] " Cong Wang
2010-05-16  6:28 ` David Miller
  -- strict thread matches above, loose matches on Subject: below --
2010-04-30  8:25 [Patch v9 " Amerigo Wang
2010-04-30  8:25 ` [Patch 3/3] " Amerigo Wang
2010-04-12 10:03 [Patch v8 0/3] " Amerigo Wang
2010-04-12 10:04 ` [Patch 3/3] " Amerigo Wang
2010-04-13  1:21   ` Tetsuo Handa
2010-04-13  7:13     ` Cong Wang
2010-04-13  8:48       ` Cong Wang
2010-04-13 13:07         ` Tetsuo Handa
2010-04-13 16:32           ` Sean Hefty
2010-04-09 10:10 [Patch v7 0/3] " Amerigo Wang
2010-04-09 10:11 ` [Patch 3/3] " Amerigo Wang
2010-04-09 13:21   ` Tetsuo Handa
2010-04-12  6:52     ` Cong Wang
2010-04-12  7:06       ` Tetsuo Handa

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.