You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "Leif Hedstrom (Created) (JIRA)" <ji...@apache.org> on 2011/10/20 04:06:10 UTC

[jira] [Created] (TS-986) ts/experimental has a dependency on netinet/net.h (for struct in_addr)

ts/experimental has a dependency on netinet/net.h (for struct in_addr)
----------------------------------------------------------------------

                 Key: TS-986
                 URL: https://issues.apache.org/jira/browse/TS-986
             Project: Traffic Server
          Issue Type: Improvement
          Components: TS API
            Reporter: Leif Hedstrom
             Fix For: 3.1.2


Alan seems to indicate this is wrong anyways, but just adding this bug so we remember it's probably a bad idea. The offending API is

  tsapi int TSNodeHandleToIPAddr(TSNodeHandle_t *h, struct in_addr *in);


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (TS-986) ts/experimental has a dependency on netinet/net.h (for struct in_addr)

Posted by "Alan M. Carroll (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TS-986?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13131875#comment-13131875 ] 

Alan M. Carroll commented on TS-986:
------------------------------------

It should be a sockaddr*, not in_addr. Also, if we want to fix this, we should just put a declaration in name only at the top, e.g.

"struct sockaddr;"

OTOH I don't see how we will eliminate dependency on netinet/net.h for something that deals heavily with IP addresses.
                
> ts/experimental has a dependency on netinet/net.h (for struct in_addr)
> ----------------------------------------------------------------------
>
>                 Key: TS-986
>                 URL: https://issues.apache.org/jira/browse/TS-986
>             Project: Traffic Server
>          Issue Type: Improvement
>          Components: TS API
>            Reporter: Leif Hedstrom
>             Fix For: 3.1.2
>
>
> Alan seems to indicate this is wrong anyways, but just adding this bug so we remember it's probably a bad idea. The offending API is
>   tsapi int TSNodeHandleToIPAddr(TSNodeHandle_t *h, struct in_addr *in);

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (TS-986) ts/experimental has a dependency on netinet/net.h (for struct in_addr)

Posted by "Leif Hedstrom (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TS-986?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Leif Hedstrom updated TS-986:
-----------------------------

    Fix Version/s:     (was: 3.1.5)
                   3.3.0

Moving this out to 3.3.0, please move back to 3.1.4 if this will be worked on *soon*. Also, take a look at what can be closed here please!
                
> ts/experimental has a dependency on netinet/net.h (for struct in_addr)
> ----------------------------------------------------------------------
>
>                 Key: TS-986
>                 URL: https://issues.apache.org/jira/browse/TS-986
>             Project: Traffic Server
>          Issue Type: Improvement
>          Components: TS API
>            Reporter: Leif Hedstrom
>             Fix For: 3.3.0
>
>
> Alan seems to indicate this is wrong anyways, but just adding this bug so we remember it's probably a bad idea. The offending API is
>   tsapi int TSNodeHandleToIPAddr(TSNodeHandle_t *h, struct in_addr *in);

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (TS-986) ts/experimental has a dependency on netinet/net.h (for struct in_addr)

Posted by "Leif Hedstrom (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TS-986?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Leif Hedstrom updated TS-986:
-----------------------------

    Fix Version/s:     (was: 3.1.2)
                   3.1.3
    
> ts/experimental has a dependency on netinet/net.h (for struct in_addr)
> ----------------------------------------------------------------------
>
>                 Key: TS-986
>                 URL: https://issues.apache.org/jira/browse/TS-986
>             Project: Traffic Server
>          Issue Type: Improvement
>          Components: TS API
>            Reporter: Leif Hedstrom
>             Fix For: 3.1.3
>
>
> Alan seems to indicate this is wrong anyways, but just adding this bug so we remember it's probably a bad idea. The offending API is
>   tsapi int TSNodeHandleToIPAddr(TSNodeHandle_t *h, struct in_addr *in);

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira