Free Republic
Browse · Search
News/Activism
Topics · Post Article

To: Dominic Harr
Back in 1999 I was doing the TCP/IP components for Borland Delphi. I was stuck on the statement in the microsoft documenation that NT could not do raw sockets. Yet NT came with a command line ping untility. Ping and trace root use raw sockets. It turned out that one had to use a dll called Icmp.dll to programatically access raw sockets in windows nt. It seemed to me that if ICMP.dll could do raw sockets, I could write code that would do also without using the ICMP.DLL.

To try to get a handle on how the MS TCP/IP stack worked I downloaded the BSD Unix TCP/IP code and tried to compile it in Visual Studio C++ 6.0. I found the order of the functions in the BSD code was the same as the MS TCP/IP stack code. I also found the only thing missing from the MS Winsock dll was the raw socket data struture. If the data address was passed to the rawsocket function (not documented in MS) and called as if it were the BSD raw socket fuction the dang thing worked. I think the Winshoes components that shipped with delphi 5 or perhaps 6 had this component.

Perhaps I am wrong but my conclusion was someone at MS just lifted the BSD Unix TCP/IP Stack code and did what it took to get it to compile in windows. Then put that windsock dll in NT 4.0 SP3. The one diference from the BSD code was you had to allocate the data structure and pass its address to the raw socket function in the Winsock dll. ICMP.Dll just contained the data structure and a call to the windsock dll.

Could windows NT contain UNIX code? Could be.

9 posted on 05/30/2003 3:38:12 PM PDT by Common Tator
[ Post Reply | Private Reply | To 2 | View Replies ]


To: Common Tator
Could windows NT contain UNIX code?

I have heard others wonder aloud the same thing. Given MS's history, certainly it is not beyond the possible.

But I think, interestingly enough, this license may have been a big mistake. Without that, MS could have sat back and claimed to be completely clean.

Yet with that license, even those few left who don't believe MS orchestrated this from the beginning are convinced that at the very least, MS is using this license fee to SCO to 'support' this legal attack, at a minimum MS is trying to destroy Linux thru the courts because they can't compete against it.

A quick, informal look around suggests to me the industry doesn't seem to think there is any weight behind this case.

14 posted on 05/31/2003 11:44:41 AM PDT by Dominic Harr
[ Post Reply | Private Reply | To 9 | View Replies ]

To: Common Tator
Perhaps I am wrong but my conclusion was someone at MS just lifted the BSD Unix TCP/IP Stack code and did what it took to get it to compile in windows.

You are both right and wrong. Yes it is the BSD stack more or less, but no Microsoft didn't lift it they bought and paid for it.

16 posted on 05/31/2003 11:55:17 AM PDT by Rightwing Conspiratr1
[ Post Reply | Private Reply | To 9 | View Replies ]

Free Republic
Browse · Search
News/Activism
Topics · Post Article


FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson