**** BEGIN LOGGING AT Thu Nov 19 02:59:58 2015 Nov 19 07:25:23 build #148 of cobalt is complete: Failure [failed shell_10] Build details are at http://buildbot.openwrt.org:8010/builders/cobalt/builds/148 Nov 19 07:28:01 build #148 of cns21xx is complete: Failure [failed shell_10] Build details are at http://buildbot.openwrt.org:8010/builders/cns21xx/builds/148 Nov 19 07:30:54 build #148 of orion is complete: Failure [failed shell_10] Build details are at http://buildbot.openwrt.org:8010/builders/orion/builds/148 Nov 19 08:02:19 luka r47513 trunk/target/linux/ (7 files) * imx6: refresh patches Nov 19 08:28:42 build #146 of pxa is complete: Failure [failed shell_10] Build details are at http://buildbot.openwrt.org:8010/builders/pxa/builds/146 Nov 19 09:49:51 build #133 of x86 is complete: Failure [failed shell_14] Build details are at http://buildbot.openwrt.org:8010/builders/x86/builds/133 Nov 19 09:56:22 I think I already asked this, but I don't remember the answer... uhttpd + ws? Nov 19 09:57:32 build #135 of ar71xx.nand is complete: Success [build successful] Build details are at http://buildbot.openwrt.org:8010/builders/ar71xx.nand/builds/135 Nov 19 09:57:40 wise sorcerers? Nov 19 10:03:52 white space? Nov 19 10:04:00 wall street? Nov 19 10:06:22 my crystal ball says: websockets Nov 19 10:07:30 nbd: don't spoil the fun, that was my guess too, just felt the question was needlessly terse :) Nov 19 10:07:39 i agree Nov 19 10:08:11 and wise sorcerers might want to use websockets too sometimes Nov 19 10:08:31 with magic javascript incantations Nov 19 10:08:58 the websocket protocol looks annoying Nov 19 10:09:41 txomon: if you _were_ asking about websockets, I use mosquitto for it, not uhttpd... Nov 19 10:09:44 Patches welcome though, or maybe nbd wants to chime in ;) Nov 19 10:09:54 but I already had the mqtt broker available.... Nov 19 10:10:12 it's more likely to be ubus that wants to provide websocket support than uhttpd I'd imagine? Nov 19 10:10:14 i think a websocket api that connects to an ubus service using ubus fd passing might be interesting Nov 19 10:10:14 maybe it makes sense to support connection upgrading in uhttpd with a handoff to some other service then Nov 19 10:10:34 but some totally httpd-unrelated protocol? not sure Nov 19 10:10:43 *http-unrealted protocol in uhttpd Nov 19 10:14:23 *sigh* webpeople and their latest hypes: rest, websockets, server-side javascript, wonder what the next strange idea will be Nov 19 10:14:31 https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API/Writing_WebSocket_servers Nov 19 10:14:40 looking here and still nto clear on some key concepts Nov 19 10:15:55 while the protocol is somewhat quirky, i do like the concept of being able to stream data from the server side to the client with support for bidirectional communication and without constant useless extra http requests Nov 19 10:16:17 nbd: yeah that protocol is called tcp ;) Nov 19 10:16:55 well, allowing the browser to do arbitrary tcp would be a huge security risk Nov 19 10:17:08 in what way? Nov 19 10:17:15 it could poke services Nov 19 10:17:20 some questions which aren't clear to me from skimming the doc a few times Nov 19 10:17:21 send spam mail via hosts that also have open port 25 Nov 19 10:17:27 a) what port is it using? Nov 19 10:17:36 if it allows other ip addresses, it could poke around in an internal network on a server's request Nov 19 10:17:56 b) is it handshaking the tcp^Wws connection with http to switch to some binary protocol then? Nov 19 10:18:17 c) this Sec-WebSocket-Key, is it the 32bit xor secret used for "encrypting" frames? Nov 19 10:19:02 nbd: i mean its the same issue with XSRF Nov 19 10:19:28 apparently the framing supports fragmentation and reassembly, this looks like a headache to securely implement Nov 19 10:19:40 sure that limits me to "HTTP" in some way, but also works with arbitrary ports and destinations Nov 19 10:19:43 I mean doable ofc, but annoying and certainly not simple Nov 19 10:19:45 build #144 of ppc40x is complete: Failure [failed shell_10] Build details are at http://buildbot.openwrt.org:8010/builders/ppc40x/builds/144 Nov 19 10:20:20 cyrusff: but with XSRF at least it's contained to one protocol where people are expected to take care of request security via tokens and stuff anyway Nov 19 10:20:25 jow_laptop: i think its multiplexed with the standard http-port it seems and that sec-websocket-key is just elaborate "Do you speak WS?" - "Yes I do" Nov 19 10:20:33 with arbitrary TCP that doesn't work Nov 19 10:20:34 so I could imagine uhttpd being a proxy of some sort, maybe even performing the handshake but not sure if the actual binary ws communication should be done by it Nov 19 10:20:49 jow_laptop: i agree, it should be a separate daemon Nov 19 10:21:05 or a plugin Nov 19 10:21:24 plugin would be more efficient since it would get rid of one extra data copy layer Nov 19 10:21:29 simpyl speaking I'd want that to be a different uloop() Nov 19 10:21:41 pass fds Nov 19 10:22:09 nbd: okay granted, let's say using HTTP as handshake has its merits, however that still doesn't really warrant a framing-protocol on top of TCP and what not Nov 19 10:22:19 the way it's designed right now, uhttpd cannot easily pass its http connection fd to another process Nov 19 10:22:20 and XOR "Encryption" Nov 19 10:22:40 nbd: i guess TLS would be tricky Nov 19 10:22:50 yeah Nov 19 10:23:16 even non-TLS is tricky Nov 19 10:23:20 because data is buffered Nov 19 10:23:20 i guess you could do awkward splice() and pipe combinations to get it near zero-copy Nov 19 10:39:09 libwebsockets is already packaged for openwrt, fwiw, and in use Nov 19 10:42:58 build #147 of imx6 is complete: Failure [failed compile_4] Build details are at http://buildbot.openwrt.org:8010/builders/imx6/builds/147 Nov 19 10:43:41 websockets are going to be die-ing off in favor of http2 .. not a good long term bet Nov 19 10:44:03 on the other hand http2 is not that well understood by people Nov 19 10:44:42 http2 is like ipv6, great idea, eventually. maybe. sort of, hopefully. Nov 19 10:44:48 websockets solves those problems now. Nov 19 10:44:49 also, .. what's wrong with just poking a server on the lan twice a second if that "poking" doesn't require forking stuff or sending tons of syscalls Nov 19 10:44:55 http 2 is an even larger clusterfuck :) Nov 19 10:45:32 oh, I know, let's use quic /joke Nov 19 10:45:41 just a rebranded spdy to begin with Nov 19 10:45:43 risk: don't question the user, give them more tools for shooting off their feet or maybe making something cool. Nov 19 10:46:31 karlp: if you make it work it'll be considered :) Nov 19 10:48:19 karlp: hm, the ucrrent libwebsockets ipk is ~33K that alone is larger than uhttpd and all its optional plugins :( Nov 19 10:48:20 but seriously, having a small ubus like message buffer where messages have a sequence and a ttl, with a few messages in ram, that the browser can pick up over plain http sounds good enough for me, I don't think it'd matter much if changing the ip appears to take 50ms or 250ms or 1s Nov 19 10:48:56 there's probably potential for shrinking it though Nov 19 10:49:25 risk: make what work? Nov 19 10:49:51 websocket based ui Nov 19 10:49:58 jow_laptop: yeah, uhttpd doesn't support DELETE either, there's a reason it's small ;) Nov 19 10:50:18 yes but adding DELETE wouldn't be 33K Nov 19 10:50:23 risk: I've already got a websockets based ui, I'm the maintainer of the libwebsockets package ;) Nov 19 10:50:30 jow_laptop: I know, cheap shot sorry :) Nov 19 10:50:35 33k is nothing! look at openssl! Nov 19 10:50:56 karlp: you have a websockets based luci? Nov 19 10:50:57 openssl? even jquery is larger! Nov 19 10:51:17 risk: why would I need to replace luci? it doesn't have bits that need websockets. Nov 19 10:51:34 I'm not trying to replace everything with websockets just because. Nov 19 10:51:34 karlp: anyhow, do you need delete and put support? I can certainly add stubs so that at least cgi handler can implement them Nov 19 10:51:52 I already added HEAD because it was needed by CORS Nov 19 10:52:10 jow_laptop: passing them to the handler would be nice, but I'm currently using the X-HTTP-Method-Override you added for me Nov 19 10:52:39 works fine, just occasionally forget and press the "delete" button in a rest client instead of post and a header. Nov 19 10:52:55 oh sorry, I thought you wanted to build uhttpd with it .. so you could have uhttpd serve through luci stuff using websockets .., my bad Nov 19 10:52:58 what's the point of adding DELETE? Nov 19 10:53:03 risk: no, that's txomon. Nov 19 10:53:09 i mean you don't really want to remote-delete files right? Nov 19 10:53:13 cyrusff: for your favourite REST ;) Nov 19 10:53:33 okay, I'm rephrasing. what's the point of REST over say, JSON-RPC Nov 19 10:53:33 cyrusff: right, for building REST apis Nov 19 10:53:42 I want to delete some files, yes. and "deleteing" portions of uci configs. Nov 19 10:53:42 cyrusff: less framing Nov 19 10:54:02 also json rpc is all rpc and not documents and urls :) Nov 19 10:54:09 gross and old fashioned ;) Nov 19 10:54:29 (and of course, totally functional and well documented, unlike most rest apis) Nov 19 10:54:48 its funny, because people probably said the reverse about using DELETE etc. over RPCs a few years ago Nov 19 10:54:48 stop being sarcastic ;) Nov 19 10:55:00 ;) Nov 19 10:55:29 remember webdav? :P Nov 19 10:55:34 yup, Nov 19 10:55:45 OPTIONS?! what are those?! no my webserver doens't support them! Nov 19 10:55:48 well, fwiw there's http://json-schema.org/ .. not the same as json rpc, but might help with plain old json post requests Nov 19 10:55:52 cyrusff: its still a little while yet but soon the web people will complete the full circle Nov 19 10:56:08 risk: yeah, I've got a RAML 0.8 document for our api and it uses json schema Nov 19 10:56:17 I mean with websockets they're on the way to reinvent tcp Nov 19 10:56:28 jow_laptop: so after REST we then have CBOR-RPC? ;) Nov 19 10:56:39 jow_laptop: no, they just want to use tcp, but are in a constrained environment. Nov 19 10:57:01 they all know this stuff exists, thye just can't use it from a browser client. Nov 19 10:57:17 and network security people insisted they couldn't have anything at all except an outbound 80/443, Nov 19 10:57:25 karlp: you can run a linux in a javascript vm, let it talk to the outside using websockets and then finally install your favorite network software within it Nov 19 10:57:29 karlp: sarcasm on raml doc, or link? Nov 19 10:57:51 it's for aour own devices, but yeah, hang on, Nov 19 10:58:27 yeah I get the idea that they needs some tcp-like thing doable from the browser which must not be unrestricted tcp Nov 19 10:58:35 http://paste.fedoraproject.org/292241/44793068/ Nov 19 10:58:44 but wouldn't something simple like the existing CONNECT used by http proxy work? Nov 19 10:58:51 that's what websockets does. Nov 19 10:58:56 why a new framing, new security concept, new subprotocols Nov 19 10:59:17 connect by itself is still just a single request. Nov 19 10:59:32 you're not solving the bi-dir comms, you still need the old long polling/crap Nov 19 10:59:33 just CONNECT, in js you get a handle with read callbacks and write methods Nov 19 10:59:44 if stuff is binary it gets exposed as typed char array Nov 19 11:00:02 yeah, why not just treat the socket as a plain old TCP-sockets after you have handshaked the HTTP "Upgrade" Nov 19 11:00:24 yeah, and I think socket.io stuff provided a nice api on that. Nov 19 11:00:41 websockets is just one of those typical 10x overengineered IETF protocols Nov 19 11:00:56 so the handshaking of websockets is okay, but the rest looks awkward, especially the frame formatz Nov 19 11:00:59 -z Nov 19 11:01:00 I don't know why websockets put more in, but I believe it was for being able to hve different protocols available from the same endpoint. Nov 19 11:01:22 and as a user, I don't have to care an aweful lot about it, it "just works" these days. Nov 19 11:01:50 having it all available on the same endpoint came again from the network security guys blocking everything and the CORS/xsrf hellholes Nov 19 11:01:57 true but what kind of argument is that in a development channel :) Nov 19 11:02:16 its not about what works from a user pov, but how hard it is to implement Nov 19 11:02:47 yay for awkward framing and XOR "encrpytion" on top of TCP because you are too lazy to open a second socket Nov 19 11:02:50 karlp: do you treat raml as idl, and/or "transpile" it into client/server stubs, or is it just for documentation purposes? Nov 19 11:02:52 heh, I'm just a user ;) Nov 19 11:03:15 risk: I just use it for documentaiton and to make me think about it more formally, but you can "transpile" them. Nov 19 11:03:37 I've never been particularly happy with transpiling things, bad expererinces from wsdl and xsd Nov 19 11:03:54 karlp: yeah, but I'd imagine every single js framework or tool has their own philosophy on how to send web requests Nov 19 11:04:05 I only have a js client anyway though, so I don't see much use for transpiling (neat word) Nov 19 11:04:17 but if you're writing java or C# or blah clients then I guess it's more appealing Nov 19 11:04:37 also to generate server code Nov 19 11:04:44 I recently had a lot of fun with SOAP, WSDL and PHP Nov 19 11:04:59 yeah, well, I can't imagine anyeon'e written a raml server generator that makes luci controllers.... Nov 19 11:05:03 so that's by hand too... Nov 19 11:05:18 karlp: yeah, but maybe something exists for lua Nov 19 11:05:26 hey, single page apps is the future, who needs servers Nov 19 11:05:32 and cgi has been around the block for long enough Nov 19 11:05:33 thats what the cloud is for Nov 19 11:05:49 (not that I like cgi) Nov 19 11:05:54 funny you mention that Nov 19 11:06:02 risk: maybe, they tend to be expeting luvit or similar, luci's not really the same thing there. Nov 19 11:06:32 where'd txomon go anyway? dropped his bomb and left? Nov 19 11:06:34 the onyl nice thing about cgi is that it is damn simple Nov 19 11:06:43 some servers are nice but recently they are only working with ipv6 because NAT/ipv4 with old stuff is not that nice Nov 19 11:07:30 jow_laptop: I've actually thought about that, making web ui optional, to save flash Nov 19 11:07:32 karlp: he's scared now :) Nov 19 11:07:51 jow_laptop: but having http with endpoints that work Nov 19 11:08:01 risk: it did a proof of concept with luci2 a while ago, works practically ootb and needed like three lines of frontend code change Nov 19 11:08:27 you just copy your /www to some online server and extend the login form with a third field for the router host address Nov 19 11:08:38 yeah, something like that Nov 19 11:08:47 but it's not really handy for a router Nov 19 11:09:04 just need http access to the device then. those damn network "securitay" engineers will get in the wya of that quick smart Nov 19 11:09:07 the existing ubus-http-json-rpc (can we find a new acronym for that?) already supports all needed functionality Nov 19 11:09:10 and then there's the version mess Nov 19 11:09:17 the only missing bit, CORS, has been added a while back Nov 19 11:09:50 jow_laptop: I actually considered trying to do my stuff as a json-rpc end, but I found it too much unknown. Nov 19 11:09:58 UTOC (1st, 2nd,3rd, last letter) Nov 19 11:10:00 I knew how to make controllers in lua and could follow things there, Nov 19 11:10:17 making a uhttpd json rpc backend was just dark depths with no lights. Nov 19 11:11:08 I actually added a CGI-like facility to rpcd so that you can write rpc procedures in shell script, or any other language Nov 19 11:13:47 guess I just couldn't find it then :) Nov 19 11:14:22 https://wiki.openwrt.org/doc/techref/rpcd Nov 19 11:19:35 heh, nice and old. must have overlooked it while trying to sort out uhttpd-json-rpc vs ubus vs rpcd and the different things plugged into ubus. Nov 19 11:20:22 that probably would have been potentially easier to run locally too. running uhttpd with luci locally has never worked well, though I've not tried in a while Nov 19 11:51:22 cyrus r47514 trunk/package/network/services/odhcpd/Makefile * odhcpd: correctly handle netlink congestion case Nov 19 11:56:02 cyrus r47515 branches/chaos_calmer/package/network/services/odhcpd/Makefile * odhcpd: backport trunk fixes Nov 19 12:15:48 karlp: Sorry I needed a nap, I was really tired Nov 19 12:16:26 I have been f***** android for past 72 hours Nov 19 12:16:32 I mean of course, fantastic Nov 19 12:17:28 I was thinking on listening to events Nov 19 12:17:39 and yes, it was for ubus Nov 19 12:17:45 * txomon is reading the conversation meanwhile Nov 19 12:29:56 so yeah, the only thing I really need is to listen to ubus notifications Nov 19 12:30:02 through http Nov 19 12:30:12 build #147 of oxnas is complete: Failure [failed compile_5] Build details are at http://buildbot.openwrt.org:8010/builders/oxnas/builds/147 Nov 19 12:30:20 rpc won't work that way, although we would have something like AJAX, but ... xD Nov 19 12:31:15 my idea was to support sockets on httpd-mod-ubus Nov 19 12:31:27 jsonrpc supports notifications protocol-wise Nov 19 12:31:43 so it could be implemented using polling probably Nov 19 12:31:52 well any kind of active listening on the client side does not map well to http Nov 19 12:32:12 one end has to poll and the other end needs to queue Nov 19 12:32:30 yeah, but I wanted to get rid of the polling, moreover if it exists a better way to do it... Nov 19 12:32:57 s,better,"better", Nov 19 12:33:25 right now there is no websocket ubus transport implemented Nov 19 12:34:03 jow_laptop: you would need some sort of queueing anyway, since you would need to actively subscribe Nov 19 12:34:10 via ubus Nov 19 12:34:28 or well you'd need some sort of per-client state at least Nov 19 12:34:39 cyrusff: of course, you have to even maintain the connection Nov 19 12:34:58 my idea would be to provide WS for just the ubus endpoint Nov 19 12:36:00 I dunno how is uhttpd done inside and how much does ubus mod do, but maybe if we support just a few basics of the WS protocol is assumable Nov 19 12:36:02 my point is, the rpcd would need to subscribe on the client's behalf anyway Nov 19 12:36:06 anbody with ncm protocol experiene here? Nov 19 12:36:26 cyrusff: why would rpcd need to subscribe on the client's behalf? Nov 19 12:36:36 got a bug report for luci which boils down to `ifstatus network-with-ncm` not reporting any ip address Nov 19 12:37:32 jow_laptop: maybe it boils down to the use of subprotocols Nov 19 12:37:44 so that its really ifstatus network-with-ncm_4 or so Nov 19 12:37:59 my idea was to maintain the same protocol, jsonrpc2 but with serialized Nov 19 12:38:01 txomon: because you don't get ubus events which you arent't subscribed to Nov 19 12:38:18 and rpcd is just another ubus-client in that sense Nov 19 12:38:21 cyrusff: for sure the ubus mod should need to be updated to allow subscription Nov 19 12:39:16 repalce ubus with mosquitto? ;) Nov 19 12:39:33 * karlp ducks... Nov 19 12:39:39 karlp: nah i guess we can do better and find even more bloated protocols Nov 19 12:40:01 something with XML over SOAP or so Nov 19 12:40:09 the three modifications I see is: 1) uhttpd to support WS handshake 2) uhttpd-mod-ubus to support WS protocol 2) uhttpd-mod-ubus to allow subscription Nov 19 12:40:12 cyrusff: mqtt is just binary with topics for pub/sub... Nov 19 12:40:25 just like ubus, only... not proprietary openwrt... Nov 19 12:40:43 ah think i confused it with something else then Nov 19 12:41:02 mqtt doesn't say anything at all about the messages Nov 19 12:41:07 cyrusff: subprotcols? please not Nov 19 12:42:07 anyway, I just want to be able to subscribe to ubus from a remote client Nov 19 12:42:33 txomon: sounds like overkill Nov 19 12:42:46 to do WS just for the subscription bits Nov 19 12:43:02 cyrusff: without polling. I need to be able to get rid of any polling Nov 19 12:43:34 if you want responsive workflows, you need it to be as fast as possible Nov 19 12:43:44 just poll faster :D Nov 19 12:43:56 well how does WS get rid of polling? Nov 19 12:44:02 its tcp so it will at least poll on that layer Nov 19 12:44:31 all that it does is save you a few bytes for the http request Nov 19 12:44:43 well I suppose txomon means the tradition window.setInterval / window.setTimeout poll loop Nov 19 12:44:46 jow_laptop: many of the 3g/4g protocols just setup an L2 Nov 19 12:44:58 cyrusff: well devstatus has the ip and ifstatus not Nov 19 12:44:58 and then spawn a subprotocol to run dhcp and dhcpv6 over it Nov 19 12:45:14 can you get a network interface dump? Nov 19 12:45:23 then we know whats going on Nov 19 12:45:26 I changed luci to ifstatus recently and of course everything broke Nov 19 12:45:34 I requested a dump, yes Nov 19 12:46:02 whenever I seriously try to move away from getifaddrs, uci state vars to ubus, I notice stuff not working :) Nov 19 12:46:16 jow_laptop: yeah, that's what I want to avoid, anyway, while learning android I am doing a ubus rpc interface for android Nov 19 12:46:44 and I realized you can't really replicate ubus there... Nov 19 12:46:49 txomon: the simplest intermeidate solution would be a long polling implementation Nov 19 12:47:20 jow_laptop: and the best to allow server->client communication? Nov 19 12:47:27 using http Nov 19 12:47:30 long polling Nov 19 12:48:13 jow_laptop: basically "ubus call network.interface dump" and aggregate all information with matching l3_devices Nov 19 12:49:07 cyrusff: yeah thats exactly what I did not want to do anymore Nov 19 12:49:15 hence moving to ifstatus Nov 19 12:49:36 simple usecase: having a wan with dhcp and some @wan alias with static ipaddr Nov 19 12:50:11 I don't want wan to have both ips displayed next to it. I want wan to display the dhcp ip and the alias interface to display its static ip Nov 19 12:50:17 txomon: you could probably write a pretty trivial ubus<->mqtt bridge actually. havne't played with the auth stuff much though, but they both offer pub/sub, so just susbcribe to * on ubus and repost to mqtt, and listen to * on mqtt and repost to ubus? Nov 19 12:52:05 cyrusff: can we add an initiator property to those subiface so we at least know what they relate to? Nov 19 12:52:34 without grouping by l3device because then we'd mix logically separate networks Nov 19 13:03:50 hmm is the original "ifname" exported? Nov 19 13:03:59 because then you could simply parse @foo Nov 19 13:04:09 and see what parent a subinterface belongs to Nov 19 13:05:39 but i guess we could also export a "virtual" flag in addition Nov 19 13:10:25 http://git.openwrt.org/?p=project/netifd.git;a=commitdiff;h=48c0fbee548206058c399a73a80178cdcfec3fc7 Nov 19 13:11:20 dynamic=false: interface is in config, dynamic=true: interface is virtual and is deleted once it goes down for any reason Nov 19 13:19:39 karlp: my idea was to use the same transport as the rest of ubus really... Nov 19 13:20:43 but yeah for the moment, and until they approve me using the ubus backend like I am, I will stick to the long polling option Nov 19 14:45:18 wigyori r47516 trunk/package/boot/uboot-sunxi/patches/002-add-lamobo-r1.diff * packages: uboot-sunxi: update Lamobo R1 patch Nov 19 15:24:00 build #147 of realview is complete: Failure [failed compile_5] Build details are at http://buildbot.openwrt.org:8010/builders/realview/builds/147 Nov 19 15:46:37 rmilecki, hi. I was send by hacking gluon to you because you might be interessted in something b43 related. here is a dmesg for you pastebin.com/Crr59XfY Nov 19 15:53:21 rmilecki, notice "[ 0.264000] ssb: WARNING: Invalid SPROM CRC (corrupt SPROM)" Nov 19 16:11:05 build #128 of avr32 is complete: Failure [failed shell_10] Build details are at http://buildbot.openwrt.org:8010/builders/avr32/builds/128 Nov 19 18:31:55 wubblepuff: nothing extraordinary i can see there Nov 19 18:32:12 wubblepuff: this is SPROM-less PCIe card, so it doesn't containt SPROM Nov 19 18:32:16 SPROM should be provided by platform Nov 19 18:32:23 it seems bcm63xx doesn't provide it Nov 19 18:37:25 build #132 of xburst is complete: Failure [failed compile_5] Build details are at http://buildbot.openwrt.org:8010/builders/xburst/builds/132 Nov 19 19:19:31 build #128 of mxs is complete: Failure [failed compile_5] Build details are at http://buildbot.openwrt.org:8010/builders/mxs/builds/128 Nov 19 19:28:59 cyrusff: thanks but thats only marginally useful - something like parent=wan6 or section=wan6 would be helpful Nov 19 19:29:39 jow_laptop: reiterating here: isn't that saved in ifname? Nov 19 19:29:56 or does netifd use the resolved ifname instead of providing say @wan6 Nov 19 19:29:58 ? Nov 19 19:30:04 in the ubus output Nov 19 19:30:32 but how can I differentiate a virtual iface from two configured ifaces sharing the smae l3device? Nov 19 19:30:54 even if I group by l3device Nov 19 19:31:09 no, thats not what i mean Nov 19 19:31:33 so a virtual interface is just an interface that doesn't exist in config and is forgotten when it goes down Nov 19 19:31:52 a subprotocol is usually just a combination of virtual interface and ifname=@parent Nov 19 19:32:15 so once we export the originally configured ifname (e.g. @parent) you could replicate the relations Nov 19 19:32:23 so questions was: do we already do that? Nov 19 19:32:31 not sure if we really could Nov 19 19:32:48 what if two interfaces share the same device and each spawn virtual subifaces Nov 19 19:32:55 how to group them? Nov 19 19:33:34 okay let's say: name=wan,ifname=eth0,proto=dhcp and name=wan6,ifname=eth0,proto=dhcpv6 Nov 19 19:33:58 wan has wan_6,ifname=@wan,proto=6rd and wan6 has wan6_4,ifname=@wan6,proto=dslite Nov 19 19:34:15 as subinterface respectively Nov 19 19:34:28 so their ifname is different Nov 19 19:34:44 in the interface dump the l3_devices are resolved Nov 19 19:34:48 e.g. wwan0 Nov 19 19:35:01 yeah, my question was: is the l2_device exported? Nov 19 19:35:11 l3_device you cannot use anyway Nov 19 19:35:21 since for a tunnel the l3_device of the subinterface would be different Nov 19 19:35:29 l2 is exported and resolved as well Nov 19 19:35:44 okay, so we need to export the unresolved l2 Nov 19 19:35:56 but separately Nov 19 19:36:15 don't need unresolved stuff in ubus just to painfully solve it myself Nov 19 19:36:32 sure Nov 19 19:36:41 so guess we want parent=wan Nov 19 19:36:56 yeah, preferably something that can be directly used for uci queries Nov 19 19:37:09 uci is problematic Nov 19 19:37:10 i.e. section=wan Nov 19 19:37:20 since subinterfaces can have subinterfaces Nov 19 19:37:37 I only care about the initial originator, if there's one Nov 19 19:37:55 and sub-sub-ifaces would still have section= Nov 19 19:38:06 well the parent of a sub-sub is the sub- Nov 19 19:38:06 hauke r47517 trunk/package/firmware/ath10k-firmware/Makefile * ath10k-firmware: fix patch of firmware Nov 19 19:38:19 hence not parent=... but section=... Nov 19 19:38:22 would make it clear Nov 19 19:38:48 i.e. t get rid of / shutdown sub-sub-foo, delete section foo Nov 19 19:39:09 rmilecki, so sprom warning is no issue then? it's just wifi doesn't seem to connect to anything. is it a gluon bug? spw303v wifi doesn't work in openwrt. I added the "fallback_sprom" entry from homehub2a patch to spw303v patch. after that b43 module loads, with that warning though, Nov 19 19:40:00 jow_laptop: well the "dynamic"-flag aside there is no difference between an @wan interface that is explicitly written in the config Nov 19 19:40:15 or one that was spawned as a virtual subinterface by a protocol handler Nov 19 19:40:47 well my use case is: Nov 19 19:41:09 uci foreach "network", "interface" Nov 19 19:41:30 ubus call network.interface status [interface name] -> report ipv4-address Nov 19 19:41:43 that fails for any proto ncm interface Nov 19 19:42:06 and by merely grouping by device I might report addresses belonging to a forein uci section Nov 19 19:42:15 which I do not want Nov 19 19:42:23 so how to solve? Nov 19 19:42:25 problem with that is that there may be something in the future which just creates a virtual interface out of a daemon Nov 19 19:42:35 thats fine, then it has no config Nov 19 19:42:56 so you don't care about that Nov 19 19:43:11 rmilecki, also it seem openwrt/gluon doesn't get a mac adress for wifi (ff:ff:ff...) Nov 19 19:43:18 what I care about is that interconnected interfaces can be related to each other Nov 19 19:43:25 wubblepuff: what is a gluon? Nov 19 19:43:35 cyrusff: freifunk openwrt fork Nov 19 19:44:02 ah, fancy name Nov 19 19:44:12 anyway Nov 19 19:44:15 cyrusff, https://github.com/freifunk-gluon/gluon Nov 19 19:44:15 cyrusff: either those sub-hierarchies need to point to some unique id to group them (e.g. uci section name), or have a simple .parent property chain so I can group them Nov 19 19:44:55 yeah, that parent property should be doable Nov 19 19:44:56 so I were to report that proto=ncm iface, I would merge the states of all other ifaces having .parent = Nov 19 19:45:03 +if Nov 19 19:45:56 even better would be a childs = [ ... ] on the parent but that is probably harder to implement and not worth it Nov 19 19:46:36 I guess the parent has no knowledge at all of potential sub-ifaces Nov 19 19:47:12 that virtual flag should be kept anyway, this allows easy exclusion of non-config interfaces Nov 19 19:53:44 i think children might even be easier Nov 19 19:53:58 great Nov 19 19:54:00 based on device_users Nov 19 19:54:10 because in practise the childs of a given interest are of more interest than the parent Nov 19 19:54:18 especially if the parent itself carries no ip config Nov 19 19:54:26 *of a given interface Nov 19 20:51:13 hauke r47518 packages/utils/sane-backends * sane-backends: moved to github Nov 19 20:51:34 hauke r47519 packages/utils/canutils * canutils: moved to github Nov 19 20:52:01 hauke r47520 packages/utils/bandwidthd * bandwidthd: moved to github Nov 19 20:52:41 hauke r47521 packages/net/reaver * reaver: moved to github Nov 19 20:53:05 hauke r47522 packages/net/nbd * nbd: moved to github Nov 19 20:53:29 hauke r47523 packages/net/htpdate * htpdate: moved to github Nov 19 20:53:49 hauke r47524 packages/net/chrony * chrony: moved to github Nov 19 20:54:27 hauke r47525 packages/net/chaosvpn * chaosvpn: moved to github Nov 19 20:54:47 hauke r47526 packages/net/atftp * atftp: moved to github Nov 19 20:55:07 hauke r47527 packages/libs/libgee * libgee: moved to github Nov 19 20:55:25 hauke r47528 packages/lang/tcl * tcl: moved to github Nov 19 20:56:18 hauke r47529 packages/lang/python-crypto * python-crypto: moved to github Nov 19 20:57:30 wubblepuff: i have no idea about bcm63xx fallback, gluon, homehub2a & spw303v Nov 19 20:57:44 wubblepuff: there should be SPROM fallback implementation filling all important fields in SPROM struct Nov 19 20:57:51 e.g. MAC address, boardflags, etc. Nov 19 20:59:05 wubblepuff: http://lxr.free-electrons.com/source/arch/mips/bcm47xx/sprom.c?v=4.2 this is how bcm47xx handles this Nov 19 20:59:11 on bcm47xx there is NVRAM Nov 19 20:59:19 so we query NVRAM & put data in SPROM struct Nov 19 20:59:29 wubblepuff: you may ask KanjiMonster for some help Nov 19 21:00:31 on bcm63xx there is no sprom data in nvram, so we have to hardcode it Nov 19 21:01:30 basically I'm missing something Nov 19 21:02:22 rmilecki, thanks Nov 19 21:03:32 KanjiMonster, is there something I could provide like logs for this? Nov 19 21:07:16 build #127 of kirkwood is complete: Failure [failed compile_5] Build details are at http://buildbot.openwrt.org:8010/builders/kirkwood/builds/127 Nov 19 21:10:30 hauke r47530 packages/net/gpsd * gpsd: moved to github Nov 19 21:51:28 nbd r47531 trunk/package/system/ubus/Makefile Nov 19 21:51:28 ubus: update to the latest version, adds support for monitoring system bus traffic Nov 19 22:02:56 build #130 of ar7 is complete: Failure [failed compile_5] Build details are at http://buildbot.openwrt.org:8010/builders/ar7/builds/130 Nov 19 22:18:03 build #119 of mpc83xx is complete: Failure [failed shell_10] Build details are at http://buildbot.openwrt.org:8010/builders/mpc83xx/builds/119 Nov 20 00:36:18 build #115 of mpc52xx is complete: Failure [failed shell_10] Build details are at http://buildbot.openwrt.org:8010/builders/mpc52xx/builds/115 **** ENDING LOGGING AT Fri Nov 20 02:59:58 2015