All of lore.kernel.org
 help / color / mirror / Atom feed
* RTNL sync or async when creating GPRS Context for STE modem.
@ 2010-05-30 14:45 Sjur BRENDELAND
  2010-05-30 19:46 ` =?unknown-8bit?q?R=C3=A9mi?= Denis-Courmont
  0 siblings, 1 reply; 3+ messages in thread
From: Sjur BRENDELAND @ 2010-05-30 14:45 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 818 bytes --]

Hi Marcel.

I have finally got around to do some coding in oFono again,
and have started to look into creating CAIF Network Interface 
using RTNL, instead using socket ioctls.
 
I have started out by doing the RTNL handling async, 
i.e. registering the RTNL socket with g_io_add_watch etc.
But I'm not really happy with the code as it feels
unnecessary complex, introduces new states in gprs-context.c. etc.

So I would like to do the RTNL handling synchronous instead,
as this would reduce complexity. But I just wanted your opinion
on this before I start refactoring my code.

Do you see any issues with doing RTNL request synchronous
i.e. sending out RTM_NEWLINK request and a waiting for 
RTM_NEWLINK response followed by NLMSG_ERROR,
(or just NLMSG_ERROR if unsuccessful)?


Regards
Sjur


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-05-31  7:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-30 14:45 RTNL sync or async when creating GPRS Context for STE modem Sjur BRENDELAND
2010-05-30 19:46 ` =?unknown-8bit?q?R=C3=A9mi?= Denis-Courmont
2010-05-31  7:58   ` Sjur BRENDELAND

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.