ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:50372] [ruby-trunk - Bug #7476][Open] missing "IP_TRANSPARENT" constant for IP sockets.
@ 2012-11-30  6:25 elico (Eliezer Croitoru)
  2013-02-24 12:23 ` [ruby-core:52809] [ruby-trunk - Feature #7476] " ko1 (Koichi Sasada)
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: elico (Eliezer Croitoru) @ 2012-11-30  6:25 UTC (permalink / raw
  To: ruby-core


Issue #7476 has been reported by elico (Eliezer Croitoru).

----------------------------------------
Bug #7476: missing "IP_TRANSPARENT" constant for IP sockets.
https://bugs.ruby-lang.org/issues/7476

Author: elico (Eliezer Croitoru)
Status: Open
Priority: Normal
Assignee: 
Category: 
Target version: 
ruby -v: 1.9.3


There is a missing constant for IP_TRANSPARENT on linux.
to set the TPROXY on a socket I use:
s.setsockopt(Socket::SOL_IP, 19, 1)
The 19 suppose to be as a constant named: IP_TRANSPARENT or Socket::IP_TRANSPARENT.



-- 
http://bugs.ruby-lang.org/

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

* [ruby-core:52809] [ruby-trunk - Feature #7476] missing "IP_TRANSPARENT" constant for IP sockets.
  2012-11-30  6:25 [ruby-core:50372] [ruby-trunk - Bug #7476][Open] missing "IP_TRANSPARENT" constant for IP sockets elico (Eliezer Croitoru)
@ 2013-02-24 12:23 ` ko1 (Koichi Sasada)
  2013-04-02  6:28   ` [ruby-core:53889] " Tanaka Akira
  2014-01-30  6:16 ` [ruby-core:60271] " shibata.hiroshi
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 8+ messages in thread
From: ko1 (Koichi Sasada) @ 2013-02-24 12:23 UTC (permalink / raw
  To: ruby-core


Issue #7476 has been updated by ko1 (Koichi Sasada).

Target version changed from 2.0.0 to 2.1.0

ping -> akr
----------------------------------------
Feature #7476: missing "IP_TRANSPARENT" constant for IP sockets.
https://bugs.ruby-lang.org/issues/7476#change-36913

Author: elico (Eliezer Croitoru)
Status: Assigned
Priority: Normal
Assignee: akr (Akira Tanaka)
Category: ext
Target version: 2.1.0


There is a missing constant for IP_TRANSPARENT on linux.
to set the TPROXY on a socket I use:
s.setsockopt(Socket::SOL_IP, 19, 1)
The 19 suppose to be as a constant named: IP_TRANSPARENT or Socket::IP_TRANSPARENT.



-- 
http://bugs.ruby-lang.org/

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

* [ruby-core:53889] Re: [ruby-trunk - Feature #7476] missing "IP_TRANSPARENT" constant for IP sockets.
  2013-02-24 12:23 ` [ruby-core:52809] [ruby-trunk - Feature #7476] " ko1 (Koichi Sasada)
@ 2013-04-02  6:28   ` Tanaka Akira
  2013-04-02 20:59     ` [ruby-core:53903] " Eric Wong
  0 siblings, 1 reply; 8+ messages in thread
From: Tanaka Akira @ 2013-04-02  6:28 UTC (permalink / raw
  To: ruby-core

2013/2/24 ko1 (Koichi Sasada) <redmine@ruby-lang.org>:

> Feature #7476: missing "IP_TRANSPARENT" constant for IP sockets.
> https://bugs.ruby-lang.org/issues/7476#change-36913

> There is a missing constant for IP_TRANSPARENT on linux.
> to set the TPROXY on a socket I use:
> s.setsockopt(Socket::SOL_IP, 19, 1)
> The 19 suppose to be as a constant named: IP_TRANSPARENT or Socket::IP_TRANSPARENT.

This is Linux-specific and only defined in linux headers
such as /usr/include/linux/in.h.

I'm not sure applications can safely use such headers.
-- 
Tanaka Akira

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

* [ruby-core:53903] Re: [ruby-trunk - Feature #7476] missing "IP_TRANSPARENT" constant for IP sockets.
  2013-04-02  6:28   ` [ruby-core:53889] " Tanaka Akira
@ 2013-04-02 20:59     ` Eric Wong
  2013-04-02 22:04       ` [ruby-core:53905] " Tanaka Akira
  0 siblings, 1 reply; 8+ messages in thread
From: Eric Wong @ 2013-04-02 20:59 UTC (permalink / raw
  To: ruby-core

Tanaka Akira <akr@fsij.org> wrote:
> 2013/2/24 ko1 (Koichi Sasada) <redmine@ruby-lang.org>:
> 
> > Feature #7476: missing "IP_TRANSPARENT" constant for IP sockets.
> > https://bugs.ruby-lang.org/issues/7476#change-36913
> 
> > There is a missing constant for IP_TRANSPARENT on linux.
> > to set the TPROXY on a socket I use:
> > s.setsockopt(Socket::SOL_IP, 19, 1)
> > The 19 suppose to be as a constant named: IP_TRANSPARENT or Socket::IP_TRANSPARENT.
> 
> This is Linux-specific and only defined in linux headers
> such as /usr/include/linux/in.h.
> 
> I'm not sure applications can safely use such headers.

We already have Linux-specific constants (e.g. TCP_CORK) and
*BSD-specific constants (e.g. TCP_NOPUSH), so I don't think we should
make it hard for users to take advantage of non-portable features on
their favorite OS.

I vote for adding IP_TRANSPARENT (and any other OS-specific constants
users request).

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

* [ruby-core:53905] Re: [ruby-trunk - Feature #7476] missing "IP_TRANSPARENT" constant for IP sockets.
  2013-04-02 20:59     ` [ruby-core:53903] " Eric Wong
@ 2013-04-02 22:04       ` Tanaka Akira
  0 siblings, 0 replies; 8+ messages in thread
From: Tanaka Akira @ 2013-04-02 22:04 UTC (permalink / raw
  To: ruby-core

2013/4/3 Eric Wong <normalperson@yhbt.net>:

>> This is Linux-specific and only defined in linux headers
>> such as /usr/include/linux/in.h.
>>
>> I'm not sure applications can safely use such headers.
>
> We already have Linux-specific constants (e.g. TCP_CORK) and
> *BSD-specific constants (e.g. TCP_NOPUSH), so I don't think we should
> make it hard for users to take advantage of non-portable features on
> their favorite OS.

It is not my concern.
TCP_CORK is defined in /usr/include/netinet/tcp.h which is a glibc header.
-- 
Tanaka Akira

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

* [ruby-core:60271] [ruby-trunk - Feature #7476] missing "IP_TRANSPARENT" constant for IP sockets.
  2012-11-30  6:25 [ruby-core:50372] [ruby-trunk - Bug #7476][Open] missing "IP_TRANSPARENT" constant for IP sockets elico (Eliezer Croitoru)
  2013-02-24 12:23 ` [ruby-core:52809] [ruby-trunk - Feature #7476] " ko1 (Koichi Sasada)
@ 2014-01-30  6:16 ` shibata.hiroshi
  2014-05-05 15:15 ` [ruby-core:62387] [ruby-trunk - Feature #7476] [Closed] " akr
  2014-05-05 15:17 ` [ruby-core:62388] [ruby-trunk - Feature #7476] " akr
  3 siblings, 0 replies; 8+ messages in thread
From: shibata.hiroshi @ 2014-01-30  6:16 UTC (permalink / raw
  To: ruby-core

Issue #7476 has been updated by Hiroshi SHIBATA.

Target version changed from 2.1.0 to current: 2.2.0

----------------------------------------
Feature #7476: missing "IP_TRANSPARENT" constant for IP sockets.
https://bugs.ruby-lang.org/issues/7476#change-44751

* Author: Eliezer Croitoru
* Status: Assigned
* Priority: Normal
* Assignee: Akira Tanaka
* Category: ext
* Target version: current: 2.2.0
----------------------------------------
There is a missing constant for IP_TRANSPARENT on linux.
to set the TPROXY on a socket I use:
s.setsockopt(Socket::SOL_IP, 19, 1)
The 19 suppose to be as a constant named: IP_TRANSPARENT or Socket::IP_TRANSPARENT.




-- 
http://bugs.ruby-lang.org/

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

* [ruby-core:62387] [ruby-trunk - Feature #7476] [Closed] missing "IP_TRANSPARENT" constant for IP sockets.
  2012-11-30  6:25 [ruby-core:50372] [ruby-trunk - Bug #7476][Open] missing "IP_TRANSPARENT" constant for IP sockets elico (Eliezer Croitoru)
  2013-02-24 12:23 ` [ruby-core:52809] [ruby-trunk - Feature #7476] " ko1 (Koichi Sasada)
  2014-01-30  6:16 ` [ruby-core:60271] " shibata.hiroshi
@ 2014-05-05 15:15 ` akr
  2014-05-05 15:17 ` [ruby-core:62388] [ruby-trunk - Feature #7476] " akr
  3 siblings, 0 replies; 8+ messages in thread
From: akr @ 2014-05-05 15:15 UTC (permalink / raw
  To: ruby-core

Issue #7476 has been updated by Akira Tanaka.

Status changed from Assigned to Closed
% Done changed from 0 to 100

Applied in changeset r45830.

----------
* ext/socket/mkconstants.rb: Add IP_TRANSPARENT.
  IP_TRANSPARENT is provieded since glibc-2.12.
  Reported by Eliezer Croitoru.  [ruby-core:50372] [Bug #7476]

----------------------------------------
Feature #7476: missing "IP_TRANSPARENT" constant for IP sockets.
https://bugs.ruby-lang.org/issues/7476#change-46544

* Author: Eliezer Croitoru
* Status: Closed
* Priority: Normal
* Assignee: Akira Tanaka
* Category: ext
* Target version: current: 2.2.0
----------------------------------------
There is a missing constant for IP_TRANSPARENT on linux.
to set the TPROXY on a socket I use:
s.setsockopt(Socket::SOL_IP, 19, 1)
The 19 suppose to be as a constant named: IP_TRANSPARENT or Socket::IP_TRANSPARENT.




-- 
https://bugs.ruby-lang.org/

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

* [ruby-core:62388] [ruby-trunk - Feature #7476] missing "IP_TRANSPARENT" constant for IP sockets.
  2012-11-30  6:25 [ruby-core:50372] [ruby-trunk - Bug #7476][Open] missing "IP_TRANSPARENT" constant for IP sockets elico (Eliezer Croitoru)
                   ` (2 preceding siblings ...)
  2014-05-05 15:15 ` [ruby-core:62387] [ruby-trunk - Feature #7476] [Closed] " akr
@ 2014-05-05 15:17 ` akr
  3 siblings, 0 replies; 8+ messages in thread
From: akr @ 2014-05-05 15:17 UTC (permalink / raw
  To: ruby-core

Issue #7476 has been updated by Akira Tanaka.


It seems glibc-2.12 provides IP_TRANSPARENT.
So there is no problem to use it now.

----------------------------------------
Feature #7476: missing "IP_TRANSPARENT" constant for IP sockets.
https://bugs.ruby-lang.org/issues/7476#change-46545

* Author: Eliezer Croitoru
* Status: Closed
* Priority: Normal
* Assignee: Akira Tanaka
* Category: ext
* Target version: current: 2.2.0
----------------------------------------
There is a missing constant for IP_TRANSPARENT on linux.
to set the TPROXY on a socket I use:
s.setsockopt(Socket::SOL_IP, 19, 1)
The 19 suppose to be as a constant named: IP_TRANSPARENT or Socket::IP_TRANSPARENT.




-- 
https://bugs.ruby-lang.org/

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

end of thread, other threads:[~2014-05-05 15:08 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-30  6:25 [ruby-core:50372] [ruby-trunk - Bug #7476][Open] missing "IP_TRANSPARENT" constant for IP sockets elico (Eliezer Croitoru)
2013-02-24 12:23 ` [ruby-core:52809] [ruby-trunk - Feature #7476] " ko1 (Koichi Sasada)
2013-04-02  6:28   ` [ruby-core:53889] " Tanaka Akira
2013-04-02 20:59     ` [ruby-core:53903] " Eric Wong
2013-04-02 22:04       ` [ruby-core:53905] " Tanaka Akira
2014-01-30  6:16 ` [ruby-core:60271] " shibata.hiroshi
2014-05-05 15:15 ` [ruby-core:62387] [ruby-trunk - Feature #7476] [Closed] " akr
2014-05-05 15:17 ` [ruby-core:62388] [ruby-trunk - Feature #7476] " akr

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).