ts-7000
[Top] [All Lists]

Re: [ts-7000] Re: Ethernet packet capture

To:
Subject: Re: [ts-7000] Re: Ethernet packet capture
From: Jason Stahls <>
Date: Thu, 01 Oct 2009 08:59:07 -0400
 wrote:
>>> just a general question about ethernet-packet capture.
>>> what I',m trying to get working is an application to receive packets on 
>>> eth0 on the TS-7260 board and route them to either eth1 or eth2 on a 
>>> TS-eth2 peripheral card.
>>>       
>> Are you wanting to just route packets, or actually look at them and or 
>> modify them?  If all you want to do is route then any basic Linux 
>> routing tutorial should have your answers, try starting with reading up 
>> on iptables and iproute2.  If that's not the case and you need to write 
>> a app to do something to these packets then rebroadcast them again 
>> you'll want to read up on socket programming, depending on your language 
>> of choice.
> Just to elaborate a bit on my question on Ethernet packet capturing, I 
> suppose it's a two part action that I need to get going, firstly to capture 
> and inspect the headers of packets on eth0, and then route to eth1 or eth2 
> based on a IP addresses in the packet header.
>  Would a utility like libpcap be the right way to go about packet capture?

Sounds like you want source or destination based routing which you can 
do with iproute2 and iptables.

-- 
Jason Stahls


------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU