<p dir="ltr"><br>
On May 24, 2014 4:52 AM, "Aleksander Morgado" <<a href="mailto:aleksander@aleksander.es">aleksander@aleksander.es</a>> wrote:<br>
><br>
> Hey Greg,<br>
><br>
> Just reviewing your mbim-proxy work. I made some more commits on top<br>
> of yours, changing some defaults and fixing some missing docs; it's<br>
> all in the 'greg/proxy' branch in upstream git.<br>
><br>
ok, thanks. </p>
<p dir="ltr">> Got a question, though:<br>
><br>
> On Thu, Apr 17, 2014 at 12:48 AM, Greg Suarez <<a href="mailto:gpsuarez2512@gmail.com">gpsuarez2512@gmail.com</a>> wrote:<br>
> > + gboolean forward_indication = FALSE;<br>
> > +<br>
> > + if (mbim_message_indicate_status_get_service (message) == MBIM_SERVICE_INVALID) {<br>
> > + for (i = 0; i < client->mbim_client_info_array->len; i++) {<br>
> > + MbimClientInfo *info;<br>
> > +<br>
> > + info = &g_array_index (client->mbim_client_info_array, MbimClientInfo, i);<br>
> > + /* If service UUID match, forward to the remote client */<br>
> > + if (mbim_uuid_cmp(mbim_message_indicate_status_get_service_id (message), &info->uuid)) {<br>
> > + forward_indication = TRUE;<br>
> > + break;<br>
> > + }<br>
> > + }<br>
> > + } else<br>
> > + forward_indication = TRUE;<br>
><br>
> I see that indications for known services are forwarded to all clients<br>
> by default, while indications for unknown services are only forwarded<br>
> if they are 'tracked' (i.e. if the client actually used that service<br>
> before explicitly). Not sure if that is the right approach as the<br>
> device may send indications of an unknown service even before the user<br>
> has used it... I believe that for now we should stick to sending all<br>
> indications to every client, as that is what a client not using the<br>
> proxy would expect, and the proxy aims to be transparent. Sure,<br>
> clients will get indications for services they may not be able to use,<br>
> but that is anyway the case when the proxy is not used.<br>
><br>
> What do you think?<br>
><br>
The issue is that one of the OEMs that I'm working with implements a "debug trace" service and once it's turned on generates megabytes of data through indications in just a few seconds. So I think it would be too much of a performance hit to forward so much data to clients that are just going to ignore it. </p>
<p dir="ltr">And I also believe that the MBIM spec specifies that devices are not supposed to send non standard indications unless first requested. Of course I could be wrong on this since it's been a while since I've read the spec. At least I know the spec for this OEM specifies that. </p>
<p dir="ltr">Thanks, </p>
<p dir="ltr">Greg </p>