{"action":"created","issue":{"url":"https://api.github.com/repos/shirok/Gauche/issues/189","repository_url":"https://api.github.com/repos/shirok/Gauche","labels_url":"https://api.github.com/repos/shirok/Gauche/issues/189/labels{/name}","comments_url":"https://api.github.com/repos/shirok/Gauche/issues/189/comments","events_url":"https://api.github.com/repos/shirok/Gauche/issues/189/events","html_url":"https://github.com/shirok/Gauche/pull/189","id":142301031,"number":189,"title":"gauche.net - implement some more requests in socket-ioctl","user":{"login":"pclouds","id":720,"avatar_url":"https://avatars.githubusercontent.com/u/720?v=3","gravatar_id":"","url":"https://api.github.com/users/pclouds","html_url":"https://github.com/pclouds","followers_url":"https://api.github.com/users/pclouds/followers","following_url":"https://api.github.com/users/pclouds/following{/other_user}","gists_url":"https://api.github.com/users/pclouds/gists{/gist_id}","starred_url":"https://api.github.com/users/pclouds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pclouds/subscriptions","organizations_url":"https://api.github.com/users/pclouds/orgs","repos_url":"https://api.github.com/users/pclouds/repos","events_url":"https://api.github.com/users/pclouds/events{/privacy}","received_events_url":"https://api.github.com/users/pclouds/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-21T09:57:21Z","updated_at":"2016-03-21T10:30:59Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/shirok/Gauche/pulls/189","html_url":"https://github.com/shirok/Gauche/pull/189","diff_url":"https://github.com/shirok/Gauche/pull/189.diff","patch_url":"https://github.com/shirok/Gauche/pull/189.patch"},"body":"I needed SIOCGIFADDR and SIOCGIFFLAGS for implementing noip.com client. While at there I implemented a few simple SIOCG* requests too. Tested with this on linux 3.18.7, x86-64 (and 4.0 also on x86-64).\r\n\r\n    (use gauche.net)\r\n    (let ([s (make-socket AF_INET SOCK_DGRAM)])\r\n      (print (logtest (socket-ioctl s SIOCGIFFLAGS \"wlan0\") IFF_UP))\r\n      (print (socket-ioctl s SIOCGIFMTU \"wlan0\"))\r\n      (print (socket-ioctl s SIOCGIFNAME (socket-ioctl s SIOCGIFINDEX \"wlan0\")))\r\n      (print (socket-ioctl s SIOCGIFADDR \"wlan0\"))\r\n      (print (socket-ioctl s SIOCGIFDSTADDR \"wlan0\"))\r\n      (print (socket-ioctl s SIOCGIFBRDADDR \"wlan0\"))\r\n      (print (socket-ioctl s SIOCGIFNETMASK \"wlan0\")))\r\n"},"comment":{"url":"https://api.github.com/repos/shirok/Gauche/issues/comments/199217341","html_url":"https://github.com/shirok/Gauche/pull/189#issuecomment-199217341","issue_url":"https://api.github.com/repos/shirok/Gauche/issues/189","id":199217341,"user":{"login":"pclouds","id":720,"avatar_url":"https://avatars.githubusercontent.com/u/720?v=3","gravatar_id":"","url":"https://api.github.com/users/pclouds","html_url":"https://github.com/pclouds","followers_url":"https://api.github.com/users/pclouds/followers","following_url":"https://api.github.com/users/pclouds/following{/other_user}","gists_url":"https://api.github.com/users/pclouds/gists{/gist_id}","starred_url":"https://api.github.com/users/pclouds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pclouds/subscriptions","organizations_url":"https://api.github.com/users/pclouds/orgs","repos_url":"https://api.github.com/users/pclouds/repos","events_url":"https://api.github.com/users/pclouds/events{/privacy}","received_events_url":"https://api.github.com/users/pclouds/received_events","type":"User","site_admin":false},"created_at":"2016-03-21T10:30:59Z","updated_at":"2016-03-21T10:30:59Z","body":"I wasn't sure if ioctl could ever return a positive value (something like read() does) but did not check full ioctl list. Yeah I think it's ok to return void for current code."}}