caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] socket PF_PACKET
@ 2003-06-08  8:08 Alex Efros
  2003-06-11 16:24 ` Alex Efros
  0 siblings, 1 reply; 4+ messages in thread
From: Alex Efros @ 2003-06-08  8:08 UTC (permalink / raw)
  To: caml-list

Hi!

As far as I see in unix.mli, OCaml at this time don't support other
domains than PF_INET and PF_UNIX. Is it exists a way to create PF_PACKET
socket in OCaml? If not - is PF_PACKET support will be added in next
OCaml release?

-- 
			WBR, Alex.

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Caml-list] socket PF_PACKET
  2003-06-08  8:08 [Caml-list] socket PF_PACKET Alex Efros
@ 2003-06-11 16:24 ` Alex Efros
  2003-06-11 18:40   ` Francois Rouaix
  0 siblings, 1 reply; 4+ messages in thread
From: Alex Efros @ 2003-06-11 16:24 UTC (permalink / raw)
  To: caml-list

Hi!

It seems like nobody reply to my simple question sent a couple of days ago.
If nobody in this list know answer, then maybe you can point me to some
emails of people who may answer this question?

On Sun, Jun 08, 2003 at 11:08:41AM +0300, Alex Efros wrote:
> As far as I see in unix.mli, OCaml at this time don't support other
> domains than PF_INET and PF_UNIX. Is it exists a way to create PF_PACKET
> socket in OCaml? If not - is PF_PACKET support will be added in next
> OCaml release?

-- 
			WBR, Alex.

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Caml-list] socket PF_PACKET
  2003-06-11 16:24 ` Alex Efros
@ 2003-06-11 18:40   ` Francois Rouaix
  2003-06-11 19:20     ` Kip Macy
  0 siblings, 1 reply; 4+ messages in thread
From: Francois Rouaix @ 2003-06-11 18:40 UTC (permalink / raw)
  To: Alex Efros; +Cc: caml-list


I'll give it a try, although my answer is not authoritative...
If PF_PACKET is Linux only, as I believe it is, it is unlikely that it 
will be
added in the default Unix library, which mostly conforms to Posix 
standards.
On the other hand, it should be fairly obvious for someone to write 
another
version of socket() that supports it, and package it in a "Linux" 
module.
--f
PS: Don't assume that your question is simple because you know what 
PF_PACKET is...

> It seems like nobody reply to my simple question sent a couple of days 
> ago.
> If nobody in this list know answer, then maybe you can point me to some
> emails of people who may answer this question?
>
> On Sun, Jun 08, 2003 at 11:08:41AM +0300, Alex Efros wrote:
>> As far as I see in unix.mli, OCaml at this time don't support other
>> domains than PF_INET and PF_UNIX. Is it exists a way to create 
>> PF_PACKET
>> socket in OCaml? If not - is PF_PACKET support will be added in next
>> OCaml release?
>
> -- 
> 			WBR, Alex.
>
> -------------------
> To unsubscribe, mail caml-list-request@inria.fr Archives: 
> http://caml.inria.fr
> Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: 
> http://caml.inria.fr/FAQ/
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
>
>

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Caml-list] socket PF_PACKET
  2003-06-11 18:40   ` Francois Rouaix
@ 2003-06-11 19:20     ` Kip Macy
  0 siblings, 0 replies; 4+ messages in thread
From: Kip Macy @ 2003-06-11 19:20 UTC (permalink / raw)
  To: Francois Rouaix; +Cc: Alex Efros, caml-list

> 
> I'll give it a try, although my answer is not authoritative...
> If PF_PACKET is Linux only, as I believe it is, it is unlikely that it 
> will be
> added in the default Unix library, which mostly conforms to Posix 
> standards.

from the packet(7) man page on my linux desktop:
NOTES
       For  portable  programs  it  is suggested to use PF_PACKET via
       pcap(3); although this only covers a subset of the PF_PACKET 
       features.


A module to interface to libpcap, (which runs on all UN*X hosts I know of)
might be an approach sufficiently general to be incorporated into the 
distribution. 


				-Kip

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-06-11 19:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-08  8:08 [Caml-list] socket PF_PACKET Alex Efros
2003-06-11 16:24 ` Alex Efros
2003-06-11 18:40   ` Francois Rouaix
2003-06-11 19:20     ` Kip Macy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).