Ethereal-dev: [Ethereal-dev] specific packet decoding/altering question

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Kifah Abbad <kifah@xxxxxxxxxxxxxxxx>
Date: Wed, 12 Nov 2003 15:53:40 +0100
Hi everyone,

i am currently doing my Thesis, and part of it includes the following
steps: (OS= OpenBSD 3.3, or 3.4)

1. forward packets on network interface FXP-1 to virtual interface
tun0 (in order to do something with them in userspace)

2. parsing or decoding the IP packets.

3. changing the IP packet (adding a specific string to it, or to
payload)

4. injecting packet back to IP stack (then tun1?) .


Well, i must say i am new to C-network programming, but i think i
managed to find a way for points 1 and 1 (based on exisiting ethrea or
other codes).

Now where or how do i find examples or sources for points 3 and 4?


Thanks