From: Christoph Kappel Date: 2009-09-20T02:50:01+09:00 Subject: Getting essid via ioctl ------=_Part_15310_209555041.1253382593199 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello. To avoid relying on the wireless tools I want to get the essid directly fro= m the device with ioctl, in C=20 this wouldn't be a problem, but in Ruby it's quite different. The problem is following struct from wireless.h that is used as input/reply= of ioctl: struct =C2=A0iw_point { =C2=A0 void __user *pointer; /* Pointer to the data =C2=A0(in user space) *= / =C2=A0 __u16 =C2=A0 length; =C2=A0 /* number of fields or size in bytes */ =C2=A0 __u16 =C2=A0 flags; =C2=A0 =C2=A0/* Optional params */ }; The pointer part must be a valid address of a memory area, followed by the = length in bytes,=20 followed by a flag field. I tried with Array#pack and the bit-struct gem, b= ut haven't found a solution yet. Is there a way to bypass this memory pointer problem? Wbr Christoph ------=_Part_15310_209555041.1253382593199--