Yuan,
I believe you are right. I always use SOCK_RAW.
Are you seeing any problem with SOCK_RAW? For some reasons, ecos
bootp/dhcp sever code uses SOCK_DGRAM while setting IP address.
-ALOK
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Xun Yuan
Sent:
HI There,
Would someone please tell me why the second parameter
in GetIP and SetIP is SOCK_DGRAM in the below link?
Does it matter in case of getting/setting IP addresses
of an interface? If it does not, any value would do,
such as SOCK_RAW, SOCK_DSTREAM, right?
Thanks very much in advance
pa