Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 82147

Summary: tcpserver ignores tcprules when compiled with USE flag +ipv6
Product: Gentoo Linux Reporter: javier david <jd-lists>
Component: New packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description javier david 2005-02-15 12:17:11 UTC
when compiled with +ipv6 use flag, tcpserver appears to ignore any tcp rule defined in a cdb file (specified with a -x command line option) that begins with an ip number. a generic line (no initial ip specified) apperas to function properly, since it sets environment variables correctly.

when ucspi-tcp is recompiled without the ipv6 use flag, it functions properly.

Reproducible: Always
Steps to Reproduce:
1) set up a cdb for tcprules like so:

192.:allow,LINE="192"
127.:allow,LINE="10"
:allow,LINE="GENERIC"

2) ask tcpserver to respond to a certain port and show the environment, like so:

tcpserver -x ./<filename.cdb> 0 25 env

3) connect to the specified port from different addresses, like so:
telnet localhost 25
telnet 192.168.0.1 25

and check for the environment variable LINE. 
Actual Results:  
the environment variable LINE show the value GENERIC every time.

Expected Results:  
the environment variable LINE should show a different value, depending on the
value of the TCPREMOTEIP environment variable.
Comment 1 SpanKY gentoo-dev 2005-02-15 18:28:23 UTC
you neglected to provide `emerge info` or mention which version of ucspi-tcp
you're using ... so i'm just going to assume this is Bug 34983

*** This bug has been marked as a duplicate of 34983 ***
Comment 2 javier david 2005-02-15 19:55:51 UTC
yeah, it seems to be the same bug. 
sorry for the wasted time and effort... i searched for similar bugs but didn't come across this one.