From owner-freebsd-net@FreeBSD.ORG Sun Dec 4 00:23:04 2011 Return-Path: Delivered-To: freebsd-net@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 16DF8106564A; Sun, 4 Dec 2011 00:23:04 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id E2EC78FC1A; Sun, 4 Dec 2011 00:23:03 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id pB40N37U085953; Sun, 4 Dec 2011 00:23:03 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id pB40N3nL085949; Sun, 4 Dec 2011 00:23:03 GMT (envelope-from linimon) Date: Sun, 4 Dec 2011 00:23:03 GMT Message-Id: <201112040023.pB40N3nL085949@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-net@FreeBSD.org, zec@FreeBSD.org From: linimon@FreeBSD.org Cc: Subject: Re: kern/162201: [ip] [patch] multicast forwarding cache hash always allocated with size 0, resulting in buffer overrun X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Dec 2011 00:23:04 -0000 Synopsis: [ip] [patch] multicast forwarding cache hash always allocated with size 0, resulting in buffer overrun Responsible-Changed-From-To: freebsd-net->zec Responsible-Changed-By: linimon Responsible-Changed-When: Sun Dec 4 00:22:32 UTC 2011 Responsible-Changed-Why: Marko expressed an interest during the audit-trail. http://www.freebsd.org/cgi/query-pr.cgi?pr=162201 From owner-freebsd-net@FreeBSD.ORG Sun Dec 4 02:42:42 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 026F61065672 for ; Sun, 4 Dec 2011 02:42:42 +0000 (UTC) (envelope-from yilinjing2006@gmail.com) Received: from sam.nabble.com (sam.nabble.com [216.139.236.26]) by mx1.freebsd.org (Postfix) with ESMTP id CF4478FC19 for ; Sun, 4 Dec 2011 02:42:41 +0000 (UTC) Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1RX22L-00064u-9h for freebsd-net@freebsd.org; Sat, 03 Dec 2011 18:42:41 -0800 Date: Sat, 3 Dec 2011 18:42:41 -0800 (PST) From: jyl_2006 To: freebsd-net@freebsd.org Message-ID: <1322966561294-5045598.post@n5.nabble.com> In-Reply-To: <76108404-D722-48D0-AAAA-F35B77F5CFCF@lurchi.franken.de> References: <1322834879026-5041952.post@n5.nabble.com> <0D6FA7F2-1462-44EF-98F4-3B6AFC856757@lurchi.franken.de> <1322888085250-5043901.post@n5.nabble.com> <1322919283456-5044536.post@n5.nabble.com> <76108404-D722-48D0-AAAA-F35B77F5CFCF@lurchi.franken.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: the return value of sctp_connectx do not match any error X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Dec 2011 02:42:42 -0000 Sorry.The return value is -1, that means sctp_getladdrs() and sctp_getpaddrs() encounter an error. And the errno is set to ENOMEM. -- View this message in context: http://freebsd.1045724.n5.nabble.com/the-return-value-of-sctp-connectx-do-not-match-any-error-tp5041952p5045598.html Sent from the freebsd-net mailing list archive at Nabble.com. From owner-freebsd-net@FreeBSD.ORG Sun Dec 4 06:44:32 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C1C4B106566B for ; Sun, 4 Dec 2011 06:44:32 +0000 (UTC) (envelope-from ptyll@nitronet.pl) Received: from mail.nitronet.pl (smtp.nitronet.pl [195.90.106.27]) by mx1.freebsd.org (Postfix) with ESMTP id 7B3828FC13 for ; Sun, 4 Dec 2011 06:44:32 +0000 (UTC) Received: from mailnull by mail.nitronet.pl with virscan (Exim 4.76 (FreeBSD)) (envelope-from ) id 1RX501-000DZf-H4 for freebsd-net@freebsd.org; Sun, 04 Dec 2011 06:52:29 +0100 Date: Sun, 4 Dec 2011 06:52:21 +0100 From: Pawel Tyll X-Priority: 3 (Normal) Message-ID: <307826129.20111204065221@nitronet.pl> To: freebsd-net@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: Nitronet.pl X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: ptyll@nitronet.pl X-SA-Exim-Scanned: No (on mail.nitronet.pl); SAEximRunCond expanded to false Subject: VLAN and LLADDR. X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Dec 2011 06:44:32 -0000 Hi list, Having a different MAC address on vlan interface and parent interface requires enabling promiscuous mode. Is this a bug, or is it working as intended? Will leaving promiscuous mode enabled indefinitely hurt performance on gigabit em interface? From owner-freebsd-net@FreeBSD.ORG Sun Dec 4 07:30:55 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E98261065673 for ; Sun, 4 Dec 2011 07:30:55 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id AA7648FC0C for ; Sun, 4 Dec 2011 07:30:55 +0000 (UTC) Received: by vbbfr13 with SMTP id fr13so5197020vbb.13 for ; Sat, 03 Dec 2011 23:30:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=HtUPmHLOfg5XwxndEvYLf0cg0kiVn54aoY/VXUXVGXo=; b=Cn8eSnW3IwzxwlfRZ1Mt9fZBIH6KgvErzm2Gw84B5M5AXYJQfJnr2ocqZmSDqHbCPv lPOhURABaamoo72D7834jSAqbv3EcB35oouYcDEsyrOE49XspGfD8UKPz8YkDW4+gjSS hvCIvXrZVehpij+HoVGCD0qkaPlLXhqR4VaHw= MIME-Version: 1.0 Received: by 10.52.94.227 with SMTP id df3mr2670485vdb.51.1322983854870; Sat, 03 Dec 2011 23:30:54 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.52.109.10 with HTTP; Sat, 3 Dec 2011 23:30:54 -0800 (PST) In-Reply-To: <307826129.20111204065221@nitronet.pl> References: <307826129.20111204065221@nitronet.pl> Date: Sun, 4 Dec 2011 15:30:54 +0800 X-Google-Sender-Auth: _ZLhtBEg7d5Y2f2GL-JzITlUYwc Message-ID: From: Adrian Chadd To: Pawel Tyll Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-net@freebsd.org Subject: Re: VLAN and LLADDR. X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Dec 2011 07:30:56 -0000 On 4 December 2011 13:52, Pawel Tyll wrote: > Hi list, > > Having =A0a different MAC address on vlan interface and parent interface > requires enabling promiscuous mode. Is this a bug, or is it working as > intended? =A0Will =A0leaving =A0promiscuous =A0mode =A0enabled indefinite= ly hurt > performance on gigabit em interface? Hm, that's an interesting issue. How about writing a PR about it? You may find some hardware lets you program in a unicast filter or a set of local mac addresses, instead of a single station address. (I know I can do this with my atheros wifi nics, for example.) Adrian From owner-freebsd-net@FreeBSD.ORG Sun Dec 4 09:11:53 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C63D9106564A for ; Sun, 4 Dec 2011 09:11:53 +0000 (UTC) (envelope-from Michael.Tuexen@lurchi.franken.de) Received: from mail-n.franken.de (drew.ipv6.franken.de [IPv6:2001:638:a02:a001:20e:cff:fe4a:feaa]) by mx1.freebsd.org (Postfix) with ESMTP id AD8E18FC15 for ; Sun, 4 Dec 2011 09:11:52 +0000 (UTC) Received: from [192.168.1.200] (p508FBF8C.dip.t-dialin.net [80.143.191.140]) (Authenticated sender: macmic) by mail-n.franken.de (Postfix) with ESMTP id BB6FD1C0C0BD8; Sun, 4 Dec 2011 10:11:50 +0100 (CET) Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset=us-ascii From: =?iso-8859-1?Q?Michael_T=FCxen?= In-Reply-To: <1322966561294-5045598.post@n5.nabble.com> Date: Sun, 4 Dec 2011 10:11:46 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: References: <1322834879026-5041952.post@n5.nabble.com> <0D6FA7F2-1462-44EF-98F4-3B6AFC856757@lurchi.franken.de> <1322888085250-5043901.post@n5.nabble.com> <1322919283456-5044536.post@n5.nabble.com> <76108404-D722-48D0-AAAA-F35B77F5CFCF@lurchi.franken.de> <1322966561294-5045598.post@n5.nabble.com> To: jyl_2006 X-Mailer: Apple Mail (2.1251.1) Cc: freebsd-net@freebsd.org Subject: Re: the return value of sctp_connectx do not match any error X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Dec 2011 09:11:53 -0000 On Dec 4, 2011, at 3:42 AM, jyl_2006 wrote: > Sorry.The return value is -1, that means sctp_getladdrs() and > sctp_getpaddrs() encounter an error. And the errno is set to ENOMEM. Can you provide a test program showing this? I changed your client and this works on a FreeBSD head system. Does it = fail on your? Best regards Michael #include #include #include #include #include #include #include #define PORT 63000 int main() { int _sctp_socket, ret; sctp_assoc_t _sctp_associd; struct sockaddr *show_ip_address =3D NULL; _sctp_socket =3D socket( AF_INET , SOCK_SEQPACKET , IPPROTO_SCTP = ); struct sockaddr_in server_ipaddress; server_ipaddress . sin_family =3D AF_INET; server_ipaddress . sin_port =3D htons(PORT); server_ipaddress . sin_len =3D sizeof(struct sockaddr_in); server_ipaddress . sin_addr.s_addr =3D inet_addr("127.0.0.1"); ret =3D sctp_connectx(_sctp_socket , (struct sockaddr*) = &server_ipaddress , 1, &_sctp_associd); if( ret < 0) { printf("sctp_connectx error"); } ret =3D sctp_getladdrs(_sctp_socket, _sctp_associd, = &show_ip_address); printf("sctp_getladdrs() returned %d.\n", ret); if (ret > 0) { sctp_freeladdrs(show_ip_address); } } >=20 > -- > View this message in context: = http://freebsd.1045724.n5.nabble.com/the-return-value-of-sctp-connectx-do-= not-match-any-error-tp5041952p5045598.html > Sent from the freebsd-net mailing list archive at Nabble.com. > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" >=20 From owner-freebsd-net@FreeBSD.ORG Sun Dec 4 12:01:13 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 21B771065705 for ; Sun, 4 Dec 2011 12:01:13 +0000 (UTC) (envelope-from yilinjing2006@gmail.com) Received: from sam.nabble.com (sam.nabble.com [216.139.236.26]) by mx1.freebsd.org (Postfix) with ESMTP id ED99B8FC1F for ; Sun, 4 Dec 2011 12:01:12 +0000 (UTC) Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1RXAkq-0007RK-6e for freebsd-net@freebsd.org; Sun, 04 Dec 2011 04:01:12 -0800 Date: Sun, 4 Dec 2011 04:01:12 -0800 (PST) From: jyl_2006 To: freebsd-net@freebsd.org Message-ID: <1323000072198-5046113.post@n5.nabble.com> In-Reply-To: References: <1322834879026-5041952.post@n5.nabble.com> <0D6FA7F2-1462-44EF-98F4-3B6AFC856757@lurchi.franken.de> <1322888085250-5043901.post@n5.nabble.com> <1322919283456-5044536.post@n5.nabble.com> <76108404-D722-48D0-AAAA-F35B77F5CFCF@lurchi.franken.de> <1322966561294-5045598.post@n5.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: the return value of sctp_connectx do not match any error X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Dec 2011 12:01:13 -0000 I change the code , and the return value of sctp_getladdrs() is still -1, and the errno is "ENOMEM". My operating system is FreeBSD 9.0 Beta2. Thanks. -- View this message in context: http://freebsd.1045724.n5.nabble.com/the-return-value-of-sctp-connectx-do-not-match-any-error-tp5041952p5046113.html Sent from the freebsd-net mailing list archive at Nabble.com. From owner-freebsd-net@FreeBSD.ORG Sun Dec 4 12:28:55 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 932BF106564A for ; Sun, 4 Dec 2011 12:28:55 +0000 (UTC) (envelope-from Michael.Tuexen@lurchi.franken.de) Received: from mail-n.franken.de (drew.ipv6.franken.de [IPv6:2001:638:a02:a001:20e:cff:fe4a:feaa]) by mx1.freebsd.org (Postfix) with ESMTP id 2199C8FC18 for ; Sun, 4 Dec 2011 12:28:55 +0000 (UTC) Received: from [192.168.1.200] (p508FBF8C.dip.t-dialin.net [80.143.191.140]) (Authenticated sender: macmic) by mail-n.franken.de (Postfix) with ESMTP id 3ACAB1C0C0BD8; Sun, 4 Dec 2011 13:28:53 +0100 (CET) Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset=us-ascii From: =?iso-8859-1?Q?Michael_T=FCxen?= In-Reply-To: <1323000072198-5046113.post@n5.nabble.com> Date: Sun, 4 Dec 2011 13:28:52 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: References: <1322834879026-5041952.post@n5.nabble.com> <0D6FA7F2-1462-44EF-98F4-3B6AFC856757@lurchi.franken.de> <1322888085250-5043901.post@n5.nabble.com> <1322919283456-5044536.post@n5.nabble.com> <76108404-D722-48D0-AAAA-F35B77F5CFCF@lurchi.franken.de> <1322966561294-5045598.post@n5.nabble.com> <1323000072198-5046113.post@n5.nabble.com> To: jyl_2006 X-Mailer: Apple Mail (2.1251.1) Cc: freebsd-net@freebsd.org Subject: Re: the return value of sctp_connectx do not match any error X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Dec 2011 12:28:55 -0000 On Dec 4, 2011, at 1:01 PM, jyl_2006 wrote: > I change the code , and the return value of sctp_getladdrs() is still = -1, and > the errno is "ENOMEM". What does "change the code" mean? Are you saying that the program I sent = does not work? If my program does work, can you send me your program which = doesn't? Best regards Michael >=20 > My operating system is FreeBSD 9.0 Beta2. >=20 > Thanks. >=20 > -- > View this message in context: = http://freebsd.1045724.n5.nabble.com/the-return-value-of-sctp-connectx-do-= not-match-any-error-tp5041952p5046113.html > Sent from the freebsd-net mailing list archive at Nabble.com. > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" >=20 From owner-freebsd-net@FreeBSD.ORG Sun Dec 4 12:30:48 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BB6901065675 for ; Sun, 4 Dec 2011 12:30:48 +0000 (UTC) (envelope-from yilinjing2006@gmail.com) Received: from sam.nabble.com (sam.nabble.com [216.139.236.26]) by mx1.freebsd.org (Postfix) with ESMTP id 914F98FC12 for ; Sun, 4 Dec 2011 12:30:48 +0000 (UTC) Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1RXBDT-0002ty-Rh for freebsd-net@freebsd.org; Sun, 04 Dec 2011 04:30:47 -0800 Date: Sun, 4 Dec 2011 04:30:47 -0800 (PST) From: jyl_2006 To: freebsd-net@freebsd.org Message-ID: <1323001847851-5046165.post@n5.nabble.com> In-Reply-To: References: <1322834879026-5041952.post@n5.nabble.com> <0D6FA7F2-1462-44EF-98F4-3B6AFC856757@lurchi.franken.de> <1322888085250-5043901.post@n5.nabble.com> <1322919283456-5044536.post@n5.nabble.com> <76108404-D722-48D0-AAAA-F35B77F5CFCF@lurchi.franken.de> <1322966561294-5045598.post@n5.nabble.com> <1323000072198-5046113.post@n5.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: the return value of sctp_connectx do not match any error X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Dec 2011 12:30:48 -0000 Yes, I mean the program you send does not work. -- View this message in context: http://freebsd.1045724.n5.nabble.com/the-return-value-of-sctp-connectx-do-not-match-any-error-tp5041952p5046165.html Sent from the freebsd-net mailing list archive at Nabble.com. From owner-freebsd-net@FreeBSD.ORG Sun Dec 4 12:56:09 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EFA2F1065676 for ; Sun, 4 Dec 2011 12:56:09 +0000 (UTC) (envelope-from Michael.Tuexen@lurchi.franken.de) Received: from mail-n.franken.de (drew.ipv6.franken.de [IPv6:2001:638:a02:a001:20e:cff:fe4a:feaa]) by mx1.freebsd.org (Postfix) with ESMTP id 79C7A8FC0C for ; Sun, 4 Dec 2011 12:56:09 +0000 (UTC) Received: from [192.168.1.200] (p508FBF8C.dip.t-dialin.net [80.143.191.140]) (Authenticated sender: macmic) by mail-n.franken.de (Postfix) with ESMTP id 8D2BF1C0C0BD8; Sun, 4 Dec 2011 13:56:08 +0100 (CET) Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset=us-ascii From: =?iso-8859-1?Q?Michael_T=FCxen?= In-Reply-To: <1323001847851-5046165.post@n5.nabble.com> Date: Sun, 4 Dec 2011 13:56:07 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <3E25BC69-1FC8-487E-BBAD-8BAF2552623B@lurchi.franken.de> References: <1322834879026-5041952.post@n5.nabble.com> <0D6FA7F2-1462-44EF-98F4-3B6AFC856757@lurchi.franken.de> <1322888085250-5043901.post@n5.nabble.com> <1322919283456-5044536.post@n5.nabble.com> <76108404-D722-48D0-AAAA-F35B77F5CFCF@lurchi.franken.de> <1322966561294-5045598.post@n5.nabble.com> <1323000072198-5046113.post@n5.nabble.com> <1323001847851-5046165.post@n5.nabble.com> To: jyl_2006 X-Mailer: Apple Mail (2.1251.1) Cc: freebsd-net@freebsd.org Subject: Re: the return value of sctp_connectx do not match any error X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Dec 2011 12:56:10 -0000 On Dec 4, 2011, at 1:30 PM, jyl_2006 wrote: > Yes, I mean the program you send does not work. OK, let me test... Do you have IPv4 addresses configured on your system? Best regards Michael >=20 > -- > View this message in context: = http://freebsd.1045724.n5.nabble.com/the-return-value-of-sctp-connectx-do-= not-match-any-error-tp5041952p5046165.html > Sent from the freebsd-net mailing list archive at Nabble.com. > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" >=20 From owner-freebsd-net@FreeBSD.ORG Sun Dec 4 13:14:49 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F28B4106564A for ; Sun, 4 Dec 2011 13:14:49 +0000 (UTC) (envelope-from yilinjing2006@gmail.com) Received: from sam.nabble.com (sam.nabble.com [216.139.236.26]) by mx1.freebsd.org (Postfix) with ESMTP id C89B58FC0A for ; Sun, 4 Dec 2011 13:14:49 +0000 (UTC) Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1RXBu5-0006Yb-0A for freebsd-net@freebsd.org; Sun, 04 Dec 2011 05:14:49 -0800 Date: Sun, 4 Dec 2011 05:14:48 -0800 (PST) From: jyl_2006 To: freebsd-net@freebsd.org Message-ID: <1323004488998-5046216.post@n5.nabble.com> In-Reply-To: <3E25BC69-1FC8-487E-BBAD-8BAF2552623B@lurchi.franken.de> References: <1322888085250-5043901.post@n5.nabble.com> <1322919283456-5044536.post@n5.nabble.com> <76108404-D722-48D0-AAAA-F35B77F5CFCF@lurchi.franken.de> <1322966561294-5045598.post@n5.nabble.com> <1323000072198-5046113.post@n5.nabble.com> <1323001847851-5046165.post@n5.nabble.com> <3E25BC69-1FC8-487E-BBAD-8BAF2552623B@lurchi.franken.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: the return value of sctp_connectx do not match any error X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Dec 2011 13:14:50 -0000 Yes, besides "127.0.0.1" , I also test between two computer, each one have ip address of wlan.The question still remains. -- View this message in context: http://freebsd.1045724.n5.nabble.com/the-return-value-of-sctp-connectx-do-not-match-any-error-tp5041952p5046216.html Sent from the freebsd-net mailing list archive at Nabble.com. From owner-freebsd-net@FreeBSD.ORG Sun Dec 4 13:23:38 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 36BD8106564A for ; Sun, 4 Dec 2011 13:23:38 +0000 (UTC) (envelope-from Michael.Tuexen@lurchi.franken.de) Received: from mail-n.franken.de (drew.ipv6.franken.de [IPv6:2001:638:a02:a001:20e:cff:fe4a:feaa]) by mx1.freebsd.org (Postfix) with ESMTP id BADB38FC0A for ; Sun, 4 Dec 2011 13:23:37 +0000 (UTC) Received: from [192.168.1.200] (p508FBF8C.dip.t-dialin.net [80.143.191.140]) (Authenticated sender: macmic) by mail-n.franken.de (Postfix) with ESMTP id 5FFE31C0C0BD8; Sun, 4 Dec 2011 14:23:36 +0100 (CET) Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset=us-ascii From: =?iso-8859-1?Q?Michael_T=FCxen?= In-Reply-To: <1323004488998-5046216.post@n5.nabble.com> Date: Sun, 4 Dec 2011 14:23:34 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <9B0D44B9-4181-47DB-889D-19A1FA409808@lurchi.franken.de> References: <1322888085250-5043901.post@n5.nabble.com> <1322919283456-5044536.post@n5.nabble.com> <76108404-D722-48D0-AAAA-F35B77F5CFCF@lurchi.franken.de> <1322966561294-5045598.post@n5.nabble.com> <1323000072198-5046113.post@n5.nabble.com> <1323001847851-5046165.post@n5.nabble.com> <3E25BC69-1FC8-487E-BBAD-8BAF2552623B@lurchi.franken.de> <1323004488998-5046216.post@n5.nabble.com> To: jyl_2006 X-Mailer: Apple Mail (2.1251.1) Cc: freebsd-net@freebsd.org Subject: Re: the return value of sctp_connectx do not match any error X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Dec 2011 13:23:38 -0000 On Dec 4, 2011, at 2:14 PM, jyl_2006 wrote: > Yes, besides "127.0.0.1" , I also test between two computer, each one = have ip > address of wlan.The question still remains. I'm downloading a RC2 image and will use the programs to try to = reproduce the problem. Are you running an amd64 or an i386 kernel (I did testing with = amd64...)? best regards Michael >=20 > -- > View this message in context: = http://freebsd.1045724.n5.nabble.com/the-return-value-of-sctp-connectx-do-= not-match-any-error-tp5041952p5046216.html > Sent from the freebsd-net mailing list archive at Nabble.com. > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" >=20 From owner-freebsd-net@FreeBSD.ORG Sun Dec 4 14:59:13 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8F3A6106564A for ; Sun, 4 Dec 2011 14:59:13 +0000 (UTC) (envelope-from samuel.remoue@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 61E018FC0C for ; Sun, 4 Dec 2011 14:59:13 +0000 (UTC) Received: by iafi7 with SMTP id i7so2273623iaf.13 for ; Sun, 04 Dec 2011 06:59:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=QB6kCGt59u4wNc6HZq+EfvpgtS47vcnlfxkE/DTYjQk=; b=XKBu4+3Exz+BWYRWxienuYfEl1XWZa+DWrH9twO/I3jx9Ob16To2d14ozTij4vgqr+ uFC5vZ1LJtv3k4BcaVGBsU1nsXJ6/rbTb7V/1zHsIz13S72Ip80lGkTnTAn6d1Anp6J+ kBl9Jx7HRXwV1/cq+7NurM6/eoqF5cW9rxE+c= MIME-Version: 1.0 Received: by 10.50.197.167 with SMTP id iv7mr6314481igc.46.1323009385608; Sun, 04 Dec 2011 06:36:25 -0800 (PST) Received: by 10.42.224.194 with HTTP; Sun, 4 Dec 2011 06:36:25 -0800 (PST) Date: Sun, 4 Dec 2011 15:36:25 +0100 Message-ID: From: Samuel REMOUE To: freebsd-net@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: Card PCIe NC375T not recognized X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Dec 2011 14:59:13 -0000 (Sorry for my english) Hello, I'm new on FreeBSD OS and am trying to deploy servers. I have a concern: HP NC375T NIC (HP NC375T PCI Express Quad Port Gigabit Server Adapter) is not recognized, the drivers from HP are available here (http://h20000.www2.hp.com/bizsupport/TechSupport/DriverDownload.jsp?prodNameId=4038767&lang=fr&cc=fr&prodTypeId=329290&prodSeriesId=4038765&taskId=135). This is a QLogic / NetXen NX3031-based card. If possible, can someone give me the steps to follow to integrate drivers that are suitable into my install ? Thank you in advance. -- Samuel REMOUE From owner-freebsd-net@FreeBSD.ORG Sun Dec 4 16:15:14 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 109D2106566C for ; Sun, 4 Dec 2011 16:15:14 +0000 (UTC) (envelope-from Michael.Tuexen@lurchi.franken.de) Received: from mail-n.franken.de (drew.ipv6.franken.de [IPv6:2001:638:a02:a001:20e:cff:fe4a:feaa]) by mx1.freebsd.org (Postfix) with ESMTP id 6ADB78FC15 for ; Sun, 4 Dec 2011 16:15:13 +0000 (UTC) Received: from [192.168.1.200] (p508FBF8C.dip.t-dialin.net [80.143.191.140]) (Authenticated sender: macmic) by mail-n.franken.de (Postfix) with ESMTP id 75F221C0C0BD8; Sun, 4 Dec 2011 17:15:11 +0100 (CET) Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset=us-ascii From: =?iso-8859-1?Q?Michael_T=FCxen?= In-Reply-To: <1323004488998-5046216.post@n5.nabble.com> Date: Sun, 4 Dec 2011 17:15:10 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: References: <1322888085250-5043901.post@n5.nabble.com> <1322919283456-5044536.post@n5.nabble.com> <76108404-D722-48D0-AAAA-F35B77F5CFCF@lurchi.franken.de> <1322966561294-5045598.post@n5.nabble.com> <1323000072198-5046113.post@n5.nabble.com> <1323001847851-5046165.post@n5.nabble.com> <3E25BC69-1FC8-487E-BBAD-8BAF2552623B@lurchi.franken.de> <1323004488998-5046216.post@n5.nabble.com> To: jyl_2006 X-Mailer: Apple Mail (2.1251.1) Cc: freebsd-net@freebsd.org Subject: Re: the return value of sctp_connectx do not match any error X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Dec 2011 16:15:14 -0000 On Dec 4, 2011, at 2:14 PM, jyl_2006 wrote: > Yes, besides "127.0.0.1" , I also test between two computer, each one = have ip > address of wlan.The question still remains. OK, I have tested RC2 i386 and it works. I don't have a Beta 2 system... I have no idea what the problem might be... What does the following = program report? Best regards Michael #include #include #include #include #include #include #include #include #define PORT 63000 int main() { int _sctp_socket, ret; sctp_assoc_t _sctp_associd; struct sockaddr *show_ip_address =3D NULL; int size_of_addresses; socklen_t siz; struct sctp_getaddresses *addrs; _sctp_socket =3D socket( AF_INET , SOCK_SEQPACKET , IPPROTO_SCTP = ); struct sockaddr_in server_ipaddress; server_ipaddress . sin_family =3D AF_INET; server_ipaddress . sin_port =3D htons(PORT); server_ipaddress . sin_len =3D sizeof(struct sockaddr_in); server_ipaddress . sin_addr.s_addr =3D inet_addr("127.0.0.1"); ret =3D sctp_connectx(_sctp_socket , (struct sockaddr*) = &server_ipaddress , 1, &_sctp_associd); if( ret < 0) { printf("sctp_connectx error"); } size_of_addresses =3D 0; siz =3D sizeof(int); if (getsockopt(_sctp_socket, IPPROTO_SCTP, = SCTP_GET_LOCAL_ADDR_SIZE, &size_of_addresses, &siz) !=3D 0) { perror("SCTP_GET_LOCAL_ADDR_SIZE");=09 return (-1); } printf("size_of_addresses =3D %d.\n", size_of_addresses); siz =3D size_of_addresses + sizeof(struct sockaddr_storage); siz +=3D sizeof(struct sctp_getaddresses); addrs =3D calloc(1, siz); addrs->sget_assoc_id =3D _sctp_associd; if (getsockopt(_sctp_socket, IPPROTO_SCTP, = SCTP_GET_LOCAL_ADDRESSES, addrs, &siz) !=3D 0) { perror("SCTP_GET_LOCAL_ADDRESSES"); return (-1); } printf("siz =3D %u.\n", siz); free(addrs); return (0); } >=20 > -- > View this message in context: = http://freebsd.1045724.n5.nabble.com/the-return-value-of-sctp-connectx-do-= not-match-any-error-tp5041952p5046216.html > Sent from the freebsd-net mailing list archive at Nabble.com. > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" >=20 From owner-freebsd-net@FreeBSD.ORG Sun Dec 4 17:33:02 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E48BC106566B for ; Sun, 4 Dec 2011 17:33:02 +0000 (UTC) (envelope-from sodynet1@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id B333D8FC13 for ; Sun, 4 Dec 2011 17:33:02 +0000 (UTC) Received: by iafi7 with SMTP id i7so2488837iaf.13 for ; Sun, 04 Dec 2011 09:33:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=OFldRo0VLP7Z2//BhFTZMz+CoXnEO27PdQ9W1le8fHs=; b=YtDhmbQhFpT1ag+8xMkG4he4T3jXoxyiO2DFbGA67OPm6dXlM38vc8xOdwmwSW8uux WTHUDfd6Ntt0wc9kaf9CxjXMhKyxaSNHsVQCkcCCgOBibe1n6W3cG0SVXgsgAObGnWr+ kzIP+XsqhW4781J+pGK4OcOHeuW9/EvGs85+E= MIME-Version: 1.0 Received: by 10.50.40.135 with SMTP id x7mr6828591igk.48.1323019981925; Sun, 04 Dec 2011 09:33:01 -0800 (PST) Received: by 10.231.19.72 with HTTP; Sun, 4 Dec 2011 09:33:01 -0800 (PST) Date: Sun, 4 Dec 2011 19:33:01 +0200 Message-ID: From: Sami Halabi To: freebsd-net@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Problem on re0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Dec 2011 17:33:03 -0000 Hi, I have a desktop on which being used as a MPD server. the server isn't that loaded, and the cpu is highly idel 90-92% of the time. My problem is in the network card connected to the cables provider. in a random manner ot stops working whith no notice, and all l2tp/pptp users disconnect, also the provider side stops answering my pings until i ifconfig down the card and ifconfig up it gain. As a work around i wrote a script that does ping every 2 minutes and if the ping timesout it do: ifconfig re0 down sleep 1 ifconfig re0 up mail me about it I had FBSD-8.1-R and upgraded yesterday to FBSD-8.2-p4, and did freebsd-update fetch/install. but the problem persists, i got already 4 emails since the upgrade (and didn't pass yet the 24 hours). here is the plot of lspci: 01:06.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8169 Gigabit Ethernet (rev 10) 01:07.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8169 Gigabit Ethernet (rev 10) (the 2nd driver isn't used, and no cable connected). # ifconfig -m re0 re0: flags=8843 metric 0 mtu 1500 options=389b capabilities=439db ether 00:a1:b0:69:15:5d inet 1.2.3.5 netmask 0xfffffffc broadcast 1.2.3.7 media: Ethernet autoselect (1000baseT ) status: active supported media: media autoselect mediaopt flowcontrol media autoselect media 1000baseT mediaopt full-duplex,flowcontrol,master media 1000baseT mediaopt full-duplex,flowcontrol media 1000baseT mediaopt full-duplex,master media 1000baseT mediaopt full-duplex media 1000baseT mediaopt master media 1000baseT media 100baseTX mediaopt full-duplex,flowcontrol media 100baseTX mediaopt full-duplex media 100baseTX media 10baseT/UTP mediaopt full-duplex,flowcontrol media 10baseT/UTP mediaopt full-duplex media 10baseT/UTP media none # netstat -aib | grep -v ng|grep -v "all\-sys" Name Mtu Network Address Ipkts Ierrs Idrop Ibytes Opkts Oerrs Obytes Coll re0 1500 00:a1:b0:69:15:5d 147089824 126 0 46718527073 206253261 0 154140535336 0 01:00:5e:00:00:01 139 0 re0 1500 1.2.3.3/30 1.2.3.5 435 - - 35076 206240451 - 151252235756 - re1* 1500 00:a1:b0:69:76:28 0 0 0 0 0 0 0 0 Please help me debug and fix this issue... -- Sami Halabi Information Systems Engineer NMS Projects Expert From owner-freebsd-net@FreeBSD.ORG Sun Dec 4 17:48:41 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 537F4106566C for ; Sun, 4 Dec 2011 17:48:41 +0000 (UTC) (envelope-from universite@ukr.net) Received: from otrada.od.ua (universite-1-pt.tunnel.tserv24.sto1.ipv6.he.net [IPv6:2001:470:27:140::2]) by mx1.freebsd.org (Postfix) with ESMTP id B789A8FC12 for ; Sun, 4 Dec 2011 17:48:40 +0000 (UTC) Received: from [IPv6:2001:470:28:140:707e:9d49:9947:3ad0] ([IPv6:2001:470:28:140:707e:9d49:9947:3ad0]) (authenticated bits=0) by otrada.od.ua (8.14.4/8.14.5) with ESMTP id pB4HmZGn055299 for ; Sun, 4 Dec 2011 19:48:35 +0200 (EET) (envelope-from universite@ukr.net) Message-ID: <4EDBB26C.2030104@ukr.net> Date: Sun, 04 Dec 2011 19:48:28 +0200 From: "Vladislav V. Prodan" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 To: freebsd-net@freebsd.org References: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (otrada.od.ua [IPv6:2001:470:28:140::5]); Sun, 04 Dec 2011 19:48:35 +0200 (EET) X-Spam-Status: No, score=-97.7 required=5.0 tests=FREEMAIL_FROM,RDNS_NONE, SPF_SOFTFAIL,T_TO_NO_BRKTS_FREEMAIL,USER_IN_WHITELIST autolearn=no version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mary-teresa.otrada.od.ua Subject: Re: Problem on re0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Dec 2011 17:48:41 -0000 04.12.2011 19:33, Sami Halabi wrote: > here is the plot of lspci: Please, show the output: #pciconf -lv | grep -A4 re\[0-9]\@ -- Vladislav V. Prodan System & Network Administrator http://support.od.ua +380 67 4584408, +380 99 4060508 VVP88-RIPE From owner-freebsd-net@FreeBSD.ORG Sun Dec 4 19:45:19 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C15FD106566B for ; Sun, 4 Dec 2011 19:45:19 +0000 (UTC) (envelope-from sodynet1@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 8E0ED8FC0C for ; Sun, 4 Dec 2011 19:45:19 +0000 (UTC) Received: by iafi7 with SMTP id i7so2669981iaf.13 for ; Sun, 04 Dec 2011 11:45:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=y1S14YtCLrGvAKNGUNJAJgsVRe6VTDipwpRCMKPwvwM=; b=hqrt5WJEVynYFD7ZqoBlphO135J+BwBdftXpiAD+i2OClygzeBbwAkc7CWFqvTn5qx d7NjBWywqsFKRtjoWLl8THf6hkaC2b8EivxupqaBCYfuDLtJ+wW609w1GFZm+GsjEnyl 62k26eQ0VVbwfiqJ09yqx8+nBIyB0ZoD6uWcI= MIME-Version: 1.0 Received: by 10.43.43.130 with SMTP id uc2mr6942652icb.35.1323027918847; Sun, 04 Dec 2011 11:45:18 -0800 (PST) Received: by 10.231.19.72 with HTTP; Sun, 4 Dec 2011 11:45:18 -0800 (PST) In-Reply-To: <4EDBB26C.2030104@ukr.net> References: <4EDBB26C.2030104@ukr.net> Date: Sun, 4 Dec 2011 21:45:18 +0200 Message-ID: From: Sami Halabi To: "Vladislav V. Prodan" Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-net@freebsd.org Subject: Re: Problem on re0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Dec 2011 19:45:19 -0000 Hi, %pciconf -lv | grep -A4 re\[0-9]\@ re0@pci0:1:6:0: class=0x020000 card=0x816910ec chip=0x816910ec rev=0x10 hdr=0x00 vendor = 'Realtek Semiconductor' device = 'Single Gigabit LOM Ethernet Controller (RTL8110)' class = network subclass = ethernet re1@pci0:1:7:0: class=0x020000 card=0x816910ec chip=0x816910ec rev=0x10 hdr=0x00 vendor = 'Realtek Semiconductor' device = 'Single Gigabit LOM Ethernet Controller (RTL8110)' class = network subclass = ethernet Sami On Sun, Dec 4, 2011 at 7:48 PM, Vladislav V. Prodan wrote: > 04.12.2011 19:33, Sami Halabi wrote: > > here is the plot of lspci: > > Please, show the output: > #pciconf -lv | grep -A4 re\[0-9]\@ > > -- > Vladislav V. Prodan > System & Network Administrator > http://support.od.ua > +380 67 4584408, +380 99 4060508 > VVP88-RIPE > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > -- Sami Halabi Information Systems Engineer NMS Projects Expert From owner-freebsd-net@FreeBSD.ORG Sun Dec 4 20:01:18 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 490441065670 for ; Sun, 4 Dec 2011 20:01:18 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from vps1.elischer.org (vps1.elischer.org [204.109.63.16]) by mx1.freebsd.org (Postfix) with ESMTP id 1B3DC8FC0C for ; Sun, 4 Dec 2011 20:01:18 +0000 (UTC) Received: from julian-mac.elischer.org (c-67-180-24-15.hsd1.ca.comcast.net [67.180.24.15]) (authenticated bits=0) by vps1.elischer.org (8.14.4/8.14.4) with ESMTP id pB4K1GV1091221 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Sun, 4 Dec 2011 12:01:17 -0800 (PST) (envelope-from julian@freebsd.org) Message-ID: <4EDBD19A.70303@freebsd.org> Date: Sun, 04 Dec 2011 12:01:30 -0800 From: Julian Elischer User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; en-US; rv:1.9.2.24) Gecko/20111103 Thunderbird/3.1.16 MIME-Version: 1.0 To: Adrian Chadd References: <307826129.20111204065221@nitronet.pl> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Pawel Tyll , freebsd-net@freebsd.org Subject: Re: VLAN and LLADDR. X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Dec 2011 20:01:18 -0000 On 12/3/11 11:30 PM, Adrian Chadd wrote: > On 4 December 2011 13:52, Pawel Tyll wrote: >> Hi list, >> >> Having a different MAC address on vlan interface and parent interface >> requires enabling promiscuous mode. Is this a bug, or is it working as >> intended? Will leaving promiscuous mode enabled indefinitely hurt >> performance on gigabit em interface? > Hm, that's an interesting issue. How about writing a PR about it? > > You may find some hardware lets you program in a unicast filter or a > set of local mac addresses, instead of a single station address. > (I know I can do this with my atheros wifi nics, for example.) In these days of ethernet switches.. you already have mac address filters on the switch so the downside of not having one on the NIC is smaller than it used to be. The days of pure broadcast networks (e.g. 10Mb coax networks) are pretty much gone. (except in the wireless world). > > Adrian > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > > From owner-freebsd-net@FreeBSD.ORG Sun Dec 4 20:57:33 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C74E7106566B for ; Sun, 4 Dec 2011 20:57:33 +0000 (UTC) (envelope-from sodynet1@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 949248FC12 for ; Sun, 4 Dec 2011 20:57:33 +0000 (UTC) Received: by iafi7 with SMTP id i7so2765386iaf.13 for ; Sun, 04 Dec 2011 12:57:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=vEfasWhSb7r37qWiNGEYp3fi1IQcOG88aURMyuIQrzs=; b=LJFul+NcBNvNhDuiWDxUr9799PbarZL3/qZJckndLaj9Zn/h1krFMWn6Pm4GpO2bJV Quw/8CGIp05V4x8GfYxbvAbeGSQG72y4crciS837QRPkxmS7KnX2vz0/zF3FvHBDqw2A OhBqN/p2VoC05pxOU2LHy+QKs6ieaagXDG19k= MIME-Version: 1.0 Received: by 10.231.44.196 with SMTP id b4mr1677904ibf.82.1323032253191; Sun, 04 Dec 2011 12:57:33 -0800 (PST) Received: by 10.231.19.72 with HTTP; Sun, 4 Dec 2011 12:57:33 -0800 (PST) In-Reply-To: References: Date: Sun, 4 Dec 2011 22:57:33 +0200 Message-ID: From: Sami Halabi To: freebsd-net@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: recoomendations to a box X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Dec 2011 20:57:34 -0000 Hi, anyone would reccomend/help me? Thanks in advance, Sami On Thu, Oct 13, 2011 at 10:45 AM, Sami Halabi wrote: > Hi, > I'm using a quagga 0.99.17 box with dual cpu with 6C each,with 6GB Memory > running on FreeBSD 8.1-R-p6. > i wonder what do you think about this box on term of DDoS handling, pps > handling and so on. > if you have recommendations on how to improve max pps I appreciate it. > > the Nics configuration is as follows: > I have a dual-10G card 82599EB connected to a users switch and to an > upstream native exchange pointo in our country which handle regularly 1-2GB > daily and a BraodCam BCM5709 card connected to an upstream in which i > exchange a full routing table and a 100MBit line to the world. > more i have a Quad-82571EB card, in which one port connected to another > switch and other port connected to a MPD server for home users. > > Moreover I want to enable ECMP (MRADIX_PATH?) but i really don't know how > it works and how tocontrol it and there are barely documentation on > this,only things i read on the mailing lists and its not that clear to me. > > IPFW and traffic sharing is enabled (dummynet). > > Any recommendation are appreciated, your opinion is extremly important to > me. > > Thanks in advance, > -- > Sami Halabi > Information Systems Engineer > NMS Projects Expert > > -- Sami Halabi Information Systems Engineer NMS Projects Expert From owner-freebsd-net@FreeBSD.ORG Mon Dec 5 02:20:38 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9A4A1106566B for ; Mon, 5 Dec 2011 02:20:38 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 62D1C8FC0A for ; Mon, 5 Dec 2011 02:20:37 +0000 (UTC) Received: by iafi7 with SMTP id i7so3234676iaf.13 for ; Sun, 04 Dec 2011 18:20:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:date:to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=CH3aax9N8p1T3vcs2sGnyJxx3EXiMbxiLuqRJi2wk90=; b=loINyUeC/DFd6pHJLpB9Ww4vBFNDK7Su7I0zMhDvcZOqGqTeShe7bJDPq55Znp5FvH vr/d4NrxkNnCFieF4BF22tocajUg9IkOj00W/qlE5AdL6kwNmNwirFsnWvIBRBifPA4E N1fneHduIbm0+ezcCvGWClboD3Hq5ww2nAdR4= Received: by 10.231.5.215 with SMTP id 23mr1845524ibw.83.1323051637650; Sun, 04 Dec 2011 18:20:37 -0800 (PST) Received: from pyunyh@gmail.com ([174.35.1.224]) by mx.google.com with ESMTPS id p16sm70496438ibk.6.2011.12.04.18.20.35 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 04 Dec 2011 18:20:36 -0800 (PST) Received: by pyunyh@gmail.com (sSMTP sendmail emulation); Sun, 04 Dec 2011 18:20:23 -0800 From: YongHyeon PYUN Date: Sun, 4 Dec 2011 18:20:23 -0800 To: Samuel REMOUE Message-ID: <20111205022023.GD1729@michelle.cdnetworks.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Cc: freebsd-net@freebsd.org Subject: Re: Card PCIe NC375T not recognized X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Dec 2011 02:20:38 -0000 On Sun, Dec 04, 2011 at 03:36:25PM +0100, Samuel REMOUE wrote: > (Sorry for my english) Hello, > I'm new on FreeBSD OS and am trying to deploy servers. > I have a concern: HP NC375T NIC (HP NC375T PCI Express Quad Port > Gigabit Server Adapter) is not recognized, the drivers from HP are > available here (http://h20000.www2.hp.com/bizsupport/TechSupport/DriverDownload.jsp?prodNameId=4038767&lang=fr&cc=fr&prodTypeId=329290&prodSeriesId=4038765&taskId=135). > This is a QLogic / NetXen NX3031-based card. > If possible, can someone give me the steps to follow to integrate > drivers that are suitable into my install ? Thank you in advance. > NetXen, now QLogic, NX3301 is intelligent controller with many offloading features. This type of controller requires a special firmware so we need vendor's support for FreeBSD to solve firmware licensing issue. Writing a driver for this controller will also need detailed data sheet and firmware interface that should be used in driver. Even though vendor released a Linux driver, it's not enough to write a driver. I don't have any contact point for QLogic and I don't know whether the vendor is willing to support FreeBSD community. Your best bet at this moment would be poking QLogic to release FreeBSD driver. > -- > Samuel REMOUE From owner-freebsd-net@FreeBSD.ORG Mon Dec 5 02:27:45 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3D619106566C for ; Mon, 5 Dec 2011 02:27:45 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 05ED98FC08 for ; Mon, 5 Dec 2011 02:27:44 +0000 (UTC) Received: by iafi7 with SMTP id i7so3246901iaf.13 for ; Sun, 04 Dec 2011 18:27:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:date:to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=eVuEBgdnL+MpuSZNVVvIQeJVstpxiJH+mFakJvXHRDo=; b=bidnz9/Ptn6vIlTnO2X2QKQ14ZxLr5fFfw8st+5E5VnpQPo0HaDVsY4EAd7Q2mufQW ElF24ul7zh1YlXdPxtg0xbbHsDkN0+hxh2c6qmwHq90kH1A8fpU+EQLJYqaebQyVwC+L rgpsZdBFDEzTF/kHZqiRdJxdWqvMFRQK8Gjto= Received: by 10.42.159.195 with SMTP id m3mr236989icx.33.1323052064473; Sun, 04 Dec 2011 18:27:44 -0800 (PST) Received: from pyunyh@gmail.com ([174.35.1.224]) by mx.google.com with ESMTPS id wo4sm39252495igc.5.2011.12.04.18.27.42 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 04 Dec 2011 18:27:43 -0800 (PST) Received: by pyunyh@gmail.com (sSMTP sendmail emulation); Sun, 04 Dec 2011 18:27:30 -0800 From: YongHyeon PYUN Date: Sun, 4 Dec 2011 18:27:30 -0800 To: Sami Halabi Message-ID: <20111205022730.GE1729@michelle.cdnetworks.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Cc: freebsd-net@freebsd.org Subject: Re: Problem on re0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Dec 2011 02:27:45 -0000 On Sun, Dec 04, 2011 at 07:33:01PM +0200, Sami Halabi wrote: > Hi, > I have a desktop on which being used as a MPD server. > the server isn't that loaded, and the cpu is highly idel 90-92% of the time. > > My problem is in the network card connected to the cables provider. > in a random manner ot stops working whith no notice, and all l2tp/pptp > users disconnect, > also the provider side stops answering my pings until i ifconfig down the > card and ifconfig up it gain. > As a work around i wrote a script that does ping every 2 minutes and if the > ping timesout it do: > ifconfig re0 down > sleep 1 > ifconfig re0 up > mail me about it > > I had FBSD-8.1-R and upgraded yesterday to FBSD-8.2-p4, and did > freebsd-update fetch/install. > but the problem persists, i got already 4 emails since the upgrade (and > didn't pass yet the 24 hours). > > here is the plot of lspci: > 01:06.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8169 > Gigabit Ethernet (rev 10) > 01:07.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8169 > Gigabit Ethernet (rev 10) > (the 2nd driver isn't used, and no cable connected). > > # ifconfig -m re0 > re0: flags=8843 metric 0 mtu 1500 > > options=389b > > capabilities=439db > ether 00:a1:b0:69:15:5d > inet 1.2.3.5 netmask 0xfffffffc broadcast 1.2.3.7 > media: Ethernet autoselect (1000baseT ) > status: active > supported media: > media autoselect mediaopt flowcontrol > media autoselect > media 1000baseT mediaopt full-duplex,flowcontrol,master > media 1000baseT mediaopt full-duplex,flowcontrol > media 1000baseT mediaopt full-duplex,master > media 1000baseT mediaopt full-duplex > media 1000baseT mediaopt master > media 1000baseT > media 100baseTX mediaopt full-duplex,flowcontrol > media 100baseTX mediaopt full-duplex > media 100baseTX > media 10baseT/UTP mediaopt full-duplex,flowcontrol > media 10baseT/UTP mediaopt full-duplex > media 10baseT/UTP > media none > > # netstat -aib | grep -v ng|grep -v "all\-sys" > Name Mtu Network Address Ipkts Ierrs Idrop Ibytes > Opkts Oerrs Obytes Coll > re0 1500 00:a1:b0:69:15:5d 147089824 126 0 > 46718527073 206253261 0 154140535336 0 > 01:00:5e:00:00:01 139 > 0 > re0 1500 1.2.3.3/30 1.2.3.5 435 - - 35076 206240451 > - 151252235756 - > re1* 1500 00:a1:b0:69:76:28 0 0 0 0 > 0 0 0 0 > > > Please help me debug and fix this issue... > Show me dmesg output to know which controller you have(pciconf(8) output is not enough). When you notice the controller is in stuck condition, could you check which part(either TX or RX or both) of controller does not work? >From netstat(1) I can see you have 126 RX errors. Could you show me the output of "sysctl dev.re.0.stats=1"? From owner-freebsd-net@FreeBSD.ORG Mon Dec 5 02:56:56 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A5F78106564A; Mon, 5 Dec 2011 02:56:56 +0000 (UTC) (envelope-from break19@gmail.com) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by mx1.freebsd.org (Postfix) with ESMTP id EC7DF8FC19; Mon, 5 Dec 2011 02:56:55 +0000 (UTC) Received: by yenm2 with SMTP id m2so2007677yen.13 for ; Sun, 04 Dec 2011 18:56:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:organization:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=V/9Grr7gAAfaDb/0mWJJJQRy6kvRuSd/ufF9WGg2Rco=; b=dBbuDdHWVi22UxZ0HWZ7cLc6xettMW8YyXSnpBXBzEd26nqYzH7D7tu856fePkcajk kYqX6/fj6yUwuNyf0CfJBO2AwVjZSCk3kh3hDcdWpCKO9z6o8MgEvEq7JxrgDrZ1ZKkj xzOUQ09ehxoEBbJWt5XlT4DgrvllH9lPR+Wfo= Received: by 10.236.189.97 with SMTP id b61mr8680105yhn.116.1323053815272; Sun, 04 Dec 2011 18:56:55 -0800 (PST) Received: from [192.168.4.101] (c-98-230-64-224.hsd1.al.comcast.net. [98.230.64.224]) by mx.google.com with ESMTPS id q52sm7960117yhh.3.2011.12.04.18.56.54 (version=SSLv3 cipher=OTHER); Sun, 04 Dec 2011 18:56:54 -0800 (PST) Message-ID: <4EDC32F5.3020205@gmail.com> Date: Sun, 04 Dec 2011 20:56:53 -0600 From: Chuck Burns Organization: The Southern Libertarian User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:8.0) Gecko/20111129 Thunderbird/8.0 MIME-Version: 1.0 To: Kevin Lo , freebsd-net@freebsd.org References: <201110042008.48915.break19@gmail.com> <201110071816.17335.break19@gmail.com> <201110071936.50071.break19@gmail.com> <1322792905.1975.3.camel@esl.kevlo.org> <4ED846C1.5040109@gmail.com> In-Reply-To: <4ED846C1.5040109@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Re: [urtw] Wifi link dying randomly. reboot required to reconnect. X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Dec 2011 02:56:56 -0000 On 12/01/11 21:32, Chuck Burns wrote: > On 12/01/11 20:28, Kevin Lo wrote: >> Hi Chuck, >> >> I committed the fix to HEAD(r228195). Not sure if it's >> related, would you please give it a try and let me know >> the result? Thank you. >> >> Kevin >> > > Hmm.. I will have to install the new current onto another hard drive, so > I will probably give that a try sometime this week. I had finally just > broken down and ran a ethernet cable across the floor. :) > > Let me get current installed and running.. Problem is, we won't know for > -certain- if we've gotten it, because it would sometimes run for a week > before crashing. > > I will, however, give a try (It's sort of late, tonight, so that's a no go) > Alright, I bumped my box up to 10-current, on the GENERIC kernel.. and it ran fine, for two days. In dmesg, I got a notice that "wlan0: Link is down." and no more connection. service netif restart didn't help, killing wpa_supplicant, and running it manually didn't help, kldunloading the module caused a kernel panic.. This time, however, I was able to get a full system dump.. I have the entire contents of /var/crash compressed into a 150MiB tar.gz file, give me a place to put it, and I will do so. (My web host isn't thrilled with me using them as a dropbox.) -- Chuck Burns The Southern Libertarian http://www.thesouthernlibertarian.com/ From owner-freebsd-net@FreeBSD.ORG Mon Dec 5 03:10:47 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A85571065746 for ; Mon, 5 Dec 2011 03:10:47 +0000 (UTC) (envelope-from yilinjing2006@gmail.com) Received: from sam.nabble.com (sam.nabble.com [216.139.236.26]) by mx1.freebsd.org (Postfix) with ESMTP id 7DC5C8FC1D for ; Mon, 5 Dec 2011 03:10:47 +0000 (UTC) Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1RXOx4-0007qD-HN for freebsd-net@freebsd.org; Sun, 04 Dec 2011 19:10:46 -0800 Date: Sun, 4 Dec 2011 19:10:46 -0800 (PST) From: jyl_2006 To: freebsd-net@freebsd.org Message-ID: <1323054646502-5047743.post@n5.nabble.com> In-Reply-To: References: <1322919283456-5044536.post@n5.nabble.com> <76108404-D722-48D0-AAAA-F35B77F5CFCF@lurchi.franken.de> <1322966561294-5045598.post@n5.nabble.com> <1323000072198-5046113.post@n5.nabble.com> <1323001847851-5046165.post@n5.nabble.com> <3E25BC69-1FC8-487E-BBAD-8BAF2552623B@lurchi.franken.de> <1323004488998-5046216.post@n5.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: the return value of sctp_connectx do not match any error X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Dec 2011 03:10:47 -0000 This time, the program you provide work perfectly. But when I use another program to test, the result is"SCTP_GET_LOCAL_ADDRESS:no such file or directory". /*My own program have the same set with the program you provide, that means the ip address is the same and both programs have same "Server to be connected" . The "siz" refered in the following code is different with the value I get from my another program*/ if (getsockopt(_sctp_socket, IPPROTO_SCTP, SCTP_GET_LOCAL_ADDRESSES, addrs, &siz) != 0) { perror("SCTP_GET_LOCAL_ADDRESSES"); return (-1); } printf("siz = %u.\n", siz); As far as I know, then getsockopt is fail, the return value is -1, and the errno is set as one of following values 1.EBADF, 2.ENOTSOCK, 3.ENOPROTOOPT 4.EFAULT, 5.EINVAL . In my own program I use return_value = getsockopt(_sctp_socket, IPPROTO_SCTP, SCTP_GET_LOCAL_ADDRESSES, addrs, &siz), the value of return_value is -1, so it means an error happened and errno will be set. A strange thing happens, the errno is not the values refered above. Thanks. -- View this message in context: http://freebsd.1045724.n5.nabble.com/the-return-value-of-sctp-connectx-do-not-match-any-error-tp5041952p5047743.html Sent from the freebsd-net mailing list archive at Nabble.com. From owner-freebsd-net@FreeBSD.ORG Mon Dec 5 05:29:15 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 54EA4106566B for ; Mon, 5 Dec 2011 05:29:15 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id 0E1B38FC12 for ; Mon, 5 Dec 2011 05:29:14 +0000 (UTC) Received: by vcbfk1 with SMTP id fk1so5806844vcb.13 for ; Sun, 04 Dec 2011 21:29:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=A4nlblPZEOyRfZL7OKqOXBPz133pq4nSdSD4Utth3H8=; b=h7Q9Yc1EDAS6ZJ2bxC92pgrE63oh6xC3KejRYGmXztQC7cSGQyi7Y3G9YQOU/S4dX5 sMS02BNmzjRk2nBLvXA4rbp9fDTlJYTM6W+uxo5UZqeqoiZQ5dvKUX4YiIa005DwP5BD Z18nxqxG20NqjsKEPIU+u4f7Hxf9bB7mny82Y= MIME-Version: 1.0 Received: by 10.52.94.227 with SMTP id df3mr4290402vdb.51.1323062954194; Sun, 04 Dec 2011 21:29:14 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.52.109.10 with HTTP; Sun, 4 Dec 2011 21:29:13 -0800 (PST) In-Reply-To: <4EDC32F5.3020205@gmail.com> References: <201110042008.48915.break19@gmail.com> <201110071816.17335.break19@gmail.com> <201110071936.50071.break19@gmail.com> <1322792905.1975.3.camel@esl.kevlo.org> <4ED846C1.5040109@gmail.com> <4EDC32F5.3020205@gmail.com> Date: Mon, 5 Dec 2011 13:29:13 +0800 X-Google-Sender-Auth: wDWF58CezqArNFky_2XM8vd53Qs Message-ID: From: Adrian Chadd To: Chuck Burns Content-Type: text/plain; charset=ISO-8859-1 Cc: Kevin Lo , freebsd-net@freebsd.org Subject: Re: [urtw] Wifi link dying randomly. reboot required to reconnect. X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Dec 2011 05:29:15 -0000 Hi, Can you please just fire up kgdb and get a backtrace from the core? Adrian From owner-freebsd-net@FreeBSD.ORG Mon Dec 5 11:07:04 2011 Return-Path: Delivered-To: freebsd-net@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 22D63106564A for ; Mon, 5 Dec 2011 11:07:04 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 0FEC18FC12 for ; Mon, 5 Dec 2011 11:07:04 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id pB5B74NW081253 for ; Mon, 5 Dec 2011 11:07:04 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id pB5B73Fr081251 for freebsd-net@FreeBSD.org; Mon, 5 Dec 2011 11:07:03 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 5 Dec 2011 11:07:03 GMT Message-Id: <201112051107.pB5B73Fr081251@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-net@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-net@FreeBSD.org X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Dec 2011 11:07:04 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/162927 net [tun] Modem-PPP error ppp[1538]: tun0: Phase: Clearing o kern/162926 net [ipfilter] Infinite loop in ipfilter with fragmented I o kern/162558 net [dummynet] [panic] seldom dummynet panics o kern/162509 net [re] [panic] Kernel panic may be related to if_re.c (r o kern/162352 net [patch] Enhancement: add SO_PROTO to socket.h o kern/162153 net [em] intel em driver 7.2.4 don't compile o kern/162110 net [igb] [panic] RELENG_9 panics on boot in IGB driver - o kern/162028 net [ixgbe] [patch] misplaced #endif in ixgbe.c o kern/161899 net [route] ntpd(8): Repeating RTM_MISS packets causing hi o kern/161381 net [re] RTL8169SC - re0: PHY write failed o kern/161277 net [em] [patch] BMC cannot receive IPMI traffic after loa o kern/160873 net [igb] igb(4) from HEAD fails to build on 7-STABLE o kern/160750 net Intel PRO/1000 connection breaks under load until rebo o kern/160693 net [gif] [em] Multicast packet are not passed from GIF0 t o kern/160420 net [msk] phy write timeout on HP 5310m o kern/160293 net [ieee80211] ppanic] kernel panic during network setup o kern/160206 net [gif] gifX stops working after a while (IPv6 tunnel) o kern/159817 net [udp] write UDPv4: No buffer space available (code=55) o kern/159795 net [tcp] excessive duplicate ACKs and TCP session freezes o kern/159629 net [ipsec] [panic] kernel panic with IPsec in transport m o kern/159621 net [tcp] [panic] panic: soabort: so_count o kern/159603 net [netinet] [patch] in_ifscrubprefix() - network route c o kern/159601 net [netinet] [patch] in_scrubprefix() - loopback route re o kern/159294 net [em] em watchdog timeouts o kern/159203 net [wpi] Intel 3945ABG Wireless LAN not support IBSS o kern/158930 net [bpf] BPF element leak in ifp->bpf_if->bif_dlist o kern/158726 net [ip6] [patch] ICMPv6 Router Announcement flooding limi o kern/158694 net [ix] [lagg] ix0 is not working within lagg(4) o kern/158665 net [ip6] [panic] kernel pagefault in in6_setscope() o kern/158635 net [em] TSO breaks BPF packet captures with em driver f kern/157802 net [dummynet] [panic] kernel panic in dummynet o kern/157785 net amd64 + jail + ipfw + natd = very slow outbound traffi o kern/157429 net [re] Realtek RTL8169 doesn't work with re(4) o kern/157418 net [em] em driver lockup during boot on Supermicro X9SCM- o kern/157410 net [ip6] IPv6 Router Advertisements Cause Excessive CPU U o kern/157287 net [re] [panic] INVARIANTS panic (Memory modified after f o kern/157209 net [ip6] [patch] locking error in rip6_input() (sys/netin o kern/157200 net [network.subr] [patch] stf(4) can not communicate betw o kern/157182 net [lagg] lagg interface not working together with epair o kern/156877 net [dummynet] [panic] dummynet move_pkt() null ptr derefe o kern/156667 net [em] em0 fails to init on CURRENT after March 17 o kern/156408 net [vlan] Routing failure when using VLANs vs. Physical e o kern/156328 net [icmp]: host can ping other subnet but no have IP from o kern/156317 net [ip6] Wrong order of IPv6 NS DAD/MLD Report o kern/156283 net [ip6] [patch] nd6_ns_input - rtalloc_mpath does not re o kern/156279 net [if_bridge][divert][ipfw] unable to correctly re-injec o kern/156226 net [lagg]: failover does not announce the failover to swi o kern/156030 net [ip6] [panic] Crash in nd6_dad_start() due to null ptr o kern/155772 net ifconfig(8): ioctl (SIOCAIFADDR): File exists on direc o kern/155680 net [multicast] problems with multicast s kern/155642 net [request] Add driver for Realtek RTL8191SE/RTL8192SE W o kern/155604 net [flowtable] Flowtable excessively caches dest MAC addr o kern/155597 net [panic] Kernel panics with "sbdrop" message o kern/155420 net [vlan] adding vlan break existent vlan o kern/155177 net [route] [panic] Panic when inject routes in kernel o kern/155030 net [igb] igb(4) DEVICE_POLLING does not work with carp(4) o kern/155010 net [msk] ntfs-3g via iscsi using msk driver cause kernel o kern/155004 net [bce] [panic] kernel panic in bce0 driver o kern/154943 net [gif] ifconfig gifX create on existing gifX clears IP s kern/154851 net [request]: Port brcm80211 driver from Linux to FreeBSD o kern/154850 net [netgraph] [patch] ng_ether fails to name nodes when t o kern/154679 net [em] Fatal trap 12: "em1 taskq" only at startup (8.1-R o kern/154600 net [tcp] [panic] Random kernel panics on tcp_output o kern/154557 net [tcp] Freeze tcp-session of the clients, if in the gat o kern/154443 net [if_bridge] Kernel module bridgestp.ko missing after u o kern/154286 net [netgraph] [panic] 8.2-PRERELEASE panic in netgraph o kern/154255 net [nfs] NFS not responding o kern/154214 net [stf] [panic] Panic when creating stf interface o kern/154185 net race condition in mb_dupcl o kern/154169 net [multicast] [ip6] Node Information Query multicast add o kern/154134 net [ip6] stuck kernel state in LISTEN on ipv6 daemon whic o kern/154091 net [netgraph] [panic] netgraph, unaligned mbuf? o conf/154062 net [vlan] [patch] change to way of auto-generatation of v o kern/153937 net [ral] ralink panics the system (amd64 freeBSDD 8.X) wh o kern/153936 net [ixgbe] [patch] MPRC workaround incorrectly applied to o kern/153816 net [ixgbe] ixgbe doesn't work properly with the Intel 10g o kern/153772 net [ixgbe] [patch] sysctls reference wrong XON/XOFF varia o kern/153497 net [netgraph] netgraph panic due to race conditions o kern/153454 net [patch] [wlan] [urtw] Support ad-hoc and hostap modes o kern/153308 net [em] em interface use 100% cpu o kern/153244 net [em] em(4) fails to send UDP to port 0xffff o kern/152893 net [netgraph] [panic] 8.2-PRERELEASE panic in netgraph o kern/152853 net [em] tftpd (and likely other udp traffic) fails over e o kern/152828 net [em] poor performance on 8.1, 8.2-PRE o kern/152569 net [net]: Multiple ppp connections and routing table prob o kern/152235 net [arp] Permanent local ARP entries are not properly upd o kern/152141 net [vlan] [patch] encapsulate vlan in ng_ether before out o kern/152036 net [libc] getifaddrs(3) returns truncated sockaddrs for n o kern/151690 net [ep] network connectivity won't work until dhclient is o kern/151681 net [nfs] NFS mount via IPv6 leads to hang on client with o kern/151593 net [igb] [panic] Kernel panic when bringing up igb networ o kern/150920 net [ixgbe][igb] Panic when packets are dropped with heade o kern/150557 net [igb] igb0: Watchdog timeout -- resetting o kern/150251 net [patch] [ixgbe] Late cable insertion broken o kern/150249 net [ixgbe] Media type detection broken o bin/150224 net ppp(8) does not reassign static IP after kill -KILL co f kern/149969 net [wlan] [ral] ralink rt2661 fails to maintain connectio o kern/149937 net [ipfilter] [patch] kernel panic in ipfilter IP fragmen o kern/149643 net [rum] device not sending proper beacon frames in ap mo o kern/149609 net [panic] reboot after adding second default route o kern/149117 net [inet] [patch] in_pcbbind: redundant test o kern/149086 net [multicast] Generic multicast join failure in 8.1 o kern/148018 net [flowtable] flowtable crashes on ia64 o kern/147912 net [boot] FreeBSD 8 Beta won't boot on Thinkpad i1300 11 o kern/147894 net [ipsec] IPv6-in-IPv4 does not work inside an ESP-only o kern/147155 net [ip6] setfb not work with ipv6 o kern/146845 net [libc] close(2) returns error 54 (connection reset by f kern/146792 net [flowtable] flowcleaner 100% cpu's core load o kern/146719 net [pf] [panic] PF or dumynet kernel panic o kern/146534 net [icmp6] wrong source address in echo reply o kern/146427 net [mwl] Additional virtual access points don't work on m o kern/146426 net [mwl] 802.11n rates not possible on mwl o kern/146425 net [mwl] mwl dropping all packets during and after high u f kern/146394 net [vlan] IP source address for outgoing connections o bin/146377 net [ppp] [tun] Interface doesn't clear addresses when PPP o kern/146358 net [vlan] wrong destination MAC address o kern/146165 net [wlan] [panic] Setting bssid in adhoc mode causes pani o kern/146082 net [ng_l2tp] a false invaliant check was performed in ng_ o kern/146037 net [panic] mpd + CoA = kernel panic o bin/145934 net [patch] add count option to netstat(1) o kern/145825 net [panic] panic: soabort: so_count o kern/145728 net [lagg] Stops working lagg between two servers. p kern/145600 net TCP/ECN behaves different to CE/CWR than ns2 reference f kern/144917 net [flowtable] [panic] flowtable crashes system [regressi o kern/144882 net MacBookPro =>4.1 does not connect to BSD in hostap wit o kern/144874 net [if_bridge] [patch] if_bridge frees mbuf after pfil ho o conf/144700 net [rc.d] async dhclient breaks stuff for too many people o kern/144616 net [nat] [panic] ip_nat panic FreeBSD 7.2 o kern/144572 net [carp] CARP preemption mode traffic partially goes to f kern/144315 net [ipfw] [panic] freebsd 8-stable reboot after add ipfw o kern/144231 net bind/connect/sendto too strict about sockaddr length o kern/143846 net [gif] bringing gif3 tunnel down causes gif0 tunnel to s kern/143673 net [stf] [request] there should be a way to support multi s kern/143666 net [ip6] [request] PMTU black hole detection not implemen o kern/143622 net [pfil] [patch] unlock pfil lock while calling firewall o kern/143593 net [ipsec] When using IPSec, tcpdump doesn't show outgoin o kern/143591 net [ral] RT2561C-based DLink card (DWL-510) fails to work o kern/143208 net [ipsec] [gif] IPSec over gif interface not working o kern/143034 net [panic] system reboots itself in tcp code [regression] o kern/142877 net [hang] network-related repeatable 8.0-STABLE hard hang o kern/142774 net Problem with outgoing connections on interface with mu o kern/142772 net [libc] lla_lookup: new lle malloc failed o kern/142018 net [iwi] [patch] Possibly wrong interpretation of beacon- o kern/141861 net [wi] data garbled with WEP and wi(4) with Prism 2.5 f kern/141741 net Etherlink III NIC won't work after upgrade to FBSD 8, o kern/140742 net rum(4) Two asus-WL167G adapters cannot talk to each ot o kern/140682 net [netgraph] [panic] random panic in netgraph o kern/140634 net [vlan] destroying if_lagg interface with if_vlan membe o kern/140619 net [ifnet] [patch] refine obsolete if_var.h comments desc o kern/140346 net [wlan] High bandwidth use causes loss of wlan connecti o kern/140142 net [ip6] [panic] FreeBSD 7.2-amd64 panic w/IPv6 o kern/140066 net [bwi] install report for 8.0 RC 2 (multiple problems) o kern/139565 net [ipfilter] ipfilter ioctl SIOCDELST broken o kern/139387 net [ipsec] Wrong lenth of PF_KEY messages in promiscuous o bin/139346 net [patch] arp(8) add option to remove static entries lis o kern/139268 net [if_bridge] [patch] allow if_bridge to forward just VL p kern/139204 net [arp] DHCP server replies rejected, ARP entry lost bef o kern/139117 net [lagg] + wlan boot timing (EBUSY) o kern/139058 net [ipfilter] mbuf cluster leak on FreeBSD 7.2 o kern/138850 net [dummynet] dummynet doesn't work correctly on a bridge o kern/138782 net [panic] sbflush_internal: cc 0 || mb 0xffffff004127b00 o kern/138688 net [rum] possibly broken on 8 Beta 4 amd64: able to wpa a o kern/138678 net [lo] FreeBSD does not assign linklocal address to loop o kern/138620 net [lagg] [patch] lagg port bpf-writes blocked o kern/138407 net [gre] gre(4) interface does not come up after reboot o kern/138332 net [tun] [lor] ifconfig tun0 destroy causes LOR if_adata/ o kern/138266 net [panic] kernel panic when udp benchmark test used as r o kern/138177 net [ipfilter] FreeBSD crashing repeatedly in ip_nat.c:257 f kern/138029 net [bpf] [panic] periodically kernel panic and reboot o kern/137881 net [netgraph] [panic] ng_pppoe fatal trap 12 p bin/137841 net [patch] wpa_supplicant(8) cannot verify SHA256 signed p kern/137776 net [rum] panic in rum(4) driver on 8.0-BETA2 o bin/137641 net ifconfig(8): various problems with "vlan_device.vlan_i o kern/137392 net [ip] [panic] crash in ip_nat.c line 2577 o kern/137372 net [ral] FreeBSD doesn't support wireless interface from o kern/137089 net [lagg] lagg falsely triggers IPv6 duplicate address de o bin/136994 net [patch] ifconfig(8) print carp mac address o kern/136911 net [netgraph] [panic] system panic on kldload ng_bpf.ko t o kern/136618 net [pf][stf] panic on cloning interface without unit numb o kern/135502 net [periodic] Warning message raised by rtfree function i o kern/134583 net [hang] Machine with jail freezes after random amount o o kern/134531 net [route] [panic] kernel crash related to routes/zebra o kern/134157 net [dummynet] dummynet loads cpu for 100% and make a syst o kern/133969 net [dummynet] [panic] Fatal trap 12: page fault while in o kern/133968 net [dummynet] [panic] dummynet kernel panic o kern/133736 net [udp] ip_id not protected ... o kern/133595 net [panic] Kernel Panic at pcpu.h:195 o kern/133572 net [ppp] [hang] incoming PPTP connection hangs the system o kern/133490 net [bpf] [panic] 'kmem_map too small' panic on Dell r900 o kern/133235 net [netinet] [patch] Process SIOCDLIFADDR command incorre f kern/133213 net arp and sshd errors on 7.1-PRERELEASE o kern/133060 net [ipsec] [pfsync] [panic] Kernel panic with ipsec + pfs o kern/132889 net [ndis] [panic] NDIS kernel crash on load BCM4321 AGN d o conf/132851 net [patch] rc.conf(5): allow to setfib(1) for service run o kern/132734 net [ifmib] [panic] panic in net/if_mib.c o kern/132705 net [libwrap] [patch] libwrap - infinite loop if hosts.all o kern/132672 net [ndis] [panic] ndis with rt2860.sys causes kernel pani o kern/132554 net [ipl] There is no ippool start script/ipfilter magic t o kern/132354 net [nat] Getting some packages to ipnat(8) causes crash o kern/132277 net [crypto] [ipsec] poor performance using cryptodevice f o kern/131781 net [ndis] ndis keeps dropping the link o kern/131776 net [wi] driver fails to init o kern/131753 net [altq] [panic] kernel panic in hfsc_dequeue o kern/131601 net [ipfilter] [panic] 7-STABLE panic in nat_finalise (tcp o bin/131567 net [socket] [patch] Update for regression/sockets/unix_cm o bin/131365 net route(8): route add changes interpretation of network f kern/130820 net [ndis] wpa_supplicant(8) returns 'no space on device' o kern/130628 net [nfs] NFS / rpc.lockd deadlock on 7.1-R o conf/130555 net [rc.d] [patch] No good way to set ipfilter variables a o kern/130525 net [ndis] [panic] 64 bit ar5008 ndisgen-erated driver cau o kern/130311 net [wlan_xauth] [panic] hostapd restart causing kernel pa o kern/130109 net [ipfw] Can not set fib for packets originated from loc f kern/130059 net [panic] Leaking 50k mbufs/hour f kern/129719 net [nfs] [panic] Panic during shutdown, tcp_ctloutput: in o kern/129517 net [ipsec] [panic] double fault / stack overflow f kern/129508 net [carp] [panic] Kernel panic with EtherIP (may be relat o kern/129219 net [ppp] Kernel panic when using kernel mode ppp o kern/129197 net [panic] 7.0 IP stack related panic o bin/128954 net ifconfig(8) deletes valid routes o bin/128602 net [an] wpa_supplicant(8) crashes with an(4) o kern/128448 net [nfs] 6.4-RC1 Boot Fails if NFS Hostname cannot be res o bin/128295 net [patch] ifconfig(8) does not print TOE4 or TOE6 capabi o bin/128001 net wpa_supplicant(8), wlan(4), and wi(4) issues o kern/127826 net [iwi] iwi0 driver has reduced performance and connecti o kern/127815 net [gif] [patch] if_gif does not set vlan attributes from o kern/127724 net [rtalloc] rtfree: 0xc5a8f870 has 1 refs f bin/127719 net [arp] arp: Segmentation fault (core dumped) f kern/127528 net [icmp]: icmp socket receives icmp replies not owned by p kern/127360 net [socket] TOE socket options missing from sosetopt() o bin/127192 net routed(8) removes the secondary alias IP of interface f kern/127145 net [wi]: prism (wi) driver crash at bigger traffic o kern/126895 net [patch] [ral] Add antenna selection (marked as TBD) o kern/126874 net [vlan]: Zebra problem if ifconfig vlanX destroy o kern/126695 net rtfree messages and network disruption upon use of if_ o kern/126339 net [ipw] ipw driver drops the connection o kern/126075 net [inet] [patch] internet control accesses beyond end of o bin/125922 net [patch] Deadlock in arp(8) o kern/125920 net [arp] Kernel Routing Table loses Ethernet Link status o kern/125845 net [netinet] [patch] tcp_lro_rx() should make use of hard o kern/125258 net [socket] socket's SO_REUSEADDR option does not work o kern/125239 net [gre] kernel crash when using gre o kern/124341 net [ral] promiscuous mode for wireless device ral0 looses o kern/124225 net [ndis] [patch] ndis network driver sometimes loses net o kern/124160 net [libc] connect(2) function loops indefinitely o kern/124021 net [ip6] [panic] page fault in nd6_output() o kern/123968 net [rum] [panic] rum driver causes kernel panic with WPA. o kern/123892 net [tap] [patch] No buffer space available o kern/123890 net [ppp] [panic] crash & reboot on work with PPP low-spee o kern/123858 net [stf] [patch] stf not usable behind a NAT o kern/123796 net [ipf] FreeBSD 6.1+VPN+ipnat+ipf: port mapping does not o kern/123758 net [panic] panic while restarting net/freenet6 o bin/123633 net ifconfig(8) doesn't set inet and ether address in one o kern/123559 net [iwi] iwi periodically disassociates/associates [regre o bin/123465 net [ip6] route(8): route add -inet6 -interfac o kern/123463 net [ipsec] [panic] repeatable crash related to ipsec-tool o conf/123330 net [nsswitch.conf] Enabling samba wins in nsswitch.conf c o kern/123160 net [ip] Panic and reboot at sysctl kern.polling.enable=0 f kern/123045 net [ng_mppc] ng_mppc_decompress - disabling node o kern/122989 net [swi] [panic] 6.3 kernel panic in swi1: net o kern/122954 net [lagg] IPv6 EUI64 incorrectly chosen for lagg devices f kern/122780 net [lagg] tcpdump on lagg interface during high pps wedge o kern/122685 net It is not visible passing packets in tcpdump(1) o kern/122319 net [wi] imposible to enable ad-hoc demo mode with Orinoco o kern/122290 net [netgraph] [panic] Netgraph related "kmem_map too smal o kern/122033 net [ral] [lor] Lock order reversal in ral0 at bootup ieee o bin/121895 net [patch] rtsol(8)/rtsold(8) doesn't handle managed netw s kern/121774 net [swi] [panic] 6.3 kernel panic in swi1: net o kern/121555 net [panic] Fatal trap 12: current process = 12 (swi1: net o kern/121443 net [gif] [lor] icmp6_input/nd6_lookup o kern/121437 net [vlan] Routing to layer-2 address does not work on VLA o bin/121359 net [patch] [security] ppp(8): fix local stack overflow in o kern/121257 net [tcp] TSO + natd -> slow outgoing tcp traffic o kern/121181 net [panic] Fatal trap 3: breakpoint instruction fault whi o kern/120966 net [rum] kernel panic with if_rum and WPA encryption o kern/120566 net [request]: ifconfig(8) make order of arguments more fr o kern/120304 net [netgraph] [patch] netgraph source assumes 32-bit time o kern/120266 net [udp] [panic] gnugk causes kernel panic when closing U o bin/120060 net routed(8) deletes link-level routes in the presence of o kern/119945 net [rum] [panic] rum device in hostap mode, cause kernel o kern/119791 net [nfs] UDP NFS mount of aliased IP addresses from a Sol o kern/119617 net [nfs] nfs error on wpa network when reseting/shutdown f kern/119516 net [ip6] [panic] _mtx_lock_sleep: recursed on non-recursi o kern/119432 net [arp] route add -host -iface causes arp e o kern/119225 net [wi] 7.0-RC1 no carrier with Prism 2.5 wifi card [regr o kern/118727 net [netgraph] [patch] [request] add new ng_pf module o kern/117423 net [vlan] Duplicate IP on different interfaces o bin/117339 net [patch] route(8): loading routing management commands o kern/117271 net [tap] OpenVPN TAP uses 99% CPU on releng_6 when if_tap o bin/116643 net [patch] [request] fstat(1): add INET/INET6 socket deta o kern/116185 net [iwi] if_iwi driver leads system to reboot o kern/115239 net [ipnat] panic with 'kmem_map too small' using ipnat o kern/115019 net [netgraph] ng_ether upper hook packet flow stops on ad o kern/115002 net [wi] if_wi timeout. failed allocation (busy bit). ifco o kern/114915 net [patch] [pcn] pcn (sys/pci/if_pcn.c) ethernet driver f o kern/113432 net [ucom] WARNING: attempt to net_add_domain(netgraph) af o kern/112722 net [ipsec] [udp] IP v4 udp fragmented packet reject o kern/112686 net [patm] patm driver freezes System (FreeBSD 6.2-p4) i38 o bin/112557 net [patch] ppp(8) lock file should not use symlink name o kern/112528 net [nfs] NFS over TCP under load hangs with "impossible p o kern/111537 net [inet6] [patch] ip6_input() treats mbuf cluster wrong o kern/111457 net [ral] ral(4) freeze o kern/110284 net [if_ethersubr] Invalid Assumption in SIOCSIFADDR in et o kern/110249 net [kernel] [regression] [patch] setsockopt() error regre o kern/109470 net [wi] Orinoco Classic Gold PC Card Can't Channel Hop o bin/108895 net pppd(8): PPPoE dead connections on 6.2 [regression] o kern/107944 net [wi] [patch] Forget to unlock mutex-locks o conf/107035 net [patch] bridge(8): bridge interface given in rc.conf n o kern/106444 net [netgraph] [panic] Kernel Panic on Binding to an ip to o kern/106438 net [ipf] ipfilter: keep state does not seem to allow repl o kern/106316 net [dummynet] dummynet with multipass ipfw drops packets o kern/105945 net Address can disappear from network interface s kern/105943 net Network stack may modify read-only mbuf chain copies o bin/105925 net problems with ifconfig(8) and vlan(4) [regression] o kern/104851 net [inet6] [patch] On link routes not configured when usi o kern/104751 net [netgraph] kernel panic, when getting info about my tr o kern/103191 net Unpredictable reboot o kern/103135 net [ipsec] ipsec with ipfw divert (not NAT) encodes a pac o kern/102540 net [netgraph] [patch] supporting vlan(4) by ng_fec(4) o conf/102502 net [netgraph] [patch] ifconfig name does't rename netgrap o kern/102035 net [plip] plip networking disables parallel port printing o kern/101948 net [ipf] [panic] Kernel Panic Trap No 12 Page Fault - cau o kern/100709 net [libc] getaddrinfo(3) should return TTL info o kern/100519 net [netisr] suggestion to fix suboptimal network polling o kern/98978 net [ipf] [patch] ipfilter drops OOW packets under 6.1-Rel o kern/98597 net [inet6] Bug in FreeBSD 6.1 IPv6 link-local DAD procedu o bin/98218 net wpa_supplicant(8) blacklist not working o kern/97306 net [netgraph] NG_L2TP locks after connection with failed o conf/97014 net [gif] gifconfig_gif? in rc.conf does not recognize IPv f kern/96268 net [socket] TCP socket performance drops by 3000% if pack o kern/95519 net [ral] ral0 could not map mbuf o kern/95288 net [pppd] [tty] [panic] if_ppp panic in sys/kern/tty_subr o kern/95277 net [netinet] [patch] IP Encapsulation mask_match() return o kern/95267 net packet drops periodically appear f kern/93378 net [tcp] Slow data transfer in Postfix and Cyrus IMAP (wo o kern/93019 net [ppp] ppp and tunX problems: no traffic after restarti o kern/92880 net [libc] [patch] almost rewritten inet_network(3) functi s kern/92279 net [dc] Core faults everytime I reboot, possible NIC issu o kern/91859 net [ndis] if_ndis does not work with Asus WL-138 s kern/91777 net [ipf] [patch] wrong behaviour with skip rule inside an o kern/91364 net [ral] [wep] WF-511 RT2500 Card PCI and WEP o kern/91311 net [aue] aue interface hanging s kern/90086 net [hang] 5.4p8 on supermicro P8SCT hangs during boot if o kern/87521 net [ipf] [panic] using ipfilter "auth" keyword leads to k o kern/87421 net [netgraph] [panic]: ng_ether + ng_eiface + if_bridge s kern/86920 net [ndis] ifconfig: SIOCS80211: Invalid argument [regress o kern/86871 net [tcp] [patch] allocation logic for PCBs in TIME_WAIT s o kern/86427 net [lor] Deadlock with FASTIPSEC and nat o kern/86103 net [ipf] Illegal NAT Traversal in IPFilter o kern/85780 net 'panic: bogus refcnt 0' in routing/ipv6 o bin/85445 net ifconfig(8): deprecated keyword to ifconfig inoperativ p kern/85320 net [gre] [patch] possible depletion of kernel stack in ip o bin/82975 net route change does not parse classfull network as given o kern/82881 net [netgraph] [panic] ng_fec(4) causes kernel panic after o kern/82468 net Using 64MB tcp send/recv buffers, trafficflow stops, i o bin/82185 net [patch] ndp(8) can delete the incorrect entry o kern/81095 net IPsec connection stops working if associated network i o kern/78968 net FreeBSD freezes on mbufs exhaustion (network interface o kern/78090 net [ipf] ipf filtering on bridged packets doesn't work if o kern/77341 net [ip6] problems with IPV6 implementation o kern/77273 net [ipf] ipfilter breaks ipv6 statefull filtering on 5.3 s kern/77195 net [ipf] [patch] ipfilter ioctl SIOCGNATL does not match o kern/75873 net Usability problem with non-RFC-compliant IP spoof prot s kern/75407 net [an] an(4): no carrier after short time a kern/71474 net [route] route lookup does not skip interfaces marked d o kern/71469 net default route to internet magically disappears with mu o kern/70904 net [ipf] ipfilter ipnat problem with h323 proxy support o kern/68889 net [panic] m_copym, length > size of mbuf chain o kern/66225 net [netgraph] [patch] extend ng_eiface(4) control message o kern/65616 net IPSEC can't detunnel GRE packets after real ESP encryp s kern/60293 net [patch] FreeBSD arp poison patch a kern/56233 net IPsec tunnel (ESP) over IPv6: MTU computation is wrong s bin/41647 net ifconfig(8) doesn't accept lladdr along with inet addr s kern/39937 net ipstealth issue a kern/38554 net [patch] changing interface ipaddress doesn't seem to w o kern/34665 net [ipf] [hang] ipfilter rcmd proxy "hangs". o kern/31940 net ip queue length too short for >500kpps o kern/31647 net [libc] socket calls can return undocumented EINVAL o kern/30186 net [libc] getaddrinfo(3) does not handle incorrect servna o kern/27474 net [ipf] [ppp] Interactive use of user PPP and ipfilter c f kern/24959 net [patch] proper TCP_NOPUSH/TCP_CORK compatibility o conf/23063 net [arp] [patch] for static ARP tables in rc.network o kern/21998 net [socket] [patch] ident only for outgoing connections o kern/5877 net [socket] sb_cc counts control data as well as data dat 383 problems total. From owner-freebsd-net@FreeBSD.ORG Mon Dec 5 11:42:16 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 59814106564A; Mon, 5 Dec 2011 11:42:16 +0000 (UTC) (envelope-from ae@FreeBSD.org) Received: from mail.kirov.so-ups.ru (mail.kirov.so-ups.ru [178.74.170.1]) by mx1.freebsd.org (Postfix) with ESMTP id E2EDC8FC16; Mon, 5 Dec 2011 11:42:15 +0000 (UTC) Received: from kas30pipe.localhost (localhost.kirov.so-ups.ru [127.0.0.1]) by mail.kirov.so-ups.ru (Postfix) with SMTP id 664CAB8024; Mon, 5 Dec 2011 15:22:25 +0400 (MSK) Received: from kirov.so-ups.ru (unknown [172.21.81.1]) by mail.kirov.so-ups.ru (Postfix) with ESMTP id 60D2DB801F; Mon, 5 Dec 2011 15:22:25 +0400 (MSK) Received: by ns.kirov.so-ups.ru (Postfix, from userid 1010) id 59207B8F78; Mon, 5 Dec 2011 15:22:25 +0400 (MSK) Received: from [127.0.0.1] (elsukov.kirov.oduur.so [10.118.3.52]) by ns.kirov.so-ups.ru (Postfix) with ESMTP id 12836B8F63; Mon, 5 Dec 2011 15:22:24 +0400 (MSK) Message-ID: <4EDCA970.4050109@FreeBSD.org> Date: Mon, 05 Dec 2011 15:22:24 +0400 From: "Andrey V. Elsukov" User-Agent: Mozilla Thunderbird 1.5 (FreeBSD/20051231) MIME-Version: 1.0 To: Adrian Chadd References: <201110042008.48915.break19@gmail.com> <201110071816.17335.break19@gmail.com> <201110071936.50071.break19@gmail.com> <1322792905.1975.3.camel@esl.kevlo.org> <4ED846C1.5040109@gmail.com> <4EDC32F5.3020205@gmail.com> In-Reply-To: X-Enigmail-Version: 1.3.3 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 7bit X-SpamTest-Version: SMTP-Filter Version 3.0.0 [0284], KAS30/Release X-SpamTest-Info: Not protected Cc: freebsd-net@freebsd.org, Chuck Burns Subject: Re: [urtw] Wifi link dying randomly. reboot required to reconnect. X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Dec 2011 11:42:16 -0000 On 05.12.2011 9:29, Adrian Chadd wrote: > Hi, > > Can you please just fire up kgdb and get a backtrace from the core? There should be core.X.txt file, usually it already has a backtrace. -- WBR, Andrey V. Elsukov From owner-freebsd-net@FreeBSD.ORG Mon Dec 5 11:53:04 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A27CA1065670 for ; Mon, 5 Dec 2011 11:53:04 +0000 (UTC) (envelope-from sodynet1@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 33F728FC17 for ; Mon, 5 Dec 2011 11:53:03 +0000 (UTC) Received: by iafi7 with SMTP id i7so4302719iaf.13 for ; Mon, 05 Dec 2011 03:53:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=B4nPv5Jn4Qvl1ca2AO+Yl05i6kaBNExE3xMMRm8rnKg=; b=sIme1d+vuYQiOz53y5WevRJLgkLVZgOCsVkYPiaRP2GlXaDvclZUEe3UE/NJYKPCuu RuNLMZieLO7l44SzQVnIOy4fZ00kEHoDrjnnMXDSVecXubMkMkUNmROvecdEaObDWKaP RWSBwj7b0PxhaXeQYJGrvBAF3gqQ68t6RI1rA= MIME-Version: 1.0 Received: by 10.43.50.67 with SMTP id vd3mr9397285icb.10.1323085983531; Mon, 05 Dec 2011 03:53:03 -0800 (PST) Received: by 10.231.19.72 with HTTP; Mon, 5 Dec 2011 03:53:03 -0800 (PST) In-Reply-To: <20111205022730.GE1729@michelle.cdnetworks.com> References: <20111205022730.GE1729@michelle.cdnetworks.com> Date: Mon, 5 Dec 2011 13:53:03 +0200 Message-ID: From: Sami Halabi To: pyunyh@gmail.com Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-net@freebsd.org Subject: Re: Problem on re0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Dec 2011 11:53:04 -0000 Hi, Dmesg: re0: port 0x9000-0x90ff mem 0xf4000000-0xf40000ff irq 16 at device 6.0 on pci1 re0: Chip rev. 0x10000000 re0: MAC rev. 0x00000000 miibus0: on re0 rgephy0: PHY 1 on miibus0 rgephy0: 10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX, 100baseTX-FDX, 100baseTX-FDX-flow, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, 1000baseT-FDX-flow, 1000baseT-FDX-flow-master, auto, auto-flow re0: Ethernet address: 00:a1:b0:69:15:5d re0: [FILTER] re1: port 0x9400-0x94ff mem 0xf4001000-0xf40010ff irq 17 at device 7.0 on pci1 re1: Chip rev. 0x10000000 re1: MAC rev. 0x00000000 miibus1: on re1 rgephy1: PHY 1 on miibus1 rgephy1: 10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX, 100baseTX-FDX, 100baseTX-FDX-flow, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, 1000baseT-FDX-flow, 1000baseT-FDX-flow-master, auto, auto-flow re1: Ethernet address: 00:a1:b0:69:76:28 re1: [FILTER] ------------------------------------------------ here is "sysctl dev.re.0.stats=1" output: Dec 5 14:58:27 mpd kernel: re0 statistics: Dec 5 14:58:27 mpd kernel: Tx frames : 15790052 Dec 5 14:58:27 mpd kernel: Rx frames : 11847483 Dec 5 14:58:27 mpd kernel: Tx errors : 0 Dec 5 14:58:27 mpd kernel: Rx errors : 10378 Dec 5 14:58:27 mpd kernel: Rx missed frames : 0 Dec 5 14:58:27 mpd kernel: Rx frame alignment errs : 0 Dec 5 14:58:27 mpd kernel: Tx single collisions : 0 Dec 5 14:58:27 mpd kernel: Tx multiple collisions : 0 Dec 5 14:58:27 mpd kernel: Rx unicast frames : 11847483 Dec 5 14:58:27 mpd kernel: Rx broadcast frames : 0 Dec 5 14:58:27 mpd kernel: Rx multicast frames : 0 Dec 5 14:58:27 mpd kernel: Tx aborts : 0 Dec 5 14:58:27 mpd kernel: Tx underruns : 0 here is current netstat: Name Mtu Network Address Ipkts Ierrs Idrop Ibytes Opkts Oerrs Obytes Coll re0 1500 00:a1:b0:69:15:5d 294056550 280 0 86154803011 420449814 0 350472123744 0 01:00:5e:00:00:01 261 0 re0 1500 188.64.96.4/3 5.1886496.royalsh 435 - - 35076 420439431 - 344585787536 - re1* 1500 00:a1:b0:69:76:28 0 0 0 0 0 0 0 0 i had in the last 36 hours 7 time card stuck and ifconfig down/up... >When you notice the controller is in stuck condition, could you >check which part(either TX or RX or both) of controller does not >work? how i can output that? Thanks in advance, Sami On Mon, Dec 5, 2011 at 4:27 AM, YongHyeon PYUN wrote: > On Sun, Dec 04, 2011 at 07:33:01PM +0200, Sami Halabi wrote: > > Hi, > > I have a desktop on which being used as a MPD server. > > the server isn't that loaded, and the cpu is highly idel 90-92% of the > time. > > > > My problem is in the network card connected to the cables provider. > > in a random manner ot stops working whith no notice, and all l2tp/pptp > > users disconnect, > > also the provider side stops answering my pings until i ifconfig down the > > card and ifconfig up it gain. > > As a work around i wrote a script that does ping every 2 minutes and if > the > > ping timesout it do: > > ifconfig re0 down > > sleep 1 > > ifconfig re0 up > > mail me about it > > > > I had FBSD-8.1-R and upgraded yesterday to FBSD-8.2-p4, and did > > freebsd-update fetch/install. > > but the problem persists, i got already 4 emails since the upgrade (and > > didn't pass yet the 24 hours). > > > > here is the plot of lspci: > > 01:06.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8169 > > Gigabit Ethernet (rev 10) > > 01:07.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8169 > > Gigabit Ethernet (rev 10) > > (the 2nd driver isn't used, and no cable connected). > > > > # ifconfig -m re0 > > re0: flags=8843 metric 0 mtu 1500 > > > > > options=389b > > > > > capabilities=439db > > ether 00:a1:b0:69:15:5d > > inet 1.2.3.5 netmask 0xfffffffc broadcast 1.2.3.7 > > media: Ethernet autoselect (1000baseT ) > > status: active > > supported media: > > media autoselect mediaopt flowcontrol > > media autoselect > > media 1000baseT mediaopt full-duplex,flowcontrol,master > > media 1000baseT mediaopt full-duplex,flowcontrol > > media 1000baseT mediaopt full-duplex,master > > media 1000baseT mediaopt full-duplex > > media 1000baseT mediaopt master > > media 1000baseT > > media 100baseTX mediaopt full-duplex,flowcontrol > > media 100baseTX mediaopt full-duplex > > media 100baseTX > > media 10baseT/UTP mediaopt full-duplex,flowcontrol > > media 10baseT/UTP mediaopt full-duplex > > media 10baseT/UTP > > media none > > > > # netstat -aib | grep -v ng|grep -v "all\-sys" > > Name Mtu Network Address Ipkts Ierrs Idrop > Ibytes > > Opkts Oerrs Obytes Coll > > re0 1500 00:a1:b0:69:15:5d 147089824 126 0 > > 46718527073 206253261 0 154140535336 0 > > 01:00:5e:00:00:01 139 > > 0 > > re0 1500 1.2.3.3/30 1.2.3.5 435 - - 35076 206240451 > > - 151252235756 - > > re1* 1500 00:a1:b0:69:76:28 0 0 0 > 0 > > 0 0 0 0 > > > > > > Please help me debug and fix this issue... > > > > Show me dmesg output to know which controller you have(pciconf(8) > output is not enough). > When you notice the controller is in stuck condition, could you > check which part(either TX or RX or both) of controller does not > work? > > From netstat(1) I can see you have 126 RX errors. Could you show me > the output of "sysctl dev.re.0.stats=1"? > -- Sami Halabi Information Systems Engineer NMS Projects Expert From owner-freebsd-net@FreeBSD.ORG Mon Dec 5 12:00:22 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3FA49106564A for ; Mon, 5 Dec 2011 12:00:22 +0000 (UTC) (envelope-from Michael.Tuexen@lurchi.franken.de) Received: from mail-n.franken.de (drew.ipv6.franken.de [IPv6:2001:638:a02:a001:20e:cff:fe4a:feaa]) by mx1.freebsd.org (Postfix) with ESMTP id 7E88B8FC12 for ; Mon, 5 Dec 2011 12:00:21 +0000 (UTC) Received: from [192.168.1.200] (p508FB768.dip.t-dialin.net [80.143.183.104]) (Authenticated sender: macmic) by mail-n.franken.de (Postfix) with ESMTP id 9CD561C0B4619; Mon, 5 Dec 2011 13:00:19 +0100 (CET) Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset=us-ascii From: =?iso-8859-1?Q?Michael_T=FCxen?= In-Reply-To: <1323054646502-5047743.post@n5.nabble.com> Date: Mon, 5 Dec 2011 13:00:18 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: References: <1322919283456-5044536.post@n5.nabble.com> <76108404-D722-48D0-AAAA-F35B77F5CFCF@lurchi.franken.de> <1322966561294-5045598.post@n5.nabble.com> <1323000072198-5046113.post@n5.nabble.com> <1323001847851-5046165.post@n5.nabble.com> <3E25BC69-1FC8-487E-BBAD-8BAF2552623B@lurchi.franken.de> <1323004488998-5046216.post@n5.nabble.com> <1323054646502-5047743.post@n5.nabble.com> To: jyl_2006 X-Mailer: Apple Mail (2.1251.1) Cc: freebsd-net@freebsd.org Subject: Re: the return value of sctp_connectx do not match any error X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Dec 2011 12:00:22 -0000 On Dec 5, 2011, at 4:10 AM, jyl_2006 wrote: > This time, the program you provide work perfectly. > But when I use another program to test, the result > is"SCTP_GET_LOCAL_ADDRESS:no such file or directory". This means that you are using a one-to-many style socket = (SOCK_SEQPACKET) and you provide an association identifier which does not belong to any association (anymore). >=20 > /*My own program have the same set with the program you provide, that = means > the ip address is the same and both programs have same "Server to be > connected" . > The "siz" refered in the following code is different with the value I = get > from my another program*/ >=20 > if (getsockopt(_sctp_socket, IPPROTO_SCTP, SCTP_GET_LOCAL_ADDRESSES, = addrs, > &siz) !=3D 0) {=20 > perror("SCTP_GET_LOCAL_ADDRESSES");=20 > return (-1);=20 > }=20 > printf("siz =3D %u.\n", siz); >=20 > As far as I know, then getsockopt is fail, the return value is -1, and = the > errno is set as one of following values 1.EBADF, 2.ENOTSOCK, = 3.ENOPROTOOPT > 4.EFAULT, 5.EINVAL . In my own program I use return_value =3D This is from the man page. In case of SCTP socket it seems to miss some error codes... > getsockopt(_sctp_socket, IPPROTO_SCTP, SCTP_GET_LOCAL_ADDRESSES, = addrs, > &siz), the value of return_value is -1, so it means an error happened = and > errno will be set. A strange thing happens, the errno is not the = values > refered above. So which one is it? The man page seems to need some update. Best regards Michael >=20 > Thanks. >=20 > -- > View this message in context: = http://freebsd.1045724.n5.nabble.com/the-return-value-of-sctp-connectx-do-= not-match-any-error-tp5041952p5047743.html > Sent from the freebsd-net mailing list archive at Nabble.com. > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" >=20 From owner-freebsd-net@FreeBSD.ORG Mon Dec 5 13:44:29 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F0799106566C for ; Mon, 5 Dec 2011 13:44:29 +0000 (UTC) (envelope-from break19@gmail.com) Received: from mail-qy0-f182.google.com (mail-qy0-f182.google.com [209.85.216.182]) by mx1.freebsd.org (Postfix) with ESMTP id A7DC78FC08 for ; Mon, 5 Dec 2011 13:44:29 +0000 (UTC) Received: by qcse13 with SMTP id e13so2093547qcs.13 for ; Mon, 05 Dec 2011 05:44:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=XT4ZhU7zC3xE/64qbFLHYog7oThxGi7VavO/pgoCeW8=; b=MQ8eapXeNxjOjaDL3QS7RzjnxIrC/B8Ju42Tys35UxCPC9egNWw+tOlW2ZSQro10Yv +kx5/b22TeGyOasa5ptRjpjb0Ngbn6CF/XbxvE217S/NAEAVcF+loktODuY42qdyIkUo cTFPOcTyFjPaE8en4fpmpYYxxHzfOUmFPCRtc= MIME-Version: 1.0 Received: by 10.229.38.203 with SMTP id c11mr1955516qce.233.1323092668850; Mon, 05 Dec 2011 05:44:28 -0800 (PST) Received: by 10.229.24.143 with HTTP; Mon, 5 Dec 2011 05:44:28 -0800 (PST) In-Reply-To: <4EDCA970.4050109@FreeBSD.org> References: <201110042008.48915.break19@gmail.com> <201110071816.17335.break19@gmail.com> <201110071936.50071.break19@gmail.com> <1322792905.1975.3.camel@esl.kevlo.org> <4ED846C1.5040109@gmail.com> <4EDC32F5.3020205@gmail.com> <4EDCA970.4050109@FreeBSD.org> Date: Mon, 5 Dec 2011 07:44:28 -0600 Message-ID: From: Chuck Burns To: "Andrey V. Elsukov" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-net@freebsd.org, Adrian Chadd Subject: Re: [urtw] Wifi link dying randomly. reboot required to reconnect. X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Dec 2011 13:44:30 -0000 freebeast dumped core - see /var/crash/vmcore.0 Sun Dec =A04 14:58:49 CST 2011 FreeBSD freebeast 10.0-CURRENT FreeBSD 10.0-CURRENT #4 r228221: Sat Dec =A03 09:10:37 CST 2011 toor@freebeast:/usr/obj/usr/src/sys/GENERIC =A0amd64 panic: GNU gdb 6.1.1 [FreeBSD]Copyright 2004 Free Software Foundation, Inc.GDB is free software, covered by the GNU General Public License, and you arewelcome to change it and/or distribute copies of it under certain conditions.Type "show copying" to see the conditions.There is absolutely no warranty for GDB. =A0Type "show warranty" for details.This GDB was configured as "amd64-marcel-freebsd"... Unread portion of the kernel message buffer:Fatal trap 9: general protection fault while in kernel modecpuid =3D 1; apic id =3D 01instruction pointer =A0 =A0 =3D 0x20:0xffffffff8092f692stack pointer =A0 =A0 =3D 0x28:0xffffff808fc149c0frame pointer =A0 =A0 =A0 =A0 =A0 =3D 0x28:0xffffff808fc149e0code segment =A0 =A0 =A0 =A0 =A0 =A0=3D base 0x0, li= mit 0xfffff, type 0x1b=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =3D DPL 0= , pres 1, long 1, def32 0, gran 1processor eflags =A0 =A0 =A0 =A0=3D interrupt enabled, resum= e, IOPL =3D 0current process =A0 =A0 =A0 =A0 =3D 15 (usbus2) Fatal trap 9: general protection fault while in kernel modecpuid =3D 1; apic id =3D 01instruction pointer =3D 0x20:0xffffffff8092f692 stack pointer =3D 0x28:0xffffff808fc149c0 frame pointer =3D 0x28:0xffffff808fc149e0 code segment =3D base 0x0, limit 0xfffff, type 0x1b =3D DPL 0, pres 1, long 1, def32 0, gran 1 processor eflags =3D interrupt enabled, resume, IOPL =3D 0 current process =3D 15 (usbus2) Fatal trap 9: general protection fault while in kernel mode cpuid =3D 1; apic id =3D 01 instruction pointer =3D 0x20:0xffffffff8092f692 stack pointer =3D 0x28:0xffffff808fc149c0 frame pointer =3D 0x28:0xffffff808fc149e0 code segment =3D base 0x0, limit 0xfffff, type 0x1b =3D DPL 0, pres 1, long 1, def32 0, gran 1 processor eflags =3D interrupt enabled, resume, IOPL =3D 0 current process =3D 15 (usbus2) Fatal trap 9: general protection fault while in kernel mode cpuid =3D 1; apic id =3D 01 instruction pointer =3D 0x20:0xffffffff8092f692 stack pointer =3D 0x28:0xffffff808fc149c0 frame pointer =3D 0x28:0xffffff808fc149e0 code segment =3D base 0x0, limit 0xfffff, type 0x1b =3D DPL 0, pres 1, long 1, def32 0, gran 1 processor eflags =3D interrupt enabled, resume, IOPL =3D 0 current process =3D 15 (usbus2) Fatal trap 9: general protection fault while in kernel mode cpuid =3D 1; apic id =3D 01 instruction pointer =3D 0x20:0xffffffff8092f692 stack pointer =3D 0x28:0xffffff808fc149c0 frame pointer =3D 0x28:0xffffff808fc149e0 code segment =3D base 0x0, limit 0xfffff, type 0x1b =3D DPL 0, pres 1, long 1, def32 0, gran 1 processor eflags =3D interrupt enabled, resume, IOPL =3D 0 current process =3D 15 (usbus2) Fatal trap 9: general protection fault while in kernel mode cpuid =3D 1; apic id =3D 01 instruction pointer =3D 0x20:0xffffffff8092f692 stack pointer =3D 0x28:0xffffff808fc149c0 frame pointer =3D 0x28:0xffffff808fc149e0 code segment =3D base 0x0, limit 0xfffff, type 0x1b =3D DPL 0, pres 1, long 1, def32 0, gran 1 processor eflags =3D interrupt enabled, resume, IOPL =3D 0 current process =3D 15 (usbus2) Reading symbols from /boot/kernel/vesa.ko...Reading symbols from /boot/kernel/vesa.ko.symbols...done. done. Loaded symbols for /boot/kernel/vesa.ko Reading symbols from /boot/kernel/zfs.ko...Reading symbols from /boot/kernel/zfs.ko.symbols...done. done. Loaded symbols for /boot/kernel/zfs.ko Reading symbols from /boot/kernel/opensolaris.ko...Reading symbols from /boot/kernel/opensolaris.ko.symbols...done. done. Loaded symbols for /boot/kernel/opensolaris.ko Reading symbols from /boot/kernel/amdtemp.ko...Reading symbols from /boot/kernel/amdtemp.ko.symbols...done. done. Loaded symbols for /boot/kernel/amdtemp.ko Reading symbols from /boot/kernel/linprocfs.ko...Reading symbols from /boot/kernel/linprocfs.ko.symbols...done. done. Loaded symbols for /boot/kernel/linprocfs.ko Reading symbols from /boot/kernel/linux.ko...Reading symbols from /boot/kernel/linux.ko.symbols...done. done. Loaded symbols for /boot/kernel/linux.ko Reading symbols from /boot/modules/nvidia.ko...done. Loaded symbols for /boot/modules/nvidia.ko #0 doadump (textdump=3D0) at /usr/src/sys/kern/kern_shutdown.c:261 261 if (textdump && textdump_pending) { (kgdb) #0 doadump (textdump=3D0) at /usr/src/sys/kern/kern_shutdown.c:261 #1 0xffffffff802f5ea0 in db_dump (dummy=3DVariable "dummy" is not availabl= e. ) at /usr/src/sys/ddb/db_command.c:537 #2 0xffffffff802f5491 in db_command (last_cmdp=3D0xffffffff81105ae0, cmd_table=3DVariable "cmd_table" is not available. ) at /usr/src/sys/ddb/db_command.c:448 #3 0xffffffff802f56e0 in db_command_loop () at /usr/src/sys/ddb/db_command.c:501 #4 0xffffffff802f7849 in db_trap (type=3DVariable "type" is not available. ) at /usr/src/sys/ddb/db_main.c:229 #5 0xffffffff8086f191 in kdb_trap (type=3D9, code=3D0, tf=3D0xffffff808fc1= 4910) at /usr/src/sys/kern/subr_kdb.c:625 #6 0xffffffff80b233fd in trap_fatal (frame=3D0xffffff808fc14910, eva=3DVariable "eva" is not available. ) at /usr/src/sys/amd64/amd64/trap.c:814 #7 0xffffffff80b238ac in trap (frame=3D0xffffff808fc14910) at /usr/src/sys/amd64/amd64/trap.c:617 #8 0xffffffff80b0dc0f in calltrap () at /usr/src/sys/amd64/amd64/exception.S:228 #9 0xffffffff8092f692 in node_free (ni=3D0xffffff8003565000) at ieee80211_ratectl.h:84 #10 0xffffffff8071634b in urtw_free_data_list (sc=3DVariable "sc" is not available. ) at /usr/src/sys/dev/usb/wlan/if_urtw.c:989 #11 0xffffffff8071bf75 in urtw_detach (dev=3D0xfffffe0005b22a00) at /usr/src/sys/dev/usb/wlan/if_urtw.c:957 #12 0xffffffff80868d54 in device_detach (dev=3D0xfffffe0005b22a00) at device_if.h:214 #13 0xffffffff806df6a8 in usb_detach_device (udev=3D0xfffffe0005b19000, iface_index=3D32 ' ', flag=3DVariable "flag" is not available. ) at /usr/src/sys/dev/usb/usb_device.c:1062 #14 0xffffffff806dffc4 in usb_unconfigure (udev=3D0xfffffe0005b19000, flag=3DVariable "flag" is not available. ) at /usr/src/sys/dev/usb/usb_device.c:455 #15 0xffffffff806e02a6 in usb_free_device (udev=3D0xfffffe0005b19000, flag=3DVariable "flag" is not available. ) at /usr/src/sys/dev/usb/usb_device.c:2089 #16 0xffffffff806e86fe in uhub_explore (udev=3D0xfffffe0005b17000) at /usr/src/sys/dev/usb/usb_hub.c:356 #17 0xffffffff806d3a30 in usb_bus_explore (pm=3DVariable "pm" is not availa= ble. ) at /usr/src/sys/dev/usb/controller/usb_controller.c:259 #18 0xffffffff806ec2e3 in usb_process (arg=3DVariable "arg" is not availabl= e. ) at /usr/src/sys/dev/usb/usb_process.c:174 #19 0xffffffff8080c7b5 in fork_exit ( callout=3D0xffffffff806ec220 , arg=3D0xffffff8000764db0, frame=3D0xffffff808fc14c50) at /usr/src/sys/kern/kern_fork.c:995 #20 0xffffffff80b0e13e in fork_trampoline () at /usr/src/sys/amd64/amd64/exception.S:602 #21 0x0000000000000000 in ?? () #22 0x0000000000000000 in ?? () #23 0x0000000000000001 in ?? () #24 0x0000000000000000 in ?? () #25 0x0000000000000000 in ?? () #26 0x0000000000000000 in ?? () #27 0x0000000000000000 in ?? () #28 0x0000000000000000 in ?? () #29 0x0000000000000000 in ?? () #30 0x0000000000000000 in ?? () #31 0x0000000000000000 in ?? () #32 0x0000000000000000 in ?? () #33 0x0000000000000000 in ?? () #34 0x0000000000000000 in ?? () #35 0x0000000000000000 in ?? () #36 0x0000000000000000 in ?? () #37 0x0000000000000000 in ?? () #38 0x0000000000000000 in ?? () #39 0x0000000000000000 in ?? () #40 0x0000000000000000 in ?? () #41 0x0000000000000000 in ?? () #42 0x0000000000000000 in ?? () #43 0x0000000000000000 in ?? () #44 0x0000000000000000 in ?? () #45 0xffffffff8115ba40 in tdq_cpu () #46 0x0000000000000000 in ?? () #47 0xffffffff8115ba00 in tdq_cpu () #48 0xfffffe00026d18c0 in ?? () #49 0xffffff808fc142b0 in ?? () #50 0xffffff808fc14258 in ?? () #51 0xfffffe0005805460 in ?? () #52 0xffffffff80861e9b in sched_switch (td=3D0xffffff8000764db0, newtd=3D0xffffffff806ec220, flags=3DVariable "flags" is not available. ) at /usr/src/sys/kern/sched_ule.c:1853 Previous frame inner to this frame (corrupt stack?) (kgdb) ------------------------------------------------------------------------ ipcs -a Message Queues: T ID KEY MODE OWNER GROUP CREATOR CGROUP CBYTES QNUM QBYTES LSPID LRPID STIME RTIME CTIME Shared Memory: T ID KEY MODE OWNER GROUP CREATOR CGROUP NATTCH SEGSZ CPID LPID ATIME DTIME CTIME m 131073 0 --rw------- break19 break19 break19 break19 2 393216 30956 8510 7:32:49 7:45:24 7:32:49 Semaphores: T ID KEY MODE OWNER GROUP CREATOR CGROUP NSEMS OTIME CTIME s 196608 1953729362 --rw------- break19 break19 break19 break19 1 22:49:26 22:46:45 ------------------------------------------------------------------------ ipcs -T msginfo: msgmax: 16384 (max characters in a message) msgmni: 40 (# of message queues) msgmnb: 2048 (max characters in a message queue) msgtql: 40 (max # of messages in system) msgssz: 8 (size of a message segment) msgseg: 2048 (# of message segments in system) shminfo: shmmax: 536870912 (max shared memory segment size) shmmin: 1 (min shared memory segment size) shmmni: 192 (max number of shared memory identifiers) shmseg: 128 (max shared memory segments per process) shmall: 131072 (max amount of shared memory in pages) seminfo: semmni: 50 (# of semaphore identifiers) semmns: 340 (# of semaphores in system) semmnu: 150 (# of undo structures in system) semmsl: 340 (max # of semaphores per id) semopm: 100 (max # of operations per semop call) semume: 50 (max # of undo entries per process) semusz: 632 (size in bytes of undo structure) semvmx: 32767 (semaphore maximum value) semaem: 16384 (adjust on exit max value) ------------------------------------------------------------------------ Hope that is enough info. 2011/12/5 Andrey V. Elsukov : > On 05.12.2011 9:29, Adrian Chadd wrote: >> Hi, >> >> Can you please just fire up kgdb and get a backtrace from the core? > > There should be core.X.txt file, usually it already has a backtrace. > > -- > WBR, Andrey V. Elsukov From owner-freebsd-net@FreeBSD.ORG Mon Dec 5 13:59:59 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 24621106564A for ; Mon, 5 Dec 2011 13:59:59 +0000 (UTC) (envelope-from yilinjing2006@gmail.com) Received: from sam.nabble.com (sam.nabble.com [216.139.236.26]) by mx1.freebsd.org (Postfix) with ESMTP id EE2DB8FC13 for ; Mon, 5 Dec 2011 13:59:58 +0000 (UTC) Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1RXZ5K-0007yz-1p for freebsd-net@freebsd.org; Mon, 05 Dec 2011 05:59:58 -0800 Date: Mon, 5 Dec 2011 05:59:58 -0800 (PST) From: jyl_2006 To: freebsd-net@freebsd.org Message-ID: <1323093598044-5048925.post@n5.nabble.com> In-Reply-To: References: <1322966561294-5045598.post@n5.nabble.com> <1323000072198-5046113.post@n5.nabble.com> <1323001847851-5046165.post@n5.nabble.com> <3E25BC69-1FC8-487E-BBAD-8BAF2552623B@lurchi.franken.de> <1323004488998-5046216.post@n5.nabble.com> <1323054646502-5047743.post@n5.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: the return value of sctp_connectx do not match any error X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Dec 2011 13:59:59 -0000 I download freebsd-rc2(Character-based) and use the new Operating system to run the code you provide(sctp_client.c and give name of ComputerA to the computer it uses).In another computer(named ComputerB) I run freebsd-beta2(Graphical interface), I use the code(sctp_server.c) and I use wireshark to see what happen. I do not run sctp_server(means no server to wait for accept) in ComputerA , the program of sctp_client in ComputerB use sctp_connectx to init the association, the return value of sctp_connectx is 0 , that means the association is set up, but I do not run any server in computerA and the wireshark also see the init of association is unsuccessful. I am really confused about this problem. Thanks. -- View this message in context: http://freebsd.1045724.n5.nabble.com/the-return-value-of-sctp-connectx-do-not-match-any-error-tp5041952p5048925.html Sent from the freebsd-net mailing list archive at Nabble.com. From owner-freebsd-net@FreeBSD.ORG Mon Dec 5 14:00:02 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1B9E11065672; Mon, 5 Dec 2011 14:00:02 +0000 (UTC) (envelope-from bschmidt@techwires.net) Received: from mail-lpp01m010-f54.google.com (mail-lpp01m010-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id 554498FC14; Mon, 5 Dec 2011 14:00:00 +0000 (UTC) Received: by lagv3 with SMTP id v3so386315lag.13 for ; Mon, 05 Dec 2011 05:59:59 -0800 (PST) MIME-Version: 1.0 Received: by 10.152.132.72 with SMTP id os8mr6150641lab.4.1323093599738; Mon, 05 Dec 2011 05:59:59 -0800 (PST) Received: by 10.152.22.72 with HTTP; Mon, 5 Dec 2011 05:59:59 -0800 (PST) X-Originating-IP: [79.140.39.245] In-Reply-To: References: <201110042008.48915.break19@gmail.com> <201110071816.17335.break19@gmail.com> <201110071936.50071.break19@gmail.com> <1322792905.1975.3.camel@esl.kevlo.org> <4ED846C1.5040109@gmail.com> <4EDC32F5.3020205@gmail.com> <4EDCA970.4050109@FreeBSD.org> Date: Mon, 5 Dec 2011 14:59:59 +0100 Message-ID: From: Bernhard Schmidt To: Chuck Burns Content-Type: multipart/mixed; boundary=f46d04308560045b9004b358bcd1 Cc: "Andrey V. Elsukov" , Adrian Chadd , freebsd-net@freebsd.org Subject: Re: [urtw] Wifi link dying randomly. reboot required to reconnect. X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Dec 2011 14:00:02 -0000 --f46d04308560045b9004b358bcd1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Mon, Dec 5, 2011 at 14:44, Chuck Burns wrote: > freebeast dumped core - see /var/crash/vmcore.0 > Sun Dec =A04 14:58:49 CST 2011 > FreeBSD freebeast 10.0-CURRENT FreeBSD 10.0-CURRENT #4 r228221: Sat > Dec =A03 09:10:37 CST 2011 > toor@freebeast:/usr/obj/usr/src/sys/GENERIC =A0amd64 > panic: > .. > #9 =A00xffffffff8092f692 in node_free (ni=3D0xffffff8003565000) > =A0 =A0at ieee80211_ratectl.h:84 > #10 0xffffffff8071634b in urtw_free_data_list (sc=3DVariable "sc" is not > available. > ) > =A0 =A0at /usr/src/sys/dev/usb/wlan/if_urtw.c:989 > #11 0xffffffff8071bf75 in urtw_detach (dev=3D0xfffffe0005b22a00) > =A0 =A0at /usr/src/sys/dev/usb/wlan/if_urtw.c:957 > #12 0xffffffff80868d54 in device_detach (dev=3D0xfffffe0005b22a00) > =A0 =A0at device_if.h:214 > #13 0xffffffff806df6a8 in usb_detach_device (udev=3D0xfffffe0005b19000, > =A0 =A0iface_index=3D32 ' ', flag=3DVariable "flag" is not available. > ) at /usr/src/sys/dev/usb/usb_device.c:1062 > #14 0xffffffff806dffc4 in usb_unconfigure (udev=3D0xfffffe0005b19000, > flag=3DVariable "flag" is not available. ni/vap does no longer exist at that point because it has been free'd before. How about attached patch? --=20 Bernhard --f46d04308560045b9004b358bcd1 Content-Type: text/x-diff; charset=US-ASCII; name="urtw.diff" Content-Disposition: attachment; filename="urtw.diff" Content-Transfer-Encoding: base64 X-Attachment-Id: f_gvtjqfwz0 SW5kZXg6IHN5cy9kZXYvdXNiL3dsYW4vaWZfdXJ0dy5jCj09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIHN5cy9kZXYv dXNiL3dsYW4vaWZfdXJ0dy5jCShyZXZpc2lvbiAyMjgyNzUpCisrKyBzeXMvZGV2L3VzYi93bGFu L2lmX3VydHcuYwkod29ya2luZyBjb3B5KQpAQCAtOTM5LDExICs5MzksMTEgQEAgdXJ0d19kZXRh Y2goZGV2aWNlX3QgZGV2KQogCiAJdXNiZF90cmFuc2Zlcl91bnNldHVwKHNjLT5zY194ZmVyLCAo c2MtPnNjX2ZsYWdzICYgVVJUV19SVEw4MTg3QikgPwogCSAgICBVUlRXXzgxODdCX05fWEZFUlMg OiBVUlRXXzgxODdMX05fWEZFUlMpOwotCWllZWU4MDIxMV9pZmRldGFjaChpYyk7CiAKIAl1cnR3 X2ZyZWVfdHhfZGF0YV9saXN0KHNjKTsKIAl1cnR3X2ZyZWVfcnhfZGF0YV9saXN0KHNjKTsKIAor CWllZWU4MDIxMV9pZmRldGFjaChpYyk7CiAJaWZfZnJlZShpZnApOwogCW10eF9kZXN0cm95KCZz Yy0+c2NfbXR4KTsKIAo= --f46d04308560045b9004b358bcd1-- From owner-freebsd-net@FreeBSD.ORG Mon Dec 5 14:34:57 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 19D86106566B for ; Mon, 5 Dec 2011 14:34:57 +0000 (UTC) (envelope-from Michael.Tuexen@lurchi.franken.de) Received: from mail-n.franken.de (drew.ipv6.franken.de [IPv6:2001:638:a02:a001:20e:cff:fe4a:feaa]) by mx1.freebsd.org (Postfix) with ESMTP id F09C38FC08 for ; Mon, 5 Dec 2011 14:34:55 +0000 (UTC) Received: from [192.168.1.200] (p508FB768.dip.t-dialin.net [80.143.183.104]) (Authenticated sender: macmic) by mail-n.franken.de (Postfix) with ESMTP id 0E7101C0B4606; Mon, 5 Dec 2011 15:34:54 +0100 (CET) Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset=us-ascii From: =?iso-8859-1?Q?Michael_T=FCxen?= In-Reply-To: <1323093598044-5048925.post@n5.nabble.com> Date: Mon, 5 Dec 2011 15:34:53 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: References: <1322966561294-5045598.post@n5.nabble.com> <1323000072198-5046113.post@n5.nabble.com> <1323001847851-5046165.post@n5.nabble.com> <3E25BC69-1FC8-487E-BBAD-8BAF2552623B@lurchi.franken.de> <1323004488998-5046216.post@n5.nabble.com> <1323054646502-5047743.post@n5.nabble.com> <1323093598044-5048925.post@n5.nabble.com> To: jyl_2006 X-Mailer: Apple Mail (2.1251.1) Cc: freebsd-net@freebsd.org Subject: Re: the return value of sctp_connectx do not match any error X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Dec 2011 14:34:57 -0000 On Dec 5, 2011, at 2:59 PM, jyl_2006 wrote: > I download freebsd-rc2(Character-based) and use the new Operating = system to > run the code you provide(sctp_client.c and give name of ComputerA to = the > computer it uses).In another computer(named ComputerB) I run > freebsd-beta2(Graphical interface), I use the code(sctp_server.c) and = I use > wireshark to see what happen. >=20 > I do not run sctp_server(means no server to wait for accept) in = ComputerA , > the program of sctp_client in ComputerB use sctp_connectx to init the > association, the return value of sctp_connectx is 0 , that means the > association is set up, but I do not run any server in computerA and = the > wireshark also see the init of association is unsuccessful. No. If sctp_connectx() it means that initiating the setup was = successful, basically the sending on the INIT chunk. It is a non-blocking operation. So I guess this is what happens: 1. You call sctp_connectx(). 2. An INIT is sent. 3. sctp_connectx() returns with 0. The associd is valid. 4. An ABORT comes back. 5. Now the association is closed. If you want a blocking setup, use a one-to-one style socket and a = connect() call. If you want to figure out whether the association setup is = successful or not, you have to subscribe to the corresponding events. You will = either get a notification indicating that the setup is successful or not. I don't think this behavior has changed between RC2 and B2. Best regards Michael >=20 > I am really confused about this problem. >=20 > Thanks. >=20 > -- > View this message in context: = http://freebsd.1045724.n5.nabble.com/the-return-value-of-sctp-connectx-do-= not-match-any-error-tp5041952p5048925.html > Sent from the freebsd-net mailing list archive at Nabble.com. > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" >=20 From owner-freebsd-net@FreeBSD.ORG Mon Dec 5 14:43:13 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 289B2106566B for ; Mon, 5 Dec 2011 14:43:13 +0000 (UTC) (envelope-from andre@freebsd.org) Received: from c00l3r.networx.ch (c00l3r.networx.ch [62.48.2.2]) by mx1.freebsd.org (Postfix) with ESMTP id 83AEA8FC12 for ; Mon, 5 Dec 2011 14:43:12 +0000 (UTC) Received: (qmail 49637 invoked from network); 5 Dec 2011 12:47:38 -0000 Received: from c00l3r.networx.ch (HELO [127.0.0.1]) ([62.48.2.2]) (envelope-sender ) by c00l3r.networx.ch (qmail-ldap-1.03) with SMTP for ; 5 Dec 2011 12:47:38 -0000 Message-ID: <4EDCD23C.8050706@freebsd.org> Date: Mon, 05 Dec 2011 15:16:28 +0100 From: Andre Oppermann User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 To: Jack Vogel References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: FreeBSD Net Subject: Re: VLAN HWTSO question/problem X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Dec 2011 14:43:13 -0000 On 02.12.2011 21:06, Jack Vogel wrote: > I have just discovered during some validation testing on the em driver, > that if HWTSO is enabled > at the same time as VLAN_HWTAGGING and/or VLAN_HWFILTER that its broken. > > Looking at the vlan source its not obvious why this would be the case, but > netperf just fails completely. > I can turn TAGGING off and I can get TSO, or turn off TSO and get > TAGGING/FILTERING, but not > both :( > > My tester only has 8.2 to try this on, not sure if its a bug or a design > limitation, can someone > enlighten me? At the moment I'm thinking of just turning HWTSO off by > default? Maybe the HW or drive chokes on the overall ethernet frame being longer than 64K due to the VLAN header even though the IP packet part stays within the limits? -- Andre From owner-freebsd-net@FreeBSD.ORG Mon Dec 5 19:24:18 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1F93B1065670 for ; Mon, 5 Dec 2011 19:24:18 +0000 (UTC) (envelope-from jfvogel@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id A14E88FC17 for ; Mon, 5 Dec 2011 19:24:17 +0000 (UTC) Received: by bkat2 with SMTP id t2so8607065bka.13 for ; Mon, 05 Dec 2011 11:24:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Tq/Zhxv9IuMz0PDGAgJ1v85xisXO0IE6ZHoLCyYfQo0=; b=KwPEPFcqpNQcqVpeSsyOcQgL/nTPKdAHodrrYHJeXIsGkNgv6oJg9Lb+gyU+Fd4DyE njPW2Tgnc+9rPBR9z7Sp2WIXYdFOpH/gxqVdsw8TB4ATeyKHJzqtl4tO/9kujwnme3tc 8J16Q9f48SYoJb0DAjSZ90ZIck7MyPLdlxyWA= MIME-Version: 1.0 Received: by 10.180.102.162 with SMTP id fp2mr14389693wib.50.1323113056240; Mon, 05 Dec 2011 11:24:16 -0800 (PST) Received: by 10.180.24.1 with HTTP; Mon, 5 Dec 2011 11:24:16 -0800 (PST) In-Reply-To: <4EDCD23C.8050706@freebsd.org> References: <4EDCD23C.8050706@freebsd.org> Date: Mon, 5 Dec 2011 11:24:16 -0800 Message-ID: From: Jack Vogel To: Andre Oppermann Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: FreeBSD Net Subject: Re: VLAN HWTSO question/problem X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Dec 2011 19:24:18 -0000 I have solved the problem. Was my bug :) Turns out the xmit path has been wrong for quite some time, it was only putting the VLAN tag and command bit into the last descriptor of a frame, it should have been doing it in ALL of them. Its fixed in my internal code base, and will be coming down the pipe soon. I've now turned HWTSO back on as default as well. Thanks to everyone that replied. Jack On Mon, Dec 5, 2011 at 6:16 AM, Andre Oppermann wrote: > On 02.12.2011 21:06, Jack Vogel wrote: > >> I have just discovered during some validation testing on the em driver, >> that if HWTSO is enabled >> at the same time as VLAN_HWTAGGING and/or VLAN_HWFILTER that its broken. >> >> Looking at the vlan source its not obvious why this would be the case, but >> netperf just fails completely. >> I can turn TAGGING off and I can get TSO, or turn off TSO and get >> TAGGING/FILTERING, but not >> both :( >> >> My tester only has 8.2 to try this on, not sure if its a bug or a design >> limitation, can someone >> enlighten me? At the moment I'm thinking of just turning HWTSO off by >> default? >> > > Maybe the HW or drive chokes on the overall ethernet frame being longer > than 64K due to the VLAN header even though the IP packet part stays > within the limits? > > -- > Andre > From owner-freebsd-net@FreeBSD.ORG Mon Dec 5 22:02:47 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1D4C1106564A for ; Mon, 5 Dec 2011 22:02:47 +0000 (UTC) (envelope-from lacombar@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id A4BC68FC24 for ; Mon, 5 Dec 2011 22:02:46 +0000 (UTC) Received: by bkat2 with SMTP id t2so8843223bka.13 for ; Mon, 05 Dec 2011 14:02:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:cc:content-type; bh=/HyqzNN8j+Qm8g6Necv4lwPxdVJ24uNzr/PmABG17CA=; b=Vw55PM2OcZ9IWUAqRQ03IuI6JhBAYxLpcM+CSuKEanE5b9VRKVZPHBUwbWTtIPNqEp Dfv9312W9dJipS8E87I66OTLXiFoJiJ7ImNGVtOTGI/SY9K2ttrB8B4CizPuQCIyeHSr bbaaED1oWylR9R73a/QVs93DCIuA7/fr2wo54= MIME-Version: 1.0 Received: by 10.180.104.35 with SMTP id gb3mr15057417wib.11.1323122565142; Mon, 05 Dec 2011 14:02:45 -0800 (PST) Received: by 10.180.94.2 with HTTP; Mon, 5 Dec 2011 14:02:45 -0800 (PST) Date: Mon, 5 Dec 2011 17:02:45 -0500 Message-ID: From: Arnaud Lacombe To: freebsd-net@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Cc: "Jukka A. Ukkonen" Subject: msk0: initialization failed: no memory for Rx buffers X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Dec 2011 22:02:47 -0000 Hi folks, FWIW, if any developers cares, I'm getting the same problem as Jukka A. Ukkonen in [0], that is, an msk(4) interface stuck in: msk0: prefetch unit stuck? msk0: initialization failed: no memory for Rx buffers hardware involved here is: # dmesg [...] mskc0: port 0xbe00-0xbeff mem 0xfdefc000-0xfdefffff irq 16 at device 0.0 on pci1 msk0: on mskc0 msk0: Ethernet address: 00:03:2d:09:94:3a miibus0: on msk0 # pciconf -l [...] mskc0@pci0:1:0:0: class=0x020000 card=0x43401148 chip=0x436211ab rev=0x19 hdr=0x00 mskc1@pci0:2:0:0: class=0x020000 card=0x43401148 chip=0x436211ab rev=0x19 hdr=0x00 mskc2@pci0:3:0:0: class=0x020000 card=0x43401148 chip=0x436211ab rev=0x19 hdr=0x00 mskc3@pci0:4:0:0: class=0x020000 card=0x43401148 chip=0x436211ab rev=0x19 hdr=0x00 Memory on the system is fine: # vmstat procs memory page disk faults cpu r b w avm fre flt re pi po fr sr ad0 in sy cs us sy id 0 0 0 52844K 1957M 0 0 0 0 0 0 0 51 34 4044 0 0 100 # netstat -m 719/946/1665 mbufs in use (current/cache/total) 717/825/1542/262144 mbuf clusters in use (current/cache/total/max) 717/819 mbuf+clusters out of packet secondary zone in use (current/cache) 0/5/5/131072 4k (page size) jumbo clusters in use (current/cache/total/max) 0/0/0/65536 9k jumbo clusters in use (current/cache/total/max) 0/0/0/32768 16k jumbo clusters in use (current/cache/total/max) 1613K/1906K/3520K bytes allocated to network (current/cache/total) 0/0/0 requests for mbufs denied (mbufs/clusters/mbuf+clusters) 0/0/0 requests for jumbo clusters denied (4k/9k/16k) 0/3/6656 sfbufs in use (current/peak/max) 0 requests for sfbufs denied 0 requests for sfbufs delayed 0 requests for I/O initiated by sendfile 0 calls to protocol drain routines Faulty code is from 8-STABLE, i386, locally built with FLOWTABLES and ROUTETABLES=8. Jukka's report seems to point out that -current is no better. Problem happened after a few minutes of not-so-heavy transfer. - Arnaud [0]: http://lists.freebsd.org/pipermail/freebsd-questions/2011-November/235646.html From owner-freebsd-net@FreeBSD.ORG Tue Dec 6 22:18:59 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5F492106564A for ; Tue, 6 Dec 2011 22:18:59 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 27F818FC0C for ; Tue, 6 Dec 2011 22:18:58 +0000 (UTC) Received: by iafi7 with SMTP id i7so7982455iaf.13 for ; Tue, 06 Dec 2011 14:18:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:date:to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=g2ACbZGLF5Cr4LQjOIZvFcbyjGVCwUIRv1NYxIMvIKU=; b=JgUwoWBJn9Khcbrq29PfGTgLvFfcdntXO3NsSA5u37s3F6X0Yyedz3tUFyVoQISPCR 7cEFsXA8Cm/M7Yj+P1WsObr5A5iI+8s5SxBP3x1HIwai/Wef9PgmxuU2ir/EVhQ9/C+N vB4rOXo6ZlPCEoY1lg/RfrjhvcaWKK8JWwBfA= Received: by 10.42.29.6 with SMTP id p6mr15825883icc.44.1323209938409; Tue, 06 Dec 2011 14:18:58 -0800 (PST) Received: from pyunyh@gmail.com ([174.35.1.224]) by mx.google.com with ESMTPS id wo4sm52032131igc.5.2011.12.06.14.18.55 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 06 Dec 2011 14:18:57 -0800 (PST) Received: by pyunyh@gmail.com (sSMTP sendmail emulation); Tue, 06 Dec 2011 14:18:44 -0800 From: YongHyeon PYUN Date: Tue, 6 Dec 2011 14:18:44 -0800 To: Arnaud Lacombe Message-ID: <20111206221844.GD5825@michelle.cdnetworks.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Cc: "Jukka A. Ukkonen" , freebsd-net@freebsd.org Subject: Re: msk0: initialization failed: no memory for Rx buffers X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Dec 2011 22:18:59 -0000 On Mon, Dec 05, 2011 at 05:02:45PM -0500, Arnaud Lacombe wrote: > Hi folks, > > FWIW, if any developers cares, I'm getting the same problem as Jukka > A. Ukkonen in [0], that is, an msk(4) interface stuck in: > > msk0: prefetch unit stuck? > msk0: initialization failed: no memory for Rx buffers > If you upgraded from pre-r223396, try cold-boot. Note, you may have to completely remove power cord for a while before boot. The prefetch unit stuck message will show when RX checksum offloading initialization failed. If cold boot has no effect, try disabling RX checksum offloading. > hardware involved here is: > > # dmesg > [...] > mskc0: port 0xbe00-0xbeff mem > 0xfdefc000-0xfdefffff irq 16 at device 0.0 on pci1 > msk0: on mskc0 > msk0: Ethernet address: 00:03:2d:09:94:3a > miibus0: on msk0 > > # pciconf -l > [...] > mskc0@pci0:1:0:0: class=0x020000 card=0x43401148 chip=0x436211ab > rev=0x19 hdr=0x00 > mskc1@pci0:2:0:0: class=0x020000 card=0x43401148 chip=0x436211ab > rev=0x19 hdr=0x00 > mskc2@pci0:3:0:0: class=0x020000 card=0x43401148 chip=0x436211ab > rev=0x19 hdr=0x00 > mskc3@pci0:4:0:0: class=0x020000 card=0x43401148 chip=0x436211ab > rev=0x19 hdr=0x00 > > Memory on the system is fine: > > # vmstat > procs memory page disk faults cpu > r b w avm fre flt re pi po fr sr ad0 in sy cs us sy id > 0 0 0 52844K 1957M 0 0 0 0 0 0 0 51 34 4044 0 0 100 > > # netstat -m > 719/946/1665 mbufs in use (current/cache/total) > 717/825/1542/262144 mbuf clusters in use (current/cache/total/max) > 717/819 mbuf+clusters out of packet secondary zone in use (current/cache) > 0/5/5/131072 4k (page size) jumbo clusters in use (current/cache/total/max) > 0/0/0/65536 9k jumbo clusters in use (current/cache/total/max) > 0/0/0/32768 16k jumbo clusters in use (current/cache/total/max) > 1613K/1906K/3520K bytes allocated to network (current/cache/total) > 0/0/0 requests for mbufs denied (mbufs/clusters/mbuf+clusters) > 0/0/0 requests for jumbo clusters denied (4k/9k/16k) > 0/3/6656 sfbufs in use (current/peak/max) > 0 requests for sfbufs denied > 0 requests for sfbufs delayed > 0 requests for I/O initiated by sendfile > 0 calls to protocol drain routines > > Faulty code is from 8-STABLE, i386, locally built with FLOWTABLES and > ROUTETABLES=8. Jukka's report seems to point out that -current is no > better. > > Problem happened after a few minutes of not-so-heavy transfer. > > - Arnaud > > [0]: http://lists.freebsd.org/pipermail/freebsd-questions/2011-November/235646.html From owner-freebsd-net@FreeBSD.ORG Wed Dec 7 01:00:13 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6AED8106564A for ; Wed, 7 Dec 2011 01:00:12 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 210098FC12 for ; Wed, 7 Dec 2011 01:00:11 +0000 (UTC) Received: by iafi7 with SMTP id i7so49387iaf.13 for ; Tue, 06 Dec 2011 17:00:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:date:to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=w/0NkxtMR4DuGd6eEdsF/Or1OJ8dHZofTQ0XaEqiMiI=; b=k3Rr4pa6kIIg2nh0SeQLflSNh5sSL7GhmBJMh7anI9/S0wvUMzbrYSG/zy3wbSbfHD 5zMKfxq56KVfs+FvI34iw4R7NB2uH+fERrJBu++B5Wr5K/1GO+/3H9HtMibf9LFfaKKc TD9Epevj8dbsbKVUE3wNwglchlsSDZpYXiiOk= Received: by 10.231.45.205 with SMTP id g13mr3969803ibf.8.1323219611476; Tue, 06 Dec 2011 17:00:11 -0800 (PST) Received: from pyunyh@gmail.com ([174.35.1.224]) by mx.google.com with ESMTPS id l28sm101093ibc.3.2011.12.06.17.00.09 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 06 Dec 2011 17:00:10 -0800 (PST) Received: by pyunyh@gmail.com (sSMTP sendmail emulation); Tue, 06 Dec 2011 16:59:58 -0800 From: YongHyeon PYUN Date: Tue, 6 Dec 2011 16:59:58 -0800 To: Sami Halabi Message-ID: <20111207005958.GE5825@michelle.cdnetworks.com> References: <20111205022730.GE1729@michelle.cdnetworks.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="ReaqsoxgOBHFXBhH" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Cc: freebsd-net@freebsd.org Subject: Re: Problem on re0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Dec 2011 01:00:13 -0000 --ReaqsoxgOBHFXBhH Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Dec 05, 2011 at 01:53:03PM +0200, Sami Halabi wrote: > Hi, > Dmesg: > > re0: port > 0x9000-0x90ff mem 0xf4000000-0xf40000ff irq 16 at device 6.0 on pci1 > re0: Chip rev. 0x10000000 > re0: MAC rev. 0x00000000 > miibus0: on re0 > rgephy0: PHY 1 on miibus0 > rgephy0: 10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX, 100baseTX-FDX, > 100baseTX-FDX-flow, 1000baseT, 1000baseT-master, 1000baseT-FDX, > 1000baseT-FDX-master, 1000baseT-FDX-flow, 1000baseT-FDX-flow-master, auto, > auto-flow > re0: Ethernet address: 00:a1:b0:69:15:5d > re0: [FILTER] > re1: port > 0x9400-0x94ff mem 0xf4001000-0xf40010ff irq 17 at device 7.0 on pci1 > re1: Chip rev. 0x10000000 > re1: MAC rev. 0x00000000 > miibus1: on re1 > rgephy1: PHY 1 on miibus1 > rgephy1: 10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX, 100baseTX-FDX, > 100baseTX-FDX-flow, 1000baseT, 1000baseT-master, 1000baseT-FDX, > 1000baseT-FDX-master, 1000baseT-FDX-flow, 1000baseT-FDX-flow-master, auto, > auto-flow > re1: Ethernet address: 00:a1:b0:69:76:28 > re1: [FILTER] > Thanks for the info. > ------------------------------------------------ > here is "sysctl dev.re.0.stats=1" output: > Dec 5 14:58:27 mpd kernel: re0 statistics: > Dec 5 14:58:27 mpd kernel: Tx frames : 15790052 > Dec 5 14:58:27 mpd kernel: Rx frames : 11847483 > Dec 5 14:58:27 mpd kernel: Tx errors : 0 > Dec 5 14:58:27 mpd kernel: Rx errors : 10378 > Dec 5 14:58:27 mpd kernel: Rx missed frames : 0 > Dec 5 14:58:27 mpd kernel: Rx frame alignment errs : 0 > Dec 5 14:58:27 mpd kernel: Tx single collisions : 0 > Dec 5 14:58:27 mpd kernel: Tx multiple collisions : 0 > Dec 5 14:58:27 mpd kernel: Rx unicast frames : 11847483 > Dec 5 14:58:27 mpd kernel: Rx broadcast frames : 0 > Dec 5 14:58:27 mpd kernel: Rx multicast frames : 0 > Dec 5 14:58:27 mpd kernel: Tx aborts : 0 > Dec 5 14:58:27 mpd kernel: Tx underruns : 0 The MAC statistics do not show detailed information for RX errors. :-( > > here is current netstat: > Name Mtu Network Address Ipkts Ierrs Idrop Ibytes > Opkts Oerrs Obytes Coll > re0 1500 00:a1:b0:69:15:5d 294056550 280 0 > 86154803011 420449814 0 350472123744 0 Because driver updated if_ierrors counter, could you apply attached patch and let me know what values can you see on your console? > 01:00:5e:00:00:01 261 > 0 > re0 1500 188.64.96.4/3 5.1886496.royalsh 435 - - 35076 > 420439431 - 344585787536 - > re1* 1500 00:a1:b0:69:76:28 0 0 0 0 > 0 0 0 0 > > i had in the last 36 hours 7 time card stuck and ifconfig down/up... > > >When you notice the controller is in stuck condition, could you > >check which part(either TX or RX or both) of controller does not > >work? > how i can output that? > There is no knob to know that. You should be able to send some packets from the box when you know the controller is in stuck condition which may not be available option if the box is not on your desk. If you can access the box when its network is in stuck condition, try sending ICMP ECHO requests from re(4) host to other box in the LAN. And use tcpdum on the other box to know whether it can see the packets. If you can see ICMP ECHO requests, this means TX still works. For RX, send some packets to re(4) host and see whether re(4) can see these packets. --ReaqsoxgOBHFXBhH Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="re.rxstat.diff" Index: if_re.c =================================================================== --- if_re.c (revision 228311) +++ if_re.c (working copy) @@ -2183,6 +2183,9 @@ (rxstat & RL_RDESC_STAT_ERRS) == RL_RDESC_STAT_GIANT) rxerr = 0; if (rxerr != 0) { +#if 1 + printf("%#x ", rxstat); +#endif ifp->if_ierrors++; /* * If this is part of a multi-fragment packet, --ReaqsoxgOBHFXBhH-- From owner-freebsd-net@FreeBSD.ORG Wed Dec 7 02:34:21 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 68B771065672; Wed, 7 Dec 2011 02:34:21 +0000 (UTC) (envelope-from break19@gmail.com) Received: from mail-qw0-f47.google.com (mail-qw0-f47.google.com [209.85.216.47]) by mx1.freebsd.org (Postfix) with ESMTP id E733E8FC08; Wed, 7 Dec 2011 02:34:20 +0000 (UTC) Received: by qadb17 with SMTP id b17so3609321qad.13 for ; Tue, 06 Dec 2011 18:34:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=oxQQHluGKr6Tj1sLdTgu70uJFsSx+ianszDh3sds09A=; b=G7apc93M/UeWjFkf4nLJSpL38/39KEU4gbZ0dV+9FDhfhj94CNlsnf4NcswGj1y09r 5D1ItEVUVSSiil/C66c0I5C5Tv6xTkttjFLAf3an1LkzFQMrtbjppJFOWqYuWWXVUDCo 6UqajObKZP6TxVGCILXTW+phS+Z0pVNUWEjP8= MIME-Version: 1.0 Received: by 10.224.40.10 with SMTP id i10mr14710051qae.82.1323225260358; Tue, 06 Dec 2011 18:34:20 -0800 (PST) Received: by 10.229.24.143 with HTTP; Tue, 6 Dec 2011 18:34:19 -0800 (PST) In-Reply-To: References: <201110042008.48915.break19@gmail.com> <201110071816.17335.break19@gmail.com> <201110071936.50071.break19@gmail.com> <1322792905.1975.3.camel@esl.kevlo.org> <4ED846C1.5040109@gmail.com> <4EDC32F5.3020205@gmail.com> <4EDCA970.4050109@FreeBSD.org> Date: Tue, 6 Dec 2011 20:34:19 -0600 Message-ID: From: Chuck Burns To: Bernhard Schmidt Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: "Andrey V. Elsukov" , Adrian Chadd , freebsd-net@freebsd.org Subject: Re: [urtw] Wifi link dying randomly. reboot required to reconnect. X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Dec 2011 02:34:21 -0000 It crashed again earlier, and I have another trace for you. My wifi died, and I tried service netif restart. It refused to associate to the WAP. Unplugging the dongle then caused a kernel panic, attached is the core.txt file from the dump. On Mon, Dec 5, 2011 at 7:59 AM, Bernhard Schmidt w= rote: > On Mon, Dec 5, 2011 at 14:44, Chuck Burns wrote: >> freebeast dumped core - see /var/crash/vmcore.0 >> Sun Dec =A04 14:58:49 CST 2011 >> FreeBSD freebeast 10.0-CURRENT FreeBSD 10.0-CURRENT #4 r228221: Sat >> Dec =A03 09:10:37 CST 2011 >> toor@freebeast:/usr/obj/usr/src/sys/GENERIC =A0amd64 >> panic: >> .. >> #9 =A00xffffffff8092f692 in node_free (ni=3D0xffffff8003565000) >> =A0 =A0at ieee80211_ratectl.h:84 >> #10 0xffffffff8071634b in urtw_free_data_list (sc=3DVariable "sc" is not >> available. >> ) >> =A0 =A0at /usr/src/sys/dev/usb/wlan/if_urtw.c:989 >> #11 0xffffffff8071bf75 in urtw_detach (dev=3D0xfffffe0005b22a00) >> =A0 =A0at /usr/src/sys/dev/usb/wlan/if_urtw.c:957 >> #12 0xffffffff80868d54 in device_detach (dev=3D0xfffffe0005b22a00) >> =A0 =A0at device_if.h:214 >> #13 0xffffffff806df6a8 in usb_detach_device (udev=3D0xfffffe0005b19000, >> =A0 =A0iface_index=3D32 ' ', flag=3DVariable "flag" is not available. >> ) at /usr/src/sys/dev/usb/usb_device.c:1062 >> #14 0xffffffff806dffc4 in usb_unconfigure (udev=3D0xfffffe0005b19000, >> flag=3DVariable "flag" is not available. > > ni/vap does no longer exist at that point because it has been free'd > before. How about attached patch? > > -- > Bernhard From owner-freebsd-net@FreeBSD.ORG Wed Dec 7 07:55:23 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 867A1106566B for ; Wed, 7 Dec 2011 07:55:23 +0000 (UTC) (envelope-from sodynet1@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 4FE548FC15 for ; Wed, 7 Dec 2011 07:55:23 +0000 (UTC) Received: by iafi7 with SMTP id i7so881078iaf.13 for ; Tue, 06 Dec 2011 23:55:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=j3uCtTd/hk92tNwoRCv9ZObvHQoyjsCt8RqwI6XeQlk=; b=QAuh/2WujV0Ijt8hK711ROUuYzK1Bna4e+q01hjY3ZoDPl5n3snZliZTa8pMH5COEH HOh6RZzC4zYQ11yZhjVJt+XY10gxbUamE3p2IxuZXQk0SyYqpXUbPHN07HLbo9R0zZuZ 3GhYviP/UH74ZwZTqwZZAaaqlYg+dPrOSbWwY= MIME-Version: 1.0 Received: by 10.50.40.135 with SMTP id x7mr18527733igk.48.1323244522638; Tue, 06 Dec 2011 23:55:22 -0800 (PST) Received: by 10.231.19.72 with HTTP; Tue, 6 Dec 2011 23:55:22 -0800 (PST) In-Reply-To: <20111207005958.GE5825@michelle.cdnetworks.com> References: <20111205022730.GE1729@michelle.cdnetworks.com> <20111207005958.GE5825@michelle.cdnetworks.com> Date: Wed, 7 Dec 2011 09:55:22 +0200 Message-ID: From: Sami Halabi To: pyunyh@gmail.com Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-net@freebsd.org Subject: Re: Problem on re0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Dec 2011 07:55:23 -0000 Hi, the patch failed, As i see /usr/src/dev/re/if_re.c has the following at line 1943: if (rxstat & RL_RDESC_STAT_RXERRSUM && !(total_len > 8191 && (rxstat & RL_RDESC_STAT_ERRS) == RL_RDESC_STAT_GIANT)) { ifp->if_ierrors++; /* * If this is part of a multi-fragment packet, * discard all the pieces. */ if (sc->rl_head != NULL) { m_freem(sc->rl_head); sc->rl_head = sc->rl_tail = NULL; } re_discard_rxbuf(sc, i); continue; } these are sources for 8.2-R+p4 Sami On Wed, Dec 7, 2011 at 2:59 AM, YongHyeon PYUN wrote: > On Mon, Dec 05, 2011 at 01:53:03PM +0200, Sami Halabi wrote: > > Hi, > > Dmesg: > > > > re0: port > > 0x9000-0x90ff mem 0xf4000000-0xf40000ff irq 16 at device 6.0 on pci1 > > re0: Chip rev. 0x10000000 > > re0: MAC rev. 0x00000000 > > miibus0: on re0 > > rgephy0: PHY 1 on miibus0 > > rgephy0: 10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX, > 100baseTX-FDX, > > 100baseTX-FDX-flow, 1000baseT, 1000baseT-master, 1000baseT-FDX, > > 1000baseT-FDX-master, 1000baseT-FDX-flow, 1000baseT-FDX-flow-master, > auto, > > auto-flow > > re0: Ethernet address: 00:a1:b0:69:15:5d > > re0: [FILTER] > > re1: port > > 0x9400-0x94ff mem 0xf4001000-0xf40010ff irq 17 at device 7.0 on pci1 > > re1: Chip rev. 0x10000000 > > re1: MAC rev. 0x00000000 > > miibus1: on re1 > > rgephy1: PHY 1 on miibus1 > > rgephy1: 10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX, > 100baseTX-FDX, > > 100baseTX-FDX-flow, 1000baseT, 1000baseT-master, 1000baseT-FDX, > > 1000baseT-FDX-master, 1000baseT-FDX-flow, 1000baseT-FDX-flow-master, > auto, > > auto-flow > > re1: Ethernet address: 00:a1:b0:69:76:28 > > re1: [FILTER] > > > > Thanks for the info. > > > ------------------------------------------------ > > here is "sysctl dev.re.0.stats=1" output: > > Dec 5 14:58:27 mpd kernel: re0 statistics: > > Dec 5 14:58:27 mpd kernel: Tx frames : 15790052 > > Dec 5 14:58:27 mpd kernel: Rx frames : 11847483 > > Dec 5 14:58:27 mpd kernel: Tx errors : 0 > > Dec 5 14:58:27 mpd kernel: Rx errors : 10378 > > Dec 5 14:58:27 mpd kernel: Rx missed frames : 0 > > Dec 5 14:58:27 mpd kernel: Rx frame alignment errs : 0 > > Dec 5 14:58:27 mpd kernel: Tx single collisions : 0 > > Dec 5 14:58:27 mpd kernel: Tx multiple collisions : 0 > > Dec 5 14:58:27 mpd kernel: Rx unicast frames : 11847483 > > Dec 5 14:58:27 mpd kernel: Rx broadcast frames : 0 > > Dec 5 14:58:27 mpd kernel: Rx multicast frames : 0 > > Dec 5 14:58:27 mpd kernel: Tx aborts : 0 > > Dec 5 14:58:27 mpd kernel: Tx underruns : 0 > > The MAC statistics do not show detailed information for RX errors. > :-( > > > > > here is current netstat: > > Name Mtu Network Address Ipkts Ierrs Idrop > Ibytes > > Opkts Oerrs Obytes Coll > > re0 1500 00:a1:b0:69:15:5d 294056550 280 0 > > 86154803011 420449814 0 350472123744 0 > > Because driver updated if_ierrors counter, could you apply attached > patch and let me know what values can you see on your console? > > > 01:00:5e:00:00:01 261 > > 0 > > re0 1500 188.64.96.4/3 5.1886496.royalsh 435 - - > 35076 > > 420439431 - 344585787536 - > > re1* 1500 00:a1:b0:69:76:28 0 0 0 > 0 > > 0 0 0 0 > > > > i had in the last 36 hours 7 time card stuck and ifconfig down/up... > > > > >When you notice the controller is in stuck condition, could you > > >check which part(either TX or RX or both) of controller does not > > >work? > > how i can output that? > > > > There is no knob to know that. You should be able to send some > packets from the box when you know the controller is in stuck > condition which may not be available option if the box is not on > your desk. > > If you can access the box when its network is in stuck condition, > try sending ICMP ECHO requests from re(4) host to other box in the > LAN. And use tcpdum on the other box to know whether it can see the > packets. If you can see ICMP ECHO requests, this means TX still > works. For RX, send some packets to re(4) host and see whether re(4) > can see these packets. > -- Sami Halabi Information Systems Engineer NMS Projects Expert From owner-freebsd-net@FreeBSD.ORG Wed Dec 7 23:58:24 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 619921065670 for ; Wed, 7 Dec 2011 23:58:24 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from mail-gx0-f182.google.com (mail-gx0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id 1D8628FC15 for ; Wed, 7 Dec 2011 23:58:23 +0000 (UTC) Received: by ggnp1 with SMTP id p1so1705594ggn.13 for ; Wed, 07 Dec 2011 15:58:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:date:to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=YcA8jsvopf2+rybsUKZFdXOiYF/k6PhqGck7ZMHgNA4=; b=mGuP7KYUX9k0vsFHkzKYcN+zfgMlQRmJRF5k8M7iJIQie3f//9xDqVfnyNh512h3ui k0Vf2LRoaViuP23eLA5hsrHEdHDNFqj7Jt+A3P+wzTZLE3hHlZRXtzrS0+0xaSGZE49j V4vpVcqCgHWJZX80KxQxvG6Noe9Vv3/9Nt3Fk= Received: by 10.50.185.138 with SMTP id fc10mr1199484igc.33.1323302303324; Wed, 07 Dec 2011 15:58:23 -0800 (PST) Received: from pyunyh@gmail.com ([174.35.1.224]) by mx.google.com with ESMTPS id ew6sm6635126igc.4.2011.12.07.15.58.20 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 07 Dec 2011 15:58:22 -0800 (PST) Received: by pyunyh@gmail.com (sSMTP sendmail emulation); Wed, 07 Dec 2011 15:58:10 -0800 From: YongHyeon PYUN Date: Wed, 7 Dec 2011 15:58:10 -0800 To: Sami Halabi Message-ID: <20111207235810.GB9211@michelle.cdnetworks.com> References: <20111205022730.GE1729@michelle.cdnetworks.com> <20111207005958.GE5825@michelle.cdnetworks.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Cc: freebsd-net@freebsd.org Subject: Re: Problem on re0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Dec 2011 23:58:24 -0000 On Wed, Dec 07, 2011 at 09:55:22AM +0200, Sami Halabi wrote: > Hi, > > the patch failed, As i see /usr/src/dev/re/if_re.c has the following at > line 1943: > if (rxstat & RL_RDESC_STAT_RXERRSUM && !(total_len > 8191 && > (rxstat & RL_RDESC_STAT_ERRS) == RL_RDESC_STAT_GIANT)) { > ifp->if_ierrors++; Just past the code right here like the following. #if 1 printf("%#x ", rxstat); #endif It's a single line printf. :-) > /* > * If this is part of a multi-fragment packet, > * discard all the pieces. > */ > if (sc->rl_head != NULL) { > m_freem(sc->rl_head); > sc->rl_head = sc->rl_tail = NULL; > } > re_discard_rxbuf(sc, i); > continue; > } > > these are sources for 8.2-R+p4 > > Sami From owner-freebsd-net@FreeBSD.ORG Thu Dec 8 09:56:52 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 49D62106566B for ; Thu, 8 Dec 2011 09:56:52 +0000 (UTC) (envelope-from sodynet1@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 13CD08FC14 for ; Thu, 8 Dec 2011 09:56:51 +0000 (UTC) Received: by iafi7 with SMTP id i7so3916482iaf.13 for ; Thu, 08 Dec 2011 01:56:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=ZP94oXHof5daXezy7GTeSmoMsbGGiXalXwz7+Ot6wqY=; b=gveXu0kq9OhCv5mEyrIlxHVI5th3lGZfGH35Ryn0tXfN/TPREPTPyrPTztP+ZrYzVY 3y3td1YUXoTsRkE51XFa+uwx5D8bEELuvk/XxwWe18jOA4fha3dN3Sge2UkkvfIULgZc kXobwZ2pBzEcyPoNhx7TOvEL54lIq1Cctdf5g= MIME-Version: 1.0 Received: by 10.42.173.71 with SMTP id q7mr2774734icz.43.1323338211413; Thu, 08 Dec 2011 01:56:51 -0800 (PST) Received: by 10.231.19.72 with HTTP; Thu, 8 Dec 2011 01:56:51 -0800 (PST) In-Reply-To: <20111207235810.GB9211@michelle.cdnetworks.com> References: <20111205022730.GE1729@michelle.cdnetworks.com> <20111207005958.GE5825@michelle.cdnetworks.com> <20111207235810.GB9211@michelle.cdnetworks.com> Date: Thu, 8 Dec 2011 11:56:51 +0200 Message-ID: From: Sami Halabi To: pyunyh@gmail.com Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-net@freebsd.org Subject: Re: Problem on re0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Dec 2011 09:56:52 -0000 hi, i can see what it does. how do i compile the driver and load it instead of the running driver without restarting? its a production server. Thanks, Sami On Thu, Dec 8, 2011 at 1:58 AM, YongHyeon PYUN wrote: > On Wed, Dec 07, 2011 at 09:55:22AM +0200, Sami Halabi wrote: > > Hi, > > > > the patch failed, As i see /usr/src/dev/re/if_re.c has the following at > > line 1943: > > if (rxstat & RL_RDESC_STAT_RXERRSUM && !(total_len > 8191 > && > > (rxstat & RL_RDESC_STAT_ERRS) == > RL_RDESC_STAT_GIANT)) { > > ifp->if_ierrors++; > > > Just past the code right here like the following. > #if 1 > printf("%#x ", rxstat); > #endif > > It's a single line printf. :-) > > > /* > > * If this is part of a multi-fragment packet, > > * discard all the pieces. > > */ > > if (sc->rl_head != NULL) { > > m_freem(sc->rl_head); > > sc->rl_head = sc->rl_tail = NULL; > > } > > re_discard_rxbuf(sc, i); > > continue; > > } > > > > these are sources for 8.2-R+p4 > > > > Sami > -- Sami Halabi Information Systems Engineer NMS Projects Expert From owner-freebsd-net@FreeBSD.ORG Thu Dec 8 21:53:10 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7409B106566B for ; Thu, 8 Dec 2011 21:53:10 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 350EB8FC0A for ; Thu, 8 Dec 2011 21:53:09 +0000 (UTC) Received: by iafi7 with SMTP id i7so5220831iaf.13 for ; Thu, 08 Dec 2011 13:53:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:date:to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=9CAKE7ON85zxHCwZ1dI4rTZHJNKZDjSkJYqeeR6HVJs=; b=TXx/Z1iSthf60lF6+mDs8pt+w8uq3EbPlkdiSndyn7ssfiOic5riFMLeAwFLU721YI B18dnwLTljQjmy+l2fUxtHFK72BPBTBTcZ8hodo1hjIFWkOeeiGZRJxFmIEV/0TJqoLG Soai/HdbRz4nBB9wbp0uouYI1f5wf5gPdlh3E= Received: by 10.42.76.66 with SMTP id d2mr581257ick.7.1323381189430; Thu, 08 Dec 2011 13:53:09 -0800 (PST) Received: from pyunyh@gmail.com ([174.35.1.224]) by mx.google.com with ESMTPS id e2sm24128549ibe.0.2011.12.08.13.53.06 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 08 Dec 2011 13:53:07 -0800 (PST) Received: by pyunyh@gmail.com (sSMTP sendmail emulation); Thu, 08 Dec 2011 13:52:56 -0800 From: YongHyeon PYUN Date: Thu, 8 Dec 2011 13:52:56 -0800 To: Sami Halabi Message-ID: <20111208215256.GB13605@michelle.cdnetworks.com> References: <20111205022730.GE1729@michelle.cdnetworks.com> <20111207005958.GE5825@michelle.cdnetworks.com> <20111207235810.GB9211@michelle.cdnetworks.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Cc: freebsd-net@freebsd.org Subject: Re: Problem on re0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Dec 2011 21:53:10 -0000 On Thu, Dec 08, 2011 at 11:56:51AM +0200, Sami Halabi wrote: > hi, > i can see what it does. > how do i compile the driver and load it instead of the running driver > without restarting? its a production server. There is no such way. You have to rebuild/install kernel and reboot. > > Thanks, > Sami > > On Thu, Dec 8, 2011 at 1:58 AM, YongHyeon PYUN wrote: > > > On Wed, Dec 07, 2011 at 09:55:22AM +0200, Sami Halabi wrote: > > > Hi, > > > > > > the patch failed, As i see /usr/src/dev/re/if_re.c has the following at > > > line 1943: > > > if (rxstat & RL_RDESC_STAT_RXERRSUM && !(total_len > 8191 > > && > > > (rxstat & RL_RDESC_STAT_ERRS) == > > RL_RDESC_STAT_GIANT)) { > > > ifp->if_ierrors++; > > > > > > Just past the code right here like the following. > > #if 1 > > printf("%#x ", rxstat); > > #endif > > > > It's a single line printf. :-) > > > > > /* > > > * If this is part of a multi-fragment packet, > > > * discard all the pieces. > > > */ > > > if (sc->rl_head != NULL) { > > > m_freem(sc->rl_head); > > > sc->rl_head = sc->rl_tail = NULL; > > > } > > > re_discard_rxbuf(sc, i); > > > continue; > > > } > > > > > > these are sources for 8.2-R+p4 > > > > > > Sami > > > > > > -- > Sami Halabi > Information Systems Engineer > NMS Projects Expert From owner-freebsd-net@FreeBSD.ORG Fri Dec 9 06:38:33 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EC1EF1065670 for ; Fri, 9 Dec 2011 06:38:33 +0000 (UTC) (envelope-from rozhuk.im@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 7F2A48FC08 for ; Fri, 9 Dec 2011 06:38:33 +0000 (UTC) Received: by bkbzv15 with SMTP id zv15so3193029bkb.13 for ; Thu, 08 Dec 2011 22:38:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=reply-to:from:to:subject:date:message-id:mime-version:content-type :content-transfer-encoding:x-mailer:thread-index:content-language; bh=5d7z5snzXC7SA0aWOUzc7MR0Hoaj/K5pCjr8ywQ9oW8=; b=JhzZoSMRHqLg/DL34hvLknK1ZQGIZ5D9GVI+d0/E5CTOpgETAckOy4YdY3zQW89tIM 81PslwShXhjs3Tl2sPrtTNwRcnSRBKh7QDCrOR0+6muhgIprkz6sf3O6iPzqEOEkSawb lXsLP7Ix+AjNJD/5wXT29RRi8FGeK9Zi5TbxY= Received: by 10.205.130.5 with SMTP id hk5mr2860014bkc.74.1323411129835; Thu, 08 Dec 2011 22:12:09 -0800 (PST) Received: from rimwks1w7x64 ([188.168.19.247]) by mx.google.com with ESMTPS id e18sm7174203bkr.15.2011.12.08.22.12.07 (version=SSLv3 cipher=OTHER); Thu, 08 Dec 2011 22:12:07 -0800 (PST) From: rozhuk.im@gmail.com To: Date: Fri, 9 Dec 2011 15:12:00 +0900 Message-ID: <4ee1a6b7.d278cc0a.6239.ffffc1f3@mx.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Acy2OXaUodwVOs5HSqebLy5EgmdtFg== Content-Language: ru Subject: igmpprixy replacement X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Rozhuk.IM@gmail.com List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Dec 2011 06:38:34 -0000 Hi! igmpprixy and mrouted - did not work, I wrote on netgraph replacement. This is a good example of the opportunities ng_bpf I propose to place in: /usr/share/examples/netgraph http://www.netlab.linkpc.net/download/software/FreeBSD/mcastbridge/mcastbr2. sh From owner-freebsd-net@FreeBSD.ORG Fri Dec 9 06:51:16 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 60CCF1065672 for ; Fri, 9 Dec 2011 06:51:16 +0000 (UTC) (envelope-from lacombar@gmail.com) Received: from mail-ww0-f42.google.com (mail-ww0-f42.google.com [74.125.82.42]) by mx1.freebsd.org (Postfix) with ESMTP id E73908FC08 for ; Fri, 9 Dec 2011 06:51:15 +0000 (UTC) Received: by wgbds13 with SMTP id ds13so2747150wgb.1 for ; Thu, 08 Dec 2011 22:51:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=T7a45YVAH+TlOsM/qp+JLH7bpUa00scU80lsOmx+3HM=; b=Ckv6ymXV9xVITyxZ1sPfcHnsvdSl2ktKOAs6E2k/HY6r1ZMVaCx+dK/SsMH+JS23OI ejc+hyHX7QrELBUVT/+guDfs/zkjN37yTQV1/LTtX3uFrokVvXzsIS6CGsMUhfEBE8RY A+408yZdVUaNnft2pxTy001QlYQPBZAklcpuE= MIME-Version: 1.0 Received: by 10.180.104.103 with SMTP id gd7mr9621419wib.17.1323413474970; Thu, 08 Dec 2011 22:51:14 -0800 (PST) Received: by 10.180.94.2 with HTTP; Thu, 8 Dec 2011 22:51:14 -0800 (PST) In-Reply-To: <20111208215256.GB13605@michelle.cdnetworks.com> References: <20111205022730.GE1729@michelle.cdnetworks.com> <20111207005958.GE5825@michelle.cdnetworks.com> <20111207235810.GB9211@michelle.cdnetworks.com> <20111208215256.GB13605@michelle.cdnetworks.com> Date: Fri, 9 Dec 2011 01:51:14 -0500 Message-ID: From: Arnaud Lacombe To: pyunyh@gmail.com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-net@freebsd.org, Sami Halabi Subject: Re: Problem on re0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Dec 2011 06:51:16 -0000 Hi, On Thu, Dec 8, 2011 at 4:52 PM, YongHyeon PYUN wrote: > On Thu, Dec 08, 2011 at 11:56:51AM +0200, Sami Halabi wrote: >> hi, >> i can see what it does. >> how do i compile the driver and load it instead of the running driver >> without restarting? its a production server. > > There is no such way. =A0You have to rebuild/install kernel and > reboot. > How so ? AFAIK, you should be able to build the driver as a module, tell the bootloader to pre-load the module so that the built-in driver ends up being ignored. I did that some time ago with em(4). From memory, the steps should be: # From the source root % cd sys/modules/re % make % scp if_re.ko :/boot/kernel then on the target, add in `/boot/loader.conf': if_re_load=3D"YES" - Arnaud From owner-freebsd-net@FreeBSD.ORG Sat Dec 10 12:22:34 2011 Return-Path: Delivered-To: freebsd-net@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C5F441065670 for ; Sat, 10 Dec 2011 12:22:34 +0000 (UTC) (envelope-from ray@freebsd.org) Received: from smtp.dlink.ua (smtp.dlink.ua [193.138.187.146]) by mx1.freebsd.org (Postfix) with ESMTP id 866B98FC0C for ; Sat, 10 Dec 2011 12:22:34 +0000 (UTC) Received: from rnote.ddteam.net (5-21-133-95.pool.ukrtel.net [95.133.21.5]) (Authenticated sender: ray) by smtp.dlink.ua (Postfix) with ESMTPSA id 50B99C4935 for ; Sat, 10 Dec 2011 14:05:44 +0200 (EET) Date: Sat, 10 Dec 2011 14:05:40 +0200 From: Aleksandr Rybalko To: freebsd-net@FreeBSD.org Message-Id: <20111210140540.6301dfa9.ray@freebsd.org> Organization: FreeBSD.ORG X-Mailer: Sylpheed 3.1.0 (GTK+ 2.24.5; amd64-portbld-freebsd9.0) X-Operating-System: FreeBSD Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Subject: "float PHYs", communication between indirect attached devices X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Dec 2011 12:22:34 -0000 Hi net@ subscribers, Simple explanation of problem: real situation, device with two NICs (arge0 and arge1) arge0 attached to PHY w/o direct access to it. arge1 attached to switch MII port (and have access to MDIO bus). switch have child MDIO bus for all Physical ports. One of this ports (or his PHY) must be controlled by arge0. I will do pseudo PHY driver that must communicate with real one on switch MDIO bus. Question: how to communicate, since newbus can't handle two parents: 1) sysctl 2) events 3) kenv 4) something better globals is not a solution, because it is possible that we will have some device with more than one "float PHYs" please, help me to find best way! Wait for your suggestions, comments, hints, etc. WBW -- Aleksandr Rybalko From owner-freebsd-net@FreeBSD.ORG Sat Dec 10 14:06:04 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DDC46106566B for ; Sat, 10 Dec 2011 14:06:04 +0000 (UTC) (envelope-from marius@alchemy.franken.de) Received: from alchemy.franken.de (alchemy.franken.de [194.94.249.214]) by mx1.freebsd.org (Postfix) with ESMTP id 5EE008FC13 for ; Sat, 10 Dec 2011 14:06:04 +0000 (UTC) Received: from alchemy.franken.de (localhost [127.0.0.1]) by alchemy.franken.de (8.14.4/8.14.4/ALCHEMY.FRANKEN.DE) with ESMTP id pBAE63aF039553; Sat, 10 Dec 2011 15:06:03 +0100 (CET) (envelope-from marius@alchemy.franken.de) Received: (from marius@localhost) by alchemy.franken.de (8.14.4/8.14.4/Submit) id pBAE62Fr039552; Sat, 10 Dec 2011 15:06:02 +0100 (CET) (envelope-from marius) Date: Sat, 10 Dec 2011 15:06:02 +0100 From: Marius Strobl To: Aleksandr Rybalko Message-ID: <20111210140602.GA39223@alchemy.franken.de> References: <20111210140540.6301dfa9.ray@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20111210140540.6301dfa9.ray@freebsd.org> User-Agent: Mutt/1.4.2.3i Cc: freebsd-net@freebsd.org Subject: Re: "float PHYs", communication between indirect attached devices X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Dec 2011 14:06:04 -0000 On Sat, Dec 10, 2011 at 02:05:40PM +0200, Aleksandr Rybalko wrote: > Hi net@ subscribers, > > Simple explanation of problem: > real situation, device with two NICs (arge0 and arge1) > arge0 attached to PHY w/o direct access to it. > arge1 attached to switch MII port (and have access to MDIO bus). > > switch have child MDIO bus for all Physical ports. > One of this ports (or his PHY) must be controlled by arge0. > > I will do pseudo PHY driver that must communicate with real one on > switch MDIO bus. > > Question: how to communicate, since newbus can't handle two parents: > 1) sysctl > 2) events > 3) kenv > 4) something better > globals is not a solution, because it is possible that we will have > some device with more than one "float PHYs" > > please, help me to find best way! > > Wait for your suggestions, comments, hints, etc. > Given that this is one of the really awkward hardware hacks you'll only find in the embedded world I'd just change arge(4) to allocate its SYS_RES_MEMORY as RF_SHAREABLE and let arge0 search for the device_t of its sibling arge1 using device_get_children(9) on its parent or devclass_get_devices(9). Then for arge0 additionally allocate the SYS_RES_MEMORY of arge1 as RF_SHAREABLE and let arge0 use the latter in arge_miibus_{read,write}reg(). This requires a common mutex for the MII bus access but arge(4) actually already has a global miibus_mtx. A cleaner approach though more to code but in turn allowing to implement a generic solution for this problem would be a pseudo-bus driver roughly similar to f.e. puc(4) that takes care of the resource and MII bus sharing which the MAC drivers then attach to. This generic approach would have a common core dealing with the resource and MII bus sharing as such and chip/hardware specific glue for talking to a particular shared MII bus and also different bus front-ends (nexus(4), pci(4) etc.). That way one could f.e. also use a shared MII bus that is implemented via GPIO pins of the CPU with multiple MACs (as it isn't necessarily a MAC that the MII bus in question is attached to, at least we use something like that at $work). Marius