[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: guruplug: uap access point possibilities



On 05/18/2010 08:41 PM, Daniel Kahn Gillmor wrote:

>  * there is a corresponding userspace utility /usr/bin/uaputl, which
> enables setting of certain features of that driver.

For interested folks, though i haven't been able to find any sources for
uaputl, it doesn't look terribly complex:

 strace shows me that the communication it does is mostly with ioctl,
like this:

socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 3
ioctl(3, 0x89f1, 0xbec3bb8c)            = 0
close(3)                                = 0


And it looks like running uaputl -d 2 actually dumps the full buffers
sent and returned by the ioctl as hex contents:

> 0 moo:~# uaputl -d 2 sys_cfg_ssid
> debug_level=2
> Request buffer: len=50
> 2e 00 00 00 b0 00 2e 00 00 00 00 00 00 00 00 00 
> 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
> 00 00
> 
> Respond buffer: len=34
> 2e 00 00 00 b0 80 1e 00 08 00 00 00 00 00 00 00 
> 10 00 4d 61 72 76 65 6c 6c 20 4d 69 63 72 6f 20 
> 41 50
> 
> SSID = Marvell Micro AP
> 0 moo:~# printf 'Marvell Micro AP' | hd
> 00000000  4d 61 72 76 65 6c 6c 20  4d 69 63 72 6f 20 41 50  |Marvell Micro AP|
> 00000010
> 0 moo:~# 

Hopefully, between this and the kernel source, we can re-create uaputl
if the authors aren't willing to contribute it.  Here's the kernel patchset:

> http://plugcomputer.org/plugwiki/images/c/c6/Guruplug-patchset-2.6.33.2.tar.bz2

hope this is useful for someone,

	--dkg

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: