Set device BD_ADDR via ng_bluetooth

2004-07-21 Thread Anil Madhavapeddy
This is a long shot, but is it possible to set a Bluetooth device's BD_ADDR to a custom value using ng_bluetooth? I couldn't spot anything in the ng_btsocket(4) man page, or in the Bluez stack on Linux. -- Anil Madhavapeddy http://anil.recoil.org Uni

Re: Packing netgraph structs

2004-07-01 Thread Anil Madhavapeddy
On 1 Jul 2004, at 20:47, Julian Elischer wrote: I think that nearly all languages these day shave to take into account "what C does" and they need to have packing etc taken explicitly into account when they do syscalls etc. so I don't think that you will have too many problems and there should be

Re: Packing netgraph structs

2004-07-01 Thread Anil Madhavapeddy
les of word size), and my initial tests have worked fine on i386. Just wondering if others have come up with a better solution than a large set of FFI bindings. -- Anil Madhavapeddy http://anil.recoil.org University of Cambridge

Re: Packing netgraph structs

2004-07-01 Thread Anil Madhavapeddy
to hard to track down bugs in the future? It shouldn't even affect the gcc ABI I think ... ? For the moment, I'll get on with just serialising as if it were optimally packed from OCaml, thanks for your help so far! -- Anil Madhavapeddy http://anil.reco

Re: Packing netgraph structs

2004-07-01 Thread Anil Madhavapeddy
they were packed, I could just do it all in OCaml. Isn't this a problem for other language bindings as well, or is everyone doing Netgraph userland hacking in C at the moment? -- Anil Madhavapeddy http://anil.recoil.org University of

Packing netgraph structs

2004-07-01 Thread Anil Madhavapeddy
eans that it's very difficult to serialise them in a language other than C. Is there any reason why these aren't packed? If not, I can submit a diff to make them so. thanks, -- Anil Madhavapeddy http://anil.recoil.org University of Cambridge