RE: Default Gateway Thorough A Programme
From: Muhammad Rizwan (rizwan_at_nixpanel.com)
To: General Red Hat Linux discussion list <email@example.com> Date: Tue, 29 Mar 2005 13:14:59 +0500
In addition to that how can i get my ip address and how can i add
another ip address through my program.
On Tue, 2005-03-29 at 12:28, David Balazic wrote:
> Guys, I think he just wants to find out the address of the default
> Gateway, nothing more :-)
> Like :
> Int gw_adr = get_def_ge();
> Which would return 192.168.1.1 for example.
> -----Original Message-----
> From: firstname.lastname@example.org [mailto:email@example.com]
> On Behalf Of Alexey Fadyushin
> Sent: 26. marec 2005 20:16
> To: General Red Hat Linux discussion list
> Subject: Re: Default Gateway Thorough A Programme
> 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
> Alexey Fadyushin
> Brainbench MVP for Linux.
> 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:firstname.lastname@example.org?subject=unsubscribe
-- redhat-list mailing list unsubscribe mailto:email@example.com?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list