Re: Default Gateway Thorough A Programme

From: Alexey Fadyushin (fab_at_s-tunnel.com)
Date: 03/26/05

  • Next message: Shiraz Baig: "RE: two subnets thru same wire - netmask"
    Date: Sat, 26 Mar 2005 22:15:37 +0300
    To: General Red Hat Linux discussion list <redhat-list@redhat.com>
    
    

    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
    

  • Next message: Shiraz Baig: "RE: two subnets thru same wire - netmask"

    Relevant Pages

    • [UNIX] Local Netfilter / IPTables IP Queue PID Wrap Flaw
      ... Beyond Security would like to welcome Tiscali World Online ... and a userspace library which allow userspace mediation and modification ... NET_ADMIN capability) to process packets from the kernel. ...
      (Securiteam)
    • Re: Q: locking mechanisms
      ... rcu_read_lockI disable preemption which I thought affects more ... In any kernel in which rcu_read_lockdisables preemption, ... types of PF_CAN sockets, which register for packets of certain CAN ...
      (Linux-Kernel)
    • Router stops routing after changing MAC Address
      ... Hello - This feels like a kernel issue. ... How to change MAC addresses is documented well enough - and it works - ... ip link set eth0 down ... the right side and back with echo request and reply packets. ...
      (Linux-Kernel)
    • Re: Send-Q on UDP socket growing steadily - why?
      ... Send-Q on a moderately active UDP socket keeps growing steadily until it ... The application in question is standard ntpd from Fedora 7, kernel is ... and drops packets. ...
      (Linux-Kernel)
    • Re: My boss want to kill debian, please help !
      ... > Thanks a lot, hmm, i always thought vanilla kernel are best, i will ... which BIOS revision? ... The 3COMs are losing packets (but the machine is rock solid, ... "One disk to rule them all, ...
      (Debian-User)