Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <4D29EF232640D311A78C0008C75D8B92E9F180@wntasdexg01.asd.ciena.com> From: "Kotha, Saikrishna" To: "'cygwin AT cygwin DOT com'" Subject: Re:Raw Socket Support using Cygwin Date: Fri, 23 Mar 2001 09:52:34 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain > Hi Danny, > Yes, you are correct. Winsock2 do support Raw Sockets for IGMP and ICMP > protocols. Cygwin socket implementation used Win32API (I guess !!!). Is > there any other commercial/freeware package available which fully supports > the Raw Sockets under WIN NT4.0 ??? > > Thanks & Regards, > krishna > > RE: Raw Socket support using Cygwin. > * To: Cygwin > * Subject: RE: Raw Socket support using Cygwin. > * From: Danny Smith > * Date: Fri, 23 Mar 2001 14:12:41 +1200 (NZST) > > > To: "Prabhune, Abhijeet" , dot > com> > > Subject: RE: Raw Socket support using Cygwin. > > From: "Robert Collins" > > Date: Fri, 23 Mar 2001 12:08:43 +1100 > > Thread-Index: AcCzNLmWb6XCK3qBQfygxAw1UqdU1wAAJXhw > > Thread-Topic: Raw Socket support using Cygwin. > > >> -----Original Message----- > >> From: Prabhune, Abhijeet [] > >> Sent: Friday, March 23, 2001 12:07 PM > >> To: 'cygwin-apps AT cygwin DOT com' > >> Cc: 'cygwin-developers AT cygwin DOT com' > >> Subject: Raw Socket support using Cygwin. > >> > >> > >> Hi, > >> I am developing a program which requires Raw Ip Sockets on > >> Windows NT 4.0 > >> I know that Winsock2 provided by Microsoft does not provide > >> this support. > > > Not quite true. Under NT, both winsock1 and winsock2 do support RAW > SOCKETS, > but only to administrators. > > The executable from this code (extract from a ping programme) produces > error=0 > when run by administrator, but error code 10013 (WSAEACCES) when run by > non-admin: > > #include > #include > > SOCKET icmp_open(void) { > SOCKET s = socket (AF_INET, SOCK_RAW , IPPROTO_ICMP); > printf("socket(type=SOCK_RAW, protocol=IPROTO_ICMP), Error code: %d \n", > > WSAGetLastError()); > if (s == SOCKET_ERROR) { > return (INVALID_SOCKET); > } > return (s); > } > > int main(){ > WSADATA wsaData; > SOCKET a; > if (WSAStartup(MAKEWORD(1, 1), &wsaData) != 0) > return 255; > a=icmp_open(); > WSACleanup(); > return 0; > } > > Danny > > __________________________________________________________________________ > ___ > - Yahoo! Calendar > - Access your appointments and meetings online. > > -- > Want to unsubscribe from this list? > Check out: http://cygwin.com/ml/#unsubscribe-simple > > > -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple