search for: hd_nmp

Displaying 1 result from an estimated 1 matches for "hd_nmp".

Did you mean: dd_mp
2007 Feb 12
1
playing with SO_BROADCAST on centos
...x4321, NMP_LIST = 12345, NMP_SET_IP, NMP_SET_MASK }; typedef union { unsigned char b[4]; uint32_t v; } IPADDR; typedef struct { unsigned char b[6]; } MACADDR; typedef struct { unsigned short magic; unsigned short code; IPADDR ip; IPADDR mask; MACADDR mac; ushort Deviceid; } HD_NMP; HD_NMP nmp; struct sockaddr_in broadcast_address; bzero((char *) &broadcast_address, sizeof(broadcast_address)); broadcast_address.sin_family = AF_INET; broadcast_address.sin_port = htons(NMP_PORT); broadcast_address.sin_addr.s_addr = inet_addr("255.255.255.255"); socket_handle =...