From owner-freebsd-hackers@FreeBSD.ORG Tue Jan 1 18:39:57 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 14D7D16A417 for ; Tue, 1 Jan 2008 18:39:57 +0000 (UTC) (envelope-from pb@ludd.ltu.se) Received: from mother.ludd.ltu.se (mother.ludd.ltu.se [130.240.16.3]) by mx1.freebsd.org (Postfix) with ESMTP id 9A72B13C455 for ; Tue, 1 Jan 2008 18:39:56 +0000 (UTC) (envelope-from pb@ludd.ltu.se) Received: from brother.ludd.ltu.se (root@brother.ludd.ltu.se [130.240.16.78]) by mother.ludd.ltu.se (8.13.6+Sun/8.12.10) with ESMTP id m01IMZND015434 for ; Tue, 1 Jan 2008 19:22:35 +0100 (MET) Received: from brother.ludd.ltu.se (pb@localhost [127.0.0.1]) by brother.ludd.ltu.se (8.13.6+Sun/8.12.2) with ESMTP id m01IMZMt017096 for ; Tue, 1 Jan 2008 19:22:35 +0100 (MET) Received: (from pb@localhost) by brother.ludd.ltu.se (8.13.6+Sun/8.13.6/Submit) id m01IMZ9K017094 for freebsd-hackers@freebsd.org; Tue, 1 Jan 2008 19:22:35 +0100 (MET) From: Peter B Message-Id: <200801011822.m01IMZ9K017094@brother.ludd.ltu.se> To: freebsd-hackers@freebsd.org Date: Tue, 1 Jan 2008 19:22:35 +0100 (MET) X-Mailer: ELM [version 2.5 PL6] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Tue, 01 Jan 2008 18:44:26 +0000 Subject: 6.2R Patch to allow broken frames X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Jan 2008 18:39:57 -0000 I had to debug an phy+fpga setup and found this patch that makes tx(4) to allow broken/runt frames and includes both mac and crc32 useful. Maybe this could be a feature in the network drivers? (or some) I don't consider this production code. Rather a demo/suggestion. The quick patch is to just do the changes to tx_if.c disregarding any IFF_* flags. Any information if this would interfere with normal operation would be welcome. /P begin 644 patch_allow_broken_packets.bz2 M0EIH.3%!62936?DH3:L``:??@&@Z>7__^[__W^2_[__N8`:\^3,T`-``%``` ME$2CT>HF0TT>H?JCTCR@TQJ9``/4#0!Z@T-#C)DT:`T:8C(T,0P)HTQ!B-!A M``8<9,FC0&C3$9&AB&!-&F(,1H,(`#!(E1/()H9`&F0T`::&C0`&F0```<9, MFC0&C3$9&AB&!-&F(,1H,(`#`JB30!$VDQ-`1-/4&4Q&3$Q--&0,GJ,CR&IC M&'43;8U"H(*A.@D&*$TTTQC4PE@;#?N7)$KI>:)R:@NWVXGBD&`PD1!!E$&H M?BIWNA4O4E5]BQ[%IV)BE_#[4678)BU2+IQTL3NI"N#K16M9SP]\Q46Y72LN M][WIPVHPCP2F3&)L;"P-*!I*(A%="!L:;I59LVP-`5"2/)&2H4P"08I[39[D MH^\_I"WA*56=BG#M637DLM;69(0Q13-60K7R_.,&H;I8NJN^AENABHQ4BGHA*P^\_871<]I^BC!7?N. M'AT+H\%UJQ@]3E=P8LV"Q6?,FN:BD9,[L<67L8J86]73,S,S1M?1PW/F=A2M M(3-.6^%=UKXZ>FBN MYS1\LHF)1+9)1$'4A8B43!,+GR/&(P;71QB.IL8/J4Q+V;YG%A1.#T.N"W(_E)R9LF1X%61H)/8X0^W2/2ZJH<[> M[FL2*OL*J?-12([4K5C%0ZPZ M*.]F^5>T8C%M*9RL4DF8W7:)6*);CY\XO=1?28OO2E19G.&:MJ5RBS!;3*C1 M9>G"MBD842P+6%ZM5J5E-#4H5+X4OV49M(P8*L;XHFN5?GI-,+-^V^FF,V^) M\LA&/);LPXA@C%FG,!GAPBHAN((+RX2@\A2N<7D]<1_;_E5>F<2S3)1^ M225L?\?5U=C;"T]Q@^."6<6DWK#1 M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