iscsi-target: Refactor iscsit_get_np sockaddr matching into iscsit_check_np_match
authorNicholas Bellinger <nab@linux-iscsi.org>
Tue, 19 Feb 2013 04:59:27 +0000 (20:59 -0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Wed, 20 Feb 2013 01:58:04 +0000 (17:58 -0800)
commit05b9689245c1b2f0dea38c1cb4882810ce3adda8
treefcf82d7aad2b9772f7c70a0572f83441ddb04f72
parentfbbf8555a986ed31e54f006b6cc637ea4ff1425b
iscsi-target: Refactor iscsit_get_np sockaddr matching into iscsit_check_np_match

This patch refactors the sockaddr matching logic in iscsit_get_np() into
a seperate iscsit_check_np_match() that can be used by external code.

Tested-by: Andy Grover <agrover@redhat.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/iscsi/iscsi_target.c
drivers/target/iscsi/iscsi_target.h