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.182.28.201 with SMTP id d9mr2063386obh.26.1429803711101; Thu, 23 Apr 2015 08:41:51 -0700 (PDT) X-Received: by 10.140.20.181 with SMTP id 50mr51150qgj.37.1429803711069; Thu, 23 Apr 2015 08:41:51 -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!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!m20no5716612iga.0!news-out.google.com!a41ni809qgf.1!nntp.google.com!j5no3346904qga.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 23 Apr 2015 08:41:50 -0700 (PDT) In-Reply-To: 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: <40bfd1ec-3a28-4fc8-b43f-29c2d01bcf50@googlegroups.com> Subject: Re: Questions about Gnat.sockets and raw socket From: =?ISO-8859-1?Q?lo=EFc_maury?= Injection-Date: Thu, 23 Apr 2015 15:41:51 +0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:25581 Date: 2015-04-23T08:41:50-07:00 List-Id: Le jeudi 23 avril 2015 14:52:45 UTC+2, lo=C3=AFc maury a =C3=A9crit=C2=A0: > 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 group= s. > > >=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 d= o > > 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 un= der > > 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 suppo= rt > > them, but it is relatively simple to adapt. > >=20 > > --=20 > > Regards, > > Dmitry A. Kazakov > > http://www.dmitry-kazakov.de >=20 > Hello Dmitry, >=20 > Thank you for the quick answer. >=20 > Maybe NDIS open source project exist, I will try to find one. >=20 > Best >=20 > Loic Maybe I found a solution, with Winpcap, I can create a binding for this library.