-.\" $OpenBSD: iscsi.conf.5,v 1.1 2012/06/26 21:09:44 claudio Exp $
+.\" $OpenBSD: iscsi.conf.5,v 1.2 2014/04/21 17:33:20 claudio Exp $
.\"
.\" Copyright (c) 2012 Claudio Jeker <claudio@openbsd.org>
.\" Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: June 26 2012 $
+.Dd $Mdocdate: April 21 2014 $
.Dt ISCSI.CONF 5
.Os
.Sh NAME
.It Xo
.Ic initiatoraddr Ar addr
.Op Ic inet Ns | Ns Ic inet6
-.Op Ic port Ar num
.Xc
When
.Xr iscsid 8
-/* $OpenBSD: parse.y,v 1.4 2013/11/25 12:56:09 benno Exp $ */
+/* $OpenBSD: parse.y,v 1.5 2014/04/21 17:33:20 claudio Exp $ */
/*
* Copyright (c) 2010 David Gwynne <dlg@openbsd.org>
freeaddrinfo($2);
}
| INITIATORADDR addrinfo {
+ ((struct sockaddr_in *)$2->ai_addr)->sin_port = 0;
bcopy($2->ai_addr, &session->connection.LocalAddr,
$2->ai_addr->sa_len);
freeaddrinfo($2);