diff options
author | trasz <trasz@FreeBSD.org> | 2014-04-16 10:29:34 +0000 |
---|---|---|
committer | trasz <trasz@FreeBSD.org> | 2014-04-16 10:29:34 +0000 |
commit | 9f88148032ca16625893bf074fd0f1edd458d878 (patch) | |
tree | ada15b3b38699ce211d0d7e29931a5b87f97c2e1 /usr.sbin/ctld/ctld.h | |
parent | bc4e49eb8621bf764bdc8d39bef802a40fc85a8e (diff) | |
download | FreeBSD-src-9f88148032ca16625893bf074fd0f1edd458d878.zip FreeBSD-src-9f88148032ca16625893bf074fd0f1edd458d878.tar.gz |
Properly identify target portal when running in proxy mode. While here,
remove CTL_ISCSI_CLOSE, it wasn't used or implemented anyway.
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'usr.sbin/ctld/ctld.h')
-rw-r--r-- | usr.sbin/ctld/ctld.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/usr.sbin/ctld/ctld.h b/usr.sbin/ctld/ctld.h index ce161b6..be7be13 100644 --- a/usr.sbin/ctld/ctld.h +++ b/usr.sbin/ctld/ctld.h @@ -88,6 +88,9 @@ struct portal { bool p_iser; char *p_listen; struct addrinfo *p_ai; +#ifdef ICL_KERNEL_PROXY + int p_id; +#endif TAILQ_HEAD(, target) p_targets; int p_socket; @@ -146,6 +149,9 @@ struct conf { int conf_maxproc; uint16_t conf_last_portal_group_tag; +#ifdef ICL_KERNEL_PROXY + int conf_portal_id; +#endif struct pidfh *conf_pidfh; bool conf_default_pg_defined; @@ -265,8 +271,9 @@ void kernel_capsicate(void); /* * ICL_KERNEL_PROXY */ -void kernel_listen(struct addrinfo *ai, bool iser); -int kernel_accept(void); +void kernel_listen(struct addrinfo *ai, bool iser, + int portal_id); +void kernel_accept(int *connection_id, int *portal_id); void kernel_send(struct pdu *pdu); void kernel_receive(struct pdu *pdu); |