Bug 461179

Summary: RFE: emit D-Bus signal when a lease is handed out
Product: [Fedora] Fedora Reporter: James Laska <jlaska>
Component: dnsmasqAssignee: Patrick Laughton <jima>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: dcbw, jima, jturner, wtogami
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-06-16 14:26:59 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description James Laska 2008-09-04 18:21:50 UTC
While testing the NetworkManager ConnectionSharing feature (https://fedoraproject.org/wiki/Features/ConnectionSharing), 

Not sure if this is possible or even desirable, just tossing it out there.  Would it be possible to provide a pop-up hint when any clients connected to my NM created ad-hoc network?

Comment 1 Dan Williams 2008-11-02 22:27:23 UTC
Not really; the only thing that knows is the DHCP server (dnsmasq), which doesn't expose this information.  However, it's a good idea if we could do it, maybe dnsmasq could send a signal out on its D-Bus interface whenever it hands out a lease to a new client.  Then the applet could listen for that signal and do something intelligent with it.

Comment 2 Patrick Laughton 2009-06-11 14:25:28 UTC
Isn't this more of an upstream RFE?  Simon is quite reasonable about listening to feature requests.

Actually, looking at http://www.thekelleys.org.uk/dnsmasq/CHANGELOG, it appears this handy-dandy feature was added as of 2.46:

Emit DBus signals as the DHCP lease database changes. Thanks to Jeremy Laine for the patch.

James, I imagine that's sufficiently close to what you're looking for?  (I mean, the lease database SHOULD change on a lease being issued, unless I'm completely inept.)

I apologize for the delay in addressing this bug.

Comment 3 James Laska 2009-06-11 16:49:28 UTC
Patrick: thanks for your response.  I'm not too familiar with the internals, but if that addresses the RFE for having a pop-up notification dialog when wireless clients connect to a NM Shared connection ... that'd be fine by me.

Comment 4 Patrick Laughton 2009-06-11 17:26:08 UTC
Err, that would handle the dnsmasq side of the DBus connection, correct.  I have no idea who'd be responsible for the other end (i.e., the actual pop-up).

Rawhide has 2.47-1 now, and 2.48-1 (which addresses Bug #494094) shortly.  F11 has 2.46, F10 has 2.45 (for now).  How far back are you hoping to have this?  I'm still trying to decide how far back I want to push 2.48-1 (for #494094), so I'm open to input.

Comment 5 James Laska 2009-06-16 13:17:20 UTC
> How far back are you hoping to have this? 

My expectations are that this feature would be added upstream to land in a future release of NM in Fedora.  I don't know if the dnsmasq change you noted in bug#494094 is related to the sending of a d-bus signal or not.

Comment 6 Patrick Laughton 2009-06-16 14:26:59 UTC
Bug #494094 is only peripherally related to this bug; it merely affects how early in the boot process dnsmasq is available, which shouldn't be a major factor for this.

For the purposes of having the DBus functionality available for future use (Rawhide & F-11), I believe this bug is resolved.  Thank you.