Re: Default Gateway Thorough A Programme

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



If you need to intercept the packets which are tobe sent via default router, you can use iptables targets QUEUE and/or ULOG (if kernel supports it) which will pass the packets to user space program which can process them and, if necessary, return them back to kernel for further processing.

Alexey Fadyushin
Brainbench MVP for Linux.
http://www.brainbench.com

Robert Canary wrote:

You would have to create a virtual ethernet driver that really dosen't look at a physical device but rather a FIFO file.

Sort of like null modem driver...

kanhu rauta wrote:

  Hi all,

How can i get the default gateway of a linux machine through a C programme. Can i get it through IOCTL call.

Any idea to Proceed with is welcome.

With Regards,
Kanhu

Kanhu Charan Rauta

Innomedia Techonologies Pvt. Ltd

#3278,12Th Main,

HAL 2nd stage.

Banglore-560008.



-- redhat-list mailing list unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux