Unix Programming - How do I use sa_data member in an sockaddr structure ??? Plz its urgent

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > April 2006 > How do I use sa_data member in an sockaddr structure ??? Plz its urgent





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author How do I use sa_data member in an sockaddr structure ??? Plz its urgent
jeniffer

2006-04-27, 7:56 am

I want to access ARP cache by the PF_NET socket structure.(ioctl()
command) .How do i fill arp_pa 's sa_data member such that I can give
protocol and hardware addresses..Please tell me its urgent .


struct arpreq
{
struct sockaddr arp_pa; /* protocol address */
struct sockaddr arp_ha; /* hardware address */
int arp_flags; /* flags */
struct sockaddr arp_netmask; /* netmask of protocol address */
char arp_dev[16];
}

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com