This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
RE: IP adress Get and Set (SIOCSIFADDR problem ? )
- From: "Alok Singh" <alok dot singh at broadcom dot com>
- To: "Xun Yuan" <xunyuan at yahoo dot com>, ecos-discuss at sources dot redhat dot com
- Date: Sat, 29 Sep 2007 14:46:28 -0700
- Subject: RE: [ECOS] IP adress Get and Set (SIOCSIFADDR problem ? )
- References: <613240.81519.qm@web54008.mail.re2.yahoo.com>
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