aboutsummaryrefslogtreecommitdiffstats
path: root/net/llc/af_llc.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@mandriva.com>2005-09-22 02:56:26 -0400
committerArnaldo Carvalho de Melo <acme@mandriva.com>2005-09-22 02:56:26 -0400
commit5a770c0262262e96979fe05d5c2fa1d1f409dbdc (patch)
tree88d458a79c9db7f67df6336a5f7160e52a7e6e2d /net/llc/af_llc.c
parent774ccb4f64020dad40d38efa63685220e1f245cc (diff)
[LLC]: Update comments for llc_ui_bind and llc_ui_autobind to match new behaviour
Signed-off-by: Jochen Friedrich <jochen@scram.de> Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
Diffstat (limited to 'net/llc/af_llc.c')
-rw-r--r--net/llc/af_llc.c25
1 files changed, 7 insertions, 18 deletions
diff --git a/net/llc/af_llc.c b/net/llc/af_llc.c
index 2975d88eeb0a..81a53791ed9c 100644
--- a/net/llc/af_llc.c
+++ b/net/llc/af_llc.c
@@ -231,20 +231,13 @@ out:
231} 231}
232 232
233/** 233/**
234 * llc_ui_autobind - Bind a socket to a specific address. 234 * llc_ui_autobind - automatically bind a socket to a sap
235 * @sk: Socket to bind an address to. 235 * @sock: socket to bind
236 * @addr: Address the user wants the socket bound to. 236 * @addr: address to connect to
237 *
238 * Used by llc_ui_connect and llc_ui_sendmsg when the user hasn't
239 * specifically used llc_ui_bind to bind to an specific address/sap
237 * 240 *
238 * Bind a socket to a specific address. For llc a user is able to bind to
239 * a specific sap only or mac + sap. If the user only specifies a sap and
240 * a null dmac (all zeros) the user is attempting to bind to an entire
241 * sap. This will stop anyone else on the local system from using that
242 * sap. If someone else has a mac + sap open the bind to null + sap will
243 * fail.
244 * If the user desires to bind to a specific mac + sap, it is possible to
245 * have multiple sap connections via multiple macs.
246 * Bind and autobind for that matter must enforce the correct sap usage
247 * otherwise all hell will break loose.
248 * Returns: 0 upon success, negative otherwise. 241 * Returns: 0 upon success, negative otherwise.
249 */ 242 */
250static int llc_ui_autobind(struct socket *sock, struct sockaddr_llc *addr) 243static int llc_ui_autobind(struct socket *sock, struct sockaddr_llc *addr)
@@ -285,11 +278,7 @@ out:
285 * @addrlen: Length of the uaddr structure. 278 * @addrlen: Length of the uaddr structure.
286 * 279 *
287 * Bind a socket to a specific address. For llc a user is able to bind to 280 * Bind a socket to a specific address. For llc a user is able to bind to
288 * a specific sap only or mac + sap. If the user only specifies a sap and 281 * a specific sap only or mac + sap.
289 * a null dmac (all zeros) the user is attempting to bind to an entire
290 * sap. This will stop anyone else on the local system from using that
291 * sap. If someone else has a mac + sap open the bind to null + sap will
292 * fail.
293 * If the user desires to bind to a specific mac + sap, it is possible to 282 * If the user desires to bind to a specific mac + sap, it is possible to
294 * have multiple sap connections via multiple macs. 283 * have multiple sap connections via multiple macs.
295 * Bind and autobind for that matter must enforce the correct sap usage 284 * Bind and autobind for that matter must enforce the correct sap usage