public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* inetutils-1.3.2-10 on Cygwin 1.1.8-2
@ 2001-02-11 10:34 Andrew Chang
  2001-02-11 12:03 ` Christopher Faylor
  2001-02-12  1:53 ` inetutils-1.3.2-10 on Cygwin 1.1.8-2 Corinna Vinschen
  0 siblings, 2 replies; 13+ messages in thread
From: Andrew Chang @ 2001-02-11 10:34 UTC (permalink / raw)
  To: cygwin

Hi Chris,

Thanks for creating the cygwin project, it is a very useful
product. I evaluated MKS, Uwin and finally settled with
Cygwin. I uses Cygwin on a daily basis as a regression
test frame work for over a years now. (I purchased the cygwin CD
but I am on the cygwin net release now,
it seems to be more up to date)

I seem to hit a rshd bug, am wondering if anyone can help:

I was trying install cygwin rshd recently, It seems to work.
except for one strange behavior: under the rshd
environment, the winsock2 gethostbyname() interface will return
WSAHOST_NOT_FOUND. It works fine if I  run the same code
under rlogind or locally. (The application I am running is
a very simple (20 lines of C code, no GUI) winsock application,
it is not linked to the cygwin dll.

I found the following message on web.
http://www.cygwin.com/ml/cygwin/2000-05/msg00743.html

which seems to indicate rshd have some winsock related problem.
I am wondering if it had been fixed.


Thanks

Andrew Chang




--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 13+ messages in thread
* Re: inetutils-1.3.2-10 on Cygwin 1.1.8-2
@ 2001-02-11 14:41 Danny Smith
  2001-02-11 14:48 ` Christopher Faylor
  0 siblings, 1 reply; 13+ messages in thread
From: Danny Smith @ 2001-02-11 14:41 UTC (permalink / raw)
  To: Cygwin

 On Sun, Feb 11, 2001 at 10:36:15AM -0800, Andrew Chang wrote:

> I was trying install cygwin rshd recently, It seems to work.
> except for one strange behavior: under the rshd
> environment, the winsock2 gethostbyname() interface will return
> WSAHOST_NOT_FOUND. It works fine if I  run the same code
> under rlogind or locally. (The application I am running is
> a very simple (20 lines of C code, no GUI) winsock application,
> it is not linked to the cygwin dll.


This may help explain the behaviour if you are linking to ws2_32.dll.

There are problems with the use of the WinSock2 API (ws2_32.dll) in
combination with the IPPROTO_IP level options defined in either
win32api/winsock.h or in cygwin/socket.h. 


The IPPROTO_IP level macros defined in winsock.h or socket.h for
Winsock
1.1 are consistent with the original values Steve Deering defined in
his
document "IP Multicast Extensions for 4.3BSD UNIX related systems
(MULTICAST 1.2 Release)." However, these conflicted with the
definitions
for some IPPROTO_IP level socket options already assigned by BSD, so
Berkeley changed all the values by adding 7. 

ws2_32.dll uses the 4.4BSD compatible values defined below. 

#define	IP_TOS  3   /* old (winsock 1.1) value 8 */
#define	IP_TTL  4  /* old value 7 */
#define	IP_MULTICAST_IF 	9 /* old value 2 */
#define	IP_MULTICAST_TTL    10 /* old value 3 */
#define	IP_MULTICAST_LOOP   11 /* old value 4 */
#define	IP_ADD_MEMBERSHIP   12 /* old value 5 */
#define	IP_DROP_MEMBERSHIP  13 /* old value 6 */
#define IP_DONTFRAGMENT 14 /* old value 9 */


This change can cause errors or unexpected behaviour with the
[gs]etsockopt when mixing winsock1.1 definitions with the winsock2
library functions. (Recent versions of winsock32.dll forward most
exports to either ws2_32.dll or mswsock.dll, but - to retain backward
compatability - uses own versions of [gs]sockopt).

See also: msdn kb article Q257460
http://support.microsoft.com/support/kb/articles/Q257/4/60.asp

I will submit a patch for win32api/winsock2.h to the mingw project.

Danny



_____________________________________________________________________________
http://entertainment.yahoo.com.au - Yahoo! Entertainment
- Feeling a little bored? Need some entertainment?

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 13+ messages in thread
* Re: inetutils-1.3.2-10 on Cygwin 1.1.8-2
@ 2001-02-11 16:09 Danny Smith
  2001-02-11 16:43 ` Christopher Faylor
  0 siblings, 1 reply; 13+ messages in thread
From: Danny Smith @ 2001-02-11 16:09 UTC (permalink / raw)
  To: Cygwin

CGF wrote:
>On Mon, Feb 12, 2001 at 11:41:33AM +1300, Danny Smith wrote:
>>See also: msdn kb article Q257460
>> http://support.microsoft.com/support/kb/articles/Q257/4/60.asp
>>
>>I will submit a patch for win32api/winsock2.h to the mingw project.

>If you would Cc the patch to cygwin@cygwin.com, it would be
>appreciated.

>cgf

Yes that is a good idea.  Is this a specific request or do  I
generalise to other windows sockets patches that I have recently
submitted?  Or do I generalise - in future - to any other win32api
patches that involve an  #ifdef __CYGWIN__  bracket? 

Danny


_____________________________________________________________________________
http://entertainment.yahoo.com.au - Yahoo! Entertainment
- Feeling a little bored? Need some entertainment?

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2001-02-12 10:06 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-02-11 10:34 inetutils-1.3.2-10 on Cygwin 1.1.8-2 Andrew Chang
2001-02-11 12:03 ` Christopher Faylor
2001-02-11 18:37   ` Cygnus project status Nicholas Sushkin
2001-02-11 20:01     ` Christopher Faylor
2001-02-12  1:53 ` inetutils-1.3.2-10 on Cygwin 1.1.8-2 Corinna Vinschen
2001-02-11 14:41 Danny Smith
2001-02-11 14:48 ` Christopher Faylor
2001-02-11 16:09 Danny Smith
2001-02-11 16:43 ` Christopher Faylor
2001-02-12  5:03   ` Earnie Boyd
2001-02-12  8:08     ` Christopher Faylor
2001-02-12 10:03       ` Earnie Boyd
2001-02-12 10:06         ` Christopher Faylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).