From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.66.230.228 with SMTP id tb4mr3635603pac.3.1429793564660; Thu, 23 Apr 2015 05:52:44 -0700 (PDT) X-Received: by 10.140.107.69 with SMTP id g63mr29993qgf.31.1429793564610; Thu, 23 Apr 2015 05:52:44 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!news.glorb.com!l13no9047030iga.0!news-out.google.com!a41ni807qgf.1!nntp.google.com!j5no3323849qga.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 23 Apr 2015 05:52:44 -0700 (PDT) In-Reply-To: <64xtlkgbv1qk.139l2vds2na5p.dlg@40tude.net> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=78.224.77.42; posting-account=0lN1SQoAAABHsCTbBoVpfN37S5RVw70t NNTP-Posting-Host: 78.224.77.42 References: <67547c2b-9302-4bbc-9865-523772248e3b@googlegroups.com> <64xtlkgbv1qk.139l2vds2na5p.dlg@40tude.net> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Questions about Gnat.sockets and raw socket From: =?ISO-8859-1?Q?lo=EFc_maury?= Injection-Date: Thu, 23 Apr 2015 12:52:44 +0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:25579 Date: 2015-04-23T05:52:44-07:00 List-Id: Le jeudi 23 avril 2015 14:19:04 UTC+2, Dmitry A. Kazakov a =C3=A9crit=C2=A0= : > On Thu, 23 Apr 2015 02:21:00 -0700 (PDT), lo=C4=8Fc maury wrote: >=20 > > For a personal project, I want to create a packet analyzer. > > Can I use Gnat.socket, for raw socket programming ? it is not clear > > for me, and unfortunately I didn't found any answers in the ada groups. > >=20 > > I will use it under Windows. >=20 > The short answer is no, it would not go. >=20 > Windows does not support raw sockets (naturally GNAT.Sockets does not do > either). Under Windows you will need a so-called NDIS driver to handle > packets away of the network stack, and Ada bindings to. >=20 > I can recommend an inexpensive NDIS driver we are successfully using unde= r > Windows: >=20 > http://www.rawether.net >=20 > We also have Windows bindings to it, but they are proprietary. >=20 > P.S. Under Linux you would use raw sockets. GNAT.Sockets does not support > them, but it is relatively simple to adapt. >=20 > --=20 > Regards, > Dmitry A. Kazakov > http://www.dmitry-kazakov.de Hello Dmitry, Thank you for the quick answer. Maybe NDIS open source project exist, I will try to find one. Best Loic