[stgt] [RFC 1/1] iscsi_tcp: Support the keyword "ANY" for the iscsi_portal_addr string.

Boaz Harrosh bharrosh at panasas.com
Thu May 6 10:33:48 CEST 2010


On 05/06/2010 09:09 AM, FUJITA Tomonori wrote:
> On Thu, 6 May 2010 15:44:44 +1000
> ronnie sahlberg <ronniesahlberg at gmail.com> wrote:
> 
>> tgtd --iscsi portal=:3251
>> to bind to INADDR_ANY
> 

OK, done (A patch to follow).

[Warning rant below]
Funny at current code the getaddrinfo() receives a zero length string as first
parameter. I would expect that a NULL string should have the same meaning as a
NULL pointer. What the hell: an: "if (p)" becomes an: "if (p && *p)". how hard
is that?

> Means that tgt accepts only v4?
> 
> If so, we might need something to accept all (v4 and v6)?
> 
>>
>> tgtd --iscsi portal=[::]:3251
>> to bind to IN6ADDR_ANY
>>
>> ?
> 
> btw, I don't think that the current 'portal' option code can handle
> ipv6 address. So patches are really welcome.
> 
> IIRC, we need a new feature to map targets to a portal, right? Then,
> we need more complicated portal option? Or using tgtadm for such
> configuration is simpler?

I'll leave the ipv6 and target stuff to some one more expert then me,
that can actually test it.

Boaz
--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html



More information about the stgt mailing list