From: Nicholas Bellinger Date: Tue, 17 Jan 2012 07:33:48 +0000 (-0800) Subject: iscsi-target: Fix discovery with INADDR_ANY and IN6ADDR_ANY_INIT X-Git-Tag: v3.3-rc3~2^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2f9bc894c67dbacae5a6a9875818d2a18a918d18;p=pandora-kernel.git iscsi-target: Fix discovery with INADDR_ANY and IN6ADDR_ANY_INIT This patch addresses a bug with sendtargets discovery where INADDR_ANY (0.0.0.0) + IN6ADDR_ANY_INIT ([0:0:0:0:0:0:0:0]) network portals where incorrectly being reported back to initiators instead of the address of the connecting interface. To address this, save local socket ->getname() output during iscsi login setup, and makes iscsit_build_sendtargets_response() return these TargetAddress keys when INADDR_ANY or IN6ADDR_ANY_INIT portals are in use. Reported-by: Dax Kelson Reported-by: Andy Grover Cc: David S. Miller Cc: Signed-off-by: Nicholas Bellinger --- Reading git-diff-tree failed