Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 29 Oct 2002 08:36:05 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 29 Oct 2002 08:36:05 -0500 Received: from dino.conectiva.com.br ([200.250.58.152]:57355 "EHLO dino.conectiva.com.br") by vger.kernel.org with ESMTP id ; Tue, 29 Oct 2002 08:36:02 -0500 From: acme@conectiva.com.br To: davem@redhat.com Subject: [PATCH] ipv4: move proc stuff from net/ipv4/af_inet.c to net/ipv4/proc.c Message-ID: <1035898927.3dbe902f7534c@webmail.conectiva.com.br> Date: Tue, 29 Oct 2002 11:42:07 -0200 (BRDT) Cc: linux-kernel@vger.kernel.org MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="-MOQ1035898927af6bd1332c7cd2b0cdca293da7a7d88e" User-Agent: IMP/PHP IMAP webmail program 2.2.8 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 10583 Lines: 156 This message is in MIME format. ---MOQ1035898927af6bd1332c7cd2b0cdca293da7a7d88e Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit David, Please consider pulling from: kernel.bkbits.net:/home/acme/net-2.5 This is to just flush my tree, I have confirmed the crash when using cat /proc/net/llc/core after psnap.o is loaded, will be fixing it, have not confirmed the crash using cat /proc/net/arp, will try it again in a different test case tho. - Arnaldo ---MOQ1035898927af6bd1332c7cd2b0cdca293da7a7d88e Content-Type: application/octet-stream; name="ip.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="ip.patch" WW91IGNhbiBpbXBvcnQgdGhpcyBjaGFuZ2VzZXQgaW50byBCSyBieSBwaXBpbmcgdGhpcyB3aG9s ZSBtZXNzYWdlIHRvOgonfCBiayByZWNlaXZlIFtwYXRoIHRvIHJlcG9zaXRvcnldJyBvciBhcHBs eSB0aGUgcGF0Y2ggYXMgdXN1YWwuCgo9PT09PT09PT09PT09PT09PT09PT09PT09PT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0FPPApNK1tWUSFeX1dePkYmQkZCRDkpO0RRXT1BKicu PVA7VDVSWD1VITlQMFghUEQ/VCgiMkJTP083V1lTSV9YCk1fQkM/UlVfJT03Uk9EIVtgPTM+YF8v TlwqTDdRN187TylKTU5EITMuWi82NlpgWkFEOVRSUkMkR0VLS0YKTVJKQjg2Vy1TJitKOzYzRVBV QSNeSktQSV9LQCtEVCY0UlUjK1lDL0glU0s0JCQnRCU6WD4hTTxQKDxUMgpNTTdGLTUtKT5HOkhC RlRRKy86OTdIXDIoWkM2SFomOiUpRFAsMz5LVDUlLVtZQ1tLK0YsW0NeU2A0QFIyCk1ZMllFXUpB UCdFN1NIL18wRyNOUzUtLkoxWy4vLDZDS189R1lFXz0/WCFRVz4nSStPWCEjQy1NUi45OUEKTSg5 TiVTRjwxQyY4KlcvSyItRiI/PE0iMltYN1lNT1pKMUk+VD9gJF1WKlJZLTdZREZNO0s6MFhRSz40 QApNI0c1SC83UjNZISlWRSNeNixIIz82J1wmPTY/Py9HX04rPlZVI0s0IjlfJ1Q1R18uMUIsKU1J US1eRlg8Ci8+XC9BLCQnX2AyMmAkLEdXJTBgYApgCmVuZAo= ---MOQ1035898927af6bd1332c7cd2b0cdca293da7a7d88e-- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/