[LLC]: Update comments for llc_ui_bind and llc_ui_autobind to match new behaviour

Signed-off-by: NJochen Friedrich <jochen@scram.de>
Signed-off-by: NArnaldo Carvalho de Melo <acme@mandriva.com>
上级 774ccb4f
...@@ -231,20 +231,13 @@ static int llc_ui_autoport(void) ...@@ -231,20 +231,13 @@ static int llc_ui_autoport(void)
} }
/** /**
* llc_ui_autobind - Bind a socket to a specific address. * llc_ui_autobind - automatically bind a socket to a sap
* @sk: Socket to bind an address to. * @sock: socket to bind
* @addr: Address the user wants the socket bound to. * @addr: address to connect to
*
* Used by llc_ui_connect and llc_ui_sendmsg when the user hasn't
* specifically used llc_ui_bind to bind to an specific address/sap
* *
* Bind a socket to a specific address. For llc a user is able to bind to
* a specific sap only or mac + sap. If the user only specifies a sap and
* a null dmac (all zeros) the user is attempting to bind to an entire
* sap. This will stop anyone else on the local system from using that
* sap. If someone else has a mac + sap open the bind to null + sap will
* fail.
* If the user desires to bind to a specific mac + sap, it is possible to
* have multiple sap connections via multiple macs.
* Bind and autobind for that matter must enforce the correct sap usage
* otherwise all hell will break loose.
* Returns: 0 upon success, negative otherwise. * Returns: 0 upon success, negative otherwise.
*/ */
static int llc_ui_autobind(struct socket *sock, struct sockaddr_llc *addr) static int llc_ui_autobind(struct socket *sock, struct sockaddr_llc *addr)
...@@ -285,11 +278,7 @@ static int llc_ui_autobind(struct socket *sock, struct sockaddr_llc *addr) ...@@ -285,11 +278,7 @@ static int llc_ui_autobind(struct socket *sock, struct sockaddr_llc *addr)
* @addrlen: Length of the uaddr structure. * @addrlen: Length of the uaddr structure.
* *
* Bind a socket to a specific address. For llc a user is able to bind to * Bind a socket to a specific address. For llc a user is able to bind to
* a specific sap only or mac + sap. If the user only specifies a sap and * a specific sap only or mac + sap.
* a null dmac (all zeros) the user is attempting to bind to an entire
* sap. This will stop anyone else on the local system from using that
* sap. If someone else has a mac + sap open the bind to null + sap will
* fail.
* If the user desires to bind to a specific mac + sap, it is possible to * If the user desires to bind to a specific mac + sap, it is possible to
* have multiple sap connections via multiple macs. * have multiple sap connections via multiple macs.
* Bind and autobind for that matter must enforce the correct sap usage * Bind and autobind for that matter must enforce the correct sap usage
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册