PERFORCE change 141604 for review
Rui Paulo
rpaulo at FreeBSD.org
Wed May 14 19:20:12 UTC 2008
http://perforce.freebsd.org/chv.cgi?CH=141604
Change 141604 by rpaulo at rpaulo_epsilon on 2008/05/14 19:19:30
linkhdr_headerlen(): fix for cycle stop logic.
Affected files ...
.. //depot/projects/soc2008/rpaulo-tcpad/linkhdr.c#5 edit
Differences ...
==== //depot/projects/soc2008/rpaulo-tcpad/linkhdr.c#5 (text+ko) ====
@@ -23,7 +23,7 @@
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
- * $P4: //depot/projects/soc2008/rpaulo-tcpad/linkhdr.c#4 $
+ * $P4: //depot/projects/soc2008/rpaulo-tcpad/linkhdr.c#5 $
*/
#include <net/ethernet.h>
@@ -63,7 +63,7 @@
DPRINTF("dlt = %d\n", dlt);
- for (i = 0; linktypes[i].type == -1; i++) {
+ for (i = 0; linktypes[i].type != -1; i++) {
if (linktypes[i].type == dlt) {
DPRINTF("hlen = %d\n", linktypes[i].skip);
return (linktypes[i].skip);
More information about the p4-projects
mailing list