Actions
Feature #6394
closedSupport SO_ORIGINAL_DST socket option
    Feature #6394:
    Support SO_ORIGINAL_DST socket option
  
Description
In Linux, SO_ORIGINAL_DST provides the original packet destination, which is very useful when packet is translated by NAT.
In C, this information can be obtained by getsockopt(fd, SOL_IP, SO_ORIGINAL_DST, &remote, &remote_len);
However, current Ruby Socket class does not provide this option.
Please consider adding this option into Ruby.
By the way, I am still working on the patch file.
This option is named with SO_ prefix. However it is an IP layer option (SOL_IP).
ext/socket/mkconstants.rb seems to generate options according to the option prefix, which goes wrong in this case.
        
           Updated by mame (Yusuke Endoh) over 13 years ago
          Updated by mame (Yusuke Endoh) over 13 years ago
          
          
        
        
      
      - Status changed from Open to Assigned
- Assignee set to akr (Akira Tanaka)
        
           Updated by mame (Yusuke Endoh) almost 13 years ago
          Updated by mame (Yusuke Endoh) almost 13 years ago
          
          
        
        
      
      - Target version set to 2.6
        
           Updated by naruse (Yui NARUSE) almost 8 years ago
          Updated by naruse (Yui NARUSE) almost 8 years ago
          
          
        
        
      
      - Target version deleted (2.6)
        
           Updated by akr (Akira Tanaka) over 7 years ago
          Updated by akr (Akira Tanaka) over 7 years ago
          
          
        
        
      
      - Related to Feature #14696: add optname SO_ORIGINAL_DST added
        
           Updated by nobu (Nobuyoshi Nakada) over 7 years ago
          Updated by nobu (Nobuyoshi Nakada) over 7 years ago
          
          
        
        
      
      - Has duplicate Feature #14696: add optname SO_ORIGINAL_DST added
        
           Updated by nobu (Nobuyoshi Nakada) over 7 years ago
          Updated by nobu (Nobuyoshi Nakada) over 7 years ago
          
          
        
        
      
      - Related to deleted (Feature #14696: add optname SO_ORIGINAL_DST)
        
           Updated by matz (Yukihiro Matsumoto) over 7 years ago
          Updated by matz (Yukihiro Matsumoto) over 7 years ago
          
          
        
        
      
      - Status changed from Assigned to Rejected
As #14696, we reject the proposal.
Actions