Re: Routing Table Entries in user mode
From: Barry Margolin (barmar_at_alum.mit.edu)
Date: 04/30/04
- Next message: Canh chua ca: "Re: How to save SUN. If you work for SUN, read my ideas!"
- Previous message: Krishna: "Re: Routing Table Entries in user mode"
- In reply to: Krishna: "Re: Routing Table Entries in user mode"
- Next in thread: James Carlson: "Re: Routing Table Entries in user mode"
- Reply: James Carlson: "Re: Routing Table Entries in user mode"
- Reply: Krishna: "Re: Routing Table Entries in user mode"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 30 Apr 2004 00:32:05 -0400
In article <d1a53e30.0404291950.41230ab3@posting.google.com>,
krishnavora@indiatimes.com (Krishna) wrote:
> Barry Margolin <barmar@alum.mit.edu> wrote in message
> news:<barmar-BEABD3.11564529042004@comcast.ash.giganews.com>...
> > In article <d1a53e30.0404290310.7b8336df@posting.google.com>,
> > krishnavora@indiatimes.com (Krishna) wrote:
> >
> > > Is there any ioctls available to get the entries. I have already got
> > > the subnet Mask & metrics but I need to get the next hop.
> >
> > See the chapter on Routing Sockets in Unix Network Programming, Vol.1.
>
> Thanks!
>
> But it requires superuser perms which my program will not be able to
> get.
No, reading the routing table doesn't require privileges, according to
UNP.
> Ans sysctl() is not supported.
>
> My main requirement is to get a normal user process without any su
> privileges to get the routing table entries.
If your OS doesn't provide sysctl(), I don't think it can be done.
Before routing sockets were invented, the only way to get the routing
table was by reading kernel memory directly, and that *does* require
privilege.
-- Barry Margolin, barmar@alum.mit.edu Arlington, MA *** PLEASE post questions in newsgroups, not directly to me ***
- Next message: Canh chua ca: "Re: How to save SUN. If you work for SUN, read my ideas!"
- Previous message: Krishna: "Re: Routing Table Entries in user mode"
- In reply to: Krishna: "Re: Routing Table Entries in user mode"
- Next in thread: James Carlson: "Re: Routing Table Entries in user mode"
- Reply: James Carlson: "Re: Routing Table Entries in user mode"
- Reply: Krishna: "Re: Routing Table Entries in user mode"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|