]> git.hungrycats.org Git - linux/commitdiff
[LLC]: llc_lookup_listener has to consider the 'any' mac address
authorArnaldo Carvalho de Melo <acme@conectiva.com.br>
Wed, 29 Oct 2003 03:30:37 +0000 (19:30 -0800)
committerArnaldo Carvalho de Melo <acme@conectiva.com.br>
Wed, 29 Oct 2003 03:30:37 +0000 (19:30 -0800)
net/llc/llc_conn.c

index 0b4dffbf2824e20f803c7ae76d7cadca76c2f224..7b4edca182caa8b0fa08ecc2140bf776722f4079 100644 (file)
@@ -514,7 +514,8 @@ struct sock *llc_lookup_listener(struct llc_sap *sap, struct llc_addr *laddr)
 
                if (rc->sk_type == SOCK_STREAM && rc->sk_state == TCP_LISTEN &&
                    llc->laddr.lsap == laddr->lsap &&
-                   llc_mac_match(llc->laddr.mac, laddr->mac)) {
+                   (llc_mac_match(llc->laddr.mac, laddr->mac) ||
+                    llc_mac_null(llc->laddr.mac))) {
                        sock_hold(rc);
                        goto found;
                }