On Wed, Aug 18, 2010 at 1:54 AM, Oliver Eales <[email protected]> wrote:
>  Am 17.08.2010 18:50, schrieb Aaron Turner:
>> On Tue, Aug 17, 2010 at 8:57 AM, Oliver Eales<[email protected]>  wrote:
>>>   Am 16.08.2010 01:26, schrieb Aaron Turner:
>>>>       - Initial Linux TX_RING sending support (#435)
>>> Hello Aaron,
>>> is this based on the following patch:
>>> http://wiki.ipxwarzone.com/index.php5?title=Txring_patch
>>>
>>> I maybe blind, but i cant find it in your linkes source of 3.4.5.beta1 ?!
>> No, actually I'm just forgetful.  Forgot to merge the TX_RING code
>> from the other branch.
>>
>> As for the TX_RING code you linked to, I believe the answer is yes.
>> > From what I can tell in my own testing, there are two versions with
>> two different API's... at least the headers are different.  The
>> configure script will check for the appropriate headers and do the
>> right thing.  The configure report will tell you if it found them or
>> not.  CentOS 5.5 in particular seems to behave differently and I
>> haven't had time to figure out what needs to be done to make it work.
>>
>> Anyways, here's beta2 with the TX_RING code merged in:
>>
>> http://synfin.net/tcpreplay-3.4.5beta2.tar.gz
>
> Thanks, i tried to compile it on a SLES-11 patchlevel 1 Linux with SuSe
> kernel 2.6.32.13-0.5-default but the TX_RING method is not detected by
> configure:
> ..
> Supported Packet Injection Methods (*):
> Linux TX_RING:              no
> ..
>
> configure moans about this:
>
> configure:17905: checking for TX_RING socket sending support
> configure:17927: gcc -c -D_U_="__attribute__((unused))"  -Wall -O3
> -std=gnu99 -Wextra -Wno-variadic-macros -Wfatal-errors -I/usr/include
> conftest.c >&5
> In file included from conftest.c:87: /usr/include/linux/if_packet.h:14:
> error: redefinition of 'struct sockaddr_ll'
> compilation terminated due to -Wfatal-errors.
> configure:17927: $? = 1

That's probably the same issue I'm having with CentOS 5.5... I'd have
to check my notes for sure.  I'm still trying to find some
documentation on the newer TX_RING API that apparently showed up in
the kernel, but I haven't found it yet.  Once I find some decent docs,
adding support for this newer API should be straight forward.


-- 
Aaron Turner
http://synfin.net/         Twitter: @synfinatic
http://tcpreplay.synfin.net/ - Pcap editing and replay tools for Unix & Windows
Those who would give up essential Liberty, to purchase a little temporary
Safety, deserve neither Liberty nor Safety.
    -- Benjamin Franklin
"carpe diem quam minimum credula postero"

------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
Tcpreplay-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tcpreplay-users
Support Information: http://tcpreplay.synfin.net/trac/wiki/Support

Reply via email to