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

ronnie sahlberg ronniesahlberg at gmail.com
Thu May 6 07:44:44 CEST 2010


tgtd --iscsi portal=:3251
to bind to INADDR_ANY

and

tgtd --iscsi portal=[::]:3251
to bind to IN6ADDR_ANY

?


On Thu, May 6, 2010 at 1:00 PM, FUJITA Tomonori
<fujita.tomonori at lab.ntt.co.jp> wrote:
> Sorry for the late response, I had been offline for some time.
>
> On Sun, 02 May 2010 18:04:01 +0300
> Boaz Harrosh <bharrosh at panasas.com> wrote:
>
>> Let the "ANY" keyword designate an INADDR_ANY/IN6ADDR_ANY_INIT when
>> specifying the --iscsi portal=XXX command option to the iscsi_tcp protocol
>> driver. (.i.e pass NULL as the first parameter to getaddrinfo());
>>
>> This makes it easy to change just the port service number but
>> keep tgtd bind on all interfaces. It is useful when the ISCSI
>> default port is used by another demon and we want tgtd to export
>> an alternative iscsi-target.
>>
>> example usage:
>>       tgtd --iscsi portal=ANY:3251
>
> Adding the feature to specify only the port is fine by me. But I
> wonder why we can't simply do something like:
>
> tgtd --iscsi portal=:3251
>
> ?
> --
> 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
>
--
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