i386/167217: catch an over 1024 Bytes network packet through libpcap in C

[ Available lists | Index of freebsd-i386 | Month of Apr 2012 | Week of 23 Apr 2012 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Shun-Hsiang Hu <agg2567@gmail.com>
Date
23 Apr 2012 01:20:04
Subject
i386/167217: catch an over 1024 Bytes network packet through libpcap in C
Message-ID
201204230113.q3N1D0n6095572@red.freebsd.org


[ Hide this part ]
 
>Number: 167217
>Category: i386
>Synopsis: catch an over 1024 Bytes network packet through libpcap in C
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-i386
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Mon Apr 23 01:20:04 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: Shun-Hsiang Hu
>Release: 7.0-release
>Organization:
National Taiwan University of Taiwan
>Environment:
FreeBSD test.twbbs.org 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008 root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386

>Description:
I want develop a packet filter by C language, I develop the filter through an library what is libpcap, but i discover a problem.

When I catch a network packet what is over 1024 bytes, the data what is over 1024 bytes will be loss, but the packet's length is true.

I am not sure that is a bug or not, but the same program run on Ubuntu, it is no problem. Thank you
>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:

Elapsed time: 0.137 seconds