Kernel programming: packet divertion


 
Thread Tools Search this Thread
Operating Systems Linux Kernel programming: packet divertion
# 1  
Old 05-25-2005
Kernel programming: packet divertion

Hi All,

Not sure if this is the right place to ask, so please tell me where is appropriate...

Anyway, here is the problem. I'm a bit new to kernel programming, so nothing works Smilie . I need to intercept cetrtain ethernet packets from Host1("eth0") to Host2("eth1") and send them to Local("lo"). What is the best way to do that?

Thanks!
# 2  
Old 06-13-2005
Use sniffers?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Ubuntu

Use of goto keyword in kernel programming

I have found many source files in the kernel using goto keyword instead of just doing the actual thing. For example: if(blah) goto x; -- -- -- -- -- x: return blah-blah Is there any specific reason for writing the code like this? The first thought that came to my mind is minimizing... (0 Replies)
Discussion started by: BHASKAR JUPUDI
0 Replies

2. AIX

Packet loss coming with big packet size ping

(5 Replies)
Discussion started by: Vishal_dba
5 Replies

3. Programming

Raw Socket Programming - Efficient Packet Sniffer

Hi, I have the requirement to sniff packets from the Ethernet card on my Linux machine and process it and feed it to a RANAP protocol stack. So far I have written the raw packet sniffer and successfully sniffing packets and do little processing. However, for huge number of packets ... (9 Replies)
Discussion started by: rstnsrr
9 Replies

4. UNIX for Advanced & Expert Users

Kernel programming sys_creat

Hi there At first. My Name is Andre, 27 and im from germany Im tryin to learn something about the Unix Kernel and System At first im trying to manipulate the systemcalls I want to have an Entry in the kernel logfile, whenever a new file is created. I found out, that a file uses the... (0 Replies)
Discussion started by: kissthechief
0 Replies

5. Programming

Kernel programming - Ext4 and extents contents

Hi there, I have a problem with Unix kernel programming. I have to write a program who should output the whole information the EXT4 extents contain. I have found many tutorial and information about how the EXT4 filesystem is working. Also There ar many information about the EXT4 structure but I... (1 Reply)
Discussion started by: oedurgan
1 Replies

6. UNIX for Advanced & Expert Users

Ip And Port Divertion Through Iptables

Hi To All, I want to Route my web application to Mysql Database through a proxy server.so for this which approach should i use 1)iptables 2)squid if Iptables how can i make this worked .this is the ip network i'm having web application---------Proxy server-----------------Mysql Database... (0 Replies)
Discussion started by: kgrvamsi
0 Replies

7. Fedora

Newbie at Linux Kernel programming!

Hi Friends, This is my first ever post on this forum. I am a new user in the Linux field. Although, I have been working for sometime with CentOS at my work, I would consider myself an amateur only in this field. :D The way file system works in linux and the reason its open-source, has really... (7 Replies)
Discussion started by: rohitrajjain
7 Replies

8. Linux

kernel programming

:) Hi, I intend to learn kernel programming. Please, let me know if have know any good books for learning or any sites which will be help me. Thanks in advance. - masg (1 Reply)
Discussion started by: masg1
1 Replies

9. Programming

To study kernel and modular programming

I want to do kernel programming.So which site or books help me in studying these.I know C programming to a little extent.Please advice me (4 Replies)
Discussion started by: ranjith
4 Replies

10. UNIX for Advanced & Expert Users

Kernel and Device Driver Programming

I am looking for a guide on how to program for either the Linux or FreeBSD (includes 4.4BSD, NetBSD or OpenBSD) kernel. I would prefer to learn how to write device drivers, but anything would help. If you know, please email me at *removed* or leave a post here Regards, Farhan (0 Replies)
Discussion started by: Farhan
0 Replies
Login or Register to Ask a Question