summaryrefslogtreecommitdiff
path: root/usr/iscsi_util.h
diff options
context:
space:
mode:
authorMike Christie <michaelc@cs.wisc.edu>2013-12-05 18:12:32 -0600
committerMike Christie <michaelc@cs.wisc.edu>2013-12-22 22:00:12 -0600
commit1fa1b51356c0ea6e1d30f2d370b3b766d4230537 (patch)
treefdcd3ccece11b760f092b5977b579a880feaf8b7 /usr/iscsi_util.h
parent3b4b45001b6d8412aad76a55347de42d30d694f7 (diff)
downloadopen-iscsi-1fa1b51356c0ea6e1d30f2d370b3b766d4230537.tar.gz
iscsi tools: Bug fix on IPC address copy (version 2)
This patch merges Yufei Ren <yufei.ren@stonybrook.edu> patch with comments from the list plus what I think is a bug in the addr_len usage. For the addr_len use, it looks like we were using that as the arg to memcpy, but that value included the length of the pathname string and also the offset of sun_path in the sockaddr_un and so that is too long.
Diffstat (limited to 'usr/iscsi_util.h')
-rw-r--r--usr/iscsi_util.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/usr/iscsi_util.h b/usr/iscsi_util.h
index 110dfa8..ff725eb 100644
--- a/usr/iscsi_util.h
+++ b/usr/iscsi_util.h
@@ -26,4 +26,7 @@ extern int __iscsi_match_session(struct node_rec *rec, char *targetname,
extern char *strstrip(char *s);
extern char *cfg_get_string_param(char *pathname, const char *key);
+struct sockaddr_un;
+extern int setup_abstract_addr(struct sockaddr_un *addr, char *unix_sock_name);
+
#endif