This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: IP adress Get and Set (SIOCSIFADDR problem ? )


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: ecos-discuss-owner@ecos.sourceware.org
[mailto:ecos-discuss-owner@ecos.sourceware.org] On Behalf Of Xun Yuan
Sent: Sunday, September 30, 2007 3:05 AM
To: ecos-discuss@sources.redhat.com
Subject: [ECOS] IP adress Get and Set (SIOCSIFADDR problem ? )

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
pam
 
 
http://www.cygwin.com/ml/ecos-discuss/2004-01/msg00130.html


 
________________________________________________________________________
____________
Catch up on fall's hot new shows on Yahoo! TV. Watch previews, get
listings, and more!
http://tv.yahoo.com/collections/3658 

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss




--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]