unsafe C in netgraph/pppoed.c

2009-02-10 Thread Roman Divacky
hi struct pppoe_tag { u_int16_t tag_type; u_int16_t tag_len; char tag_data[]; }__packed; struct pppoe_hdr{ u_int8_t ver:4; u_int8_t type:4; u_int8_t code; u_int16_t sid; u_int16_t length; struct pppoe_tag tag[]; }__packed;

Re: [PATCH]: implementation of SIOCGIFINDEX in linuxulator

2007-11-07 Thread Roman Divacky
On Wed, Nov 07, 2007 at 11:30:34AM +, Rui Paulo wrote: > > On 5 Nov 2007, at 15:34, Roman Divacky wrote: > > >hi > > > >I implemented SIOCGIFINDEX in linuxulator and I would like you > >to review the patch.. the implementation is trivial, just mapp

[PATCH]: implementation of SIOCGIFINDEX in linuxulator

2007-11-05 Thread Roman Divacky
hi I implemented SIOCGIFINDEX in linuxulator and I would like you to review the patch.. the implementation is trivial, just mapping it to the native fbsd call. the patch can be found here: http://www.vlakno.cz/~rdivacky/linux_socket.patch I have a report that it helps some java program. please r