vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| * oleyniko@jct.ac.il <oleyniko@jct.ac.il> [2005-08-25 16:13]: > how do i manage ARP entries via ioctl(2) in OpenBSD ? you don't, you send a message on the routing socket. is it really too hard to figure out the sources for arp(8) are the right thing to take a peek at, find them and read? > i have the folowing code that works in linux : > ------start------------ > __int32_t func(__int32_t ip){ > #if defined(__OpenBSD__)|| defined(__NetBSD__) > sockfd= socket(AF_INET,SOCK_DGRAM,0); > #endif > #if defined(__linux__) > sockfd = socket(PF_INET,SOCK_DGRAM,0); > #endif that #ifdef maze is entirely useless, AF_INET and PF_INET are the same anyway. > i've looked at OpenBSD's arp.c and have not found and call ioctl(2) . maybe you should read some more. who says it's an ioctl? *sigh* -- BS Web Services, http://www.bsws.de/ OpenBSD-based Webhosting, Mail Services, Managed Servers, ... Unix is very simple, but it takes a genius to understand the simplicity. (Dennis Ritchie) |