RTM resolve support

4 views
Skip to first unread message

Andrew White

unread,
Feb 9, 2011, 10:12:46 PM2/9/11
to Darwin development mailing list
I have a routing socket. I can do RTM_GET operations fine. However, when
I try to do an RTM_RESOLVE, things don't work.

Run as standard user, I get:
"write failed: Operation not permitted"

OK, so we'll run as root:
"write failed: Operation not supported on socket"


2 questions:

* If I want to do ARP resolution of addresses, is a routing socket the
correct tool? Note that RTM_GET only works if the address is already in
the ARP table. How do I ask the kernel to perform link layer address
resolution if the address isn't currently known (ie force an arp)?

* If RTM_RESOLVE is the correct tool, why is it giving "operation not
supported"?

--
Andrew White
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (Darwi...@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-dev/darwin-dev-garchive-73044%40googlegroups.com

This email sent to darwin-dev-g...@googlegroups.com

Reply all
Reply to author
Forward
0 new messages