delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/12/03/13:50:21

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <381874275.975869386209.JavaMail.root@web105-mc>
Date: Sun, 3 Dec 2000 13:49:46 -0500 (EST)
From: KillerBunny <killabunny AT seductive DOT com>
To: Cygwin <cygwin AT sources DOT redhat DOT com>
Subject: Raw sockets
Mime-Version: 1.0
X-Mailer: mail.com
X-Originating-IP: 212.17.64.12

I just ran into this problem last week; i'm unable to figure out how to use Raw socket processes in Cygwin's GCC. Is this something impossible to do under Windows , has it not been implemented in Cygwin yet or is it quite possible that i'm simply doing something wrong? Eg. 
//(ip->stuff are all declared up here)
sock=socket(AF_INET,SOCK_RAW,IPPROTO_RAW);
sendto(sock,IpPacket,IPhdr->len,0,(struct sockaddr *)&host, sizeof(struct sockaddr_in));
//end
Apparently no errors were generated with lines like this, but the packet which is generated seems to simply append the "IpPacket" data to a pre-made IP packet header. 
I've also tried using "setsockopt()" With the IP_HDRINCL option (which i defined as 3 due to the lack of #define's in /netinet/in.h).
Well the point is i can never get any of these methods to work - either errors are generated or the packet simply isnt' "Raw" enough. Any suggestions?
 *thanQ*
    -Brian

______________________________________________
FREE Personalized Email at Mail.com
Sign up at http://www.mail.com/?sr=signup

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019