RE: Default Gateway Thorough A Programme

From: David Balazic (david.balazic_at_hermes.si)
Date: 03/29/05

  • Next message: Muhammad Rizwan: "RE: Default Gateway Thorough A Programme"
    To: General Red Hat Linux discussion list <redhat-list@redhat.com>
    Date: Tue, 29 Mar 2005 09:28:39 +0200
    
    

    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: redhat-list-bounces@redhat.com [mailto:redhat-list-bounces@redhat.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
    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@redhat.com?subject=unsubscribe
    https://www.redhat.com/mailman/listinfo/redhat-list
    -- 
    redhat-list mailing list
    unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
    https://www.redhat.com/mailman/listinfo/redhat-list
    

  • Next message: Muhammad Rizwan: "RE: Default Gateway Thorough A Programme"

    Relevant Pages

    • Re: Wireless Configuration Problem
      ... iface wlan0 inet dhcp ... wpa-ssid FOREIGN-AP ... Yep, I cannot ping the gateway, despite "wpa_cli status" tells me ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
      (Debian-User)
    • Re: [opensuse] internet connection sharing problem on home network problem
      ... On 5/22/07, M Harris wrote: ... You need to setup the default gateway on machine to point to the address ... To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx ... For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx ...
      (SuSE)
    • Re: static IP
      ... Why I saw sometimes in some web sites this kind of static ips starting ... static ip in your LAN. ... ip, gateway and mask. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
      (Debian-User)
    • Re: ntp strangeness
      ... It does for me (I'm the Chrony maintainer). ... What is your configuration? ... gateway was broken into last December, and I wiped my gateway machine ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
      (Debian-User)
    • [Solved] Re: [OT] Using a wireless router...
      ... Is there a default route in the Netgear, a gateway to the rest of the ... Glenn English ... ought to be the highest honor and the highest responsibility anyone ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
      (Debian-User)