~cyphermox/ubuntu/precise/dnsmasq/dbus

« back to all changes in this revision

Viewing changes to dbus/DBus-interface

  • Committer: Bazaar Package Importer
  • Author(s): Simon Kelley
  • Date: 2009-02-07 19:25:23 UTC
  • mfrom: (10.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20090207192523-zut5qet639v1httx
 * Fix bashism in init script. (closes: #514397)
 * Tweak logging in init script.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
Dnsmasq provides one service on the DBus: uk.org.thekelleys.dnsmasq
22
22
and a single object: /uk/org/thekelleys/dnsmasq
23
23
 
 
24
1. METHODS
 
25
----------
 
26
 
24
27
Methods are of the form
25
28
 
26
29
uk.org.thekelleys.<method>
91
94
specified by via the DBus, but it leaves any servers specified via the
92
95
command line or /etc/dnsmasq.conf or /etc/resolv.conf alone.
93
96
 
94
 
 
 
97
2. SIGNALS
 
98
----------
 
99
 
 
100
If dnsmasq's DHCP server is active, it will send signals over DBUS whenever
 
101
the DHCP lease database changes. Think of these signals as transactions on
 
102
a database with the IP address acting as the primary key.
 
103
 
 
104
Signals are of the form:
 
105
 
 
106
uk.org.thekelleys.<signal>
 
107
 
 
108
and their parameters are:
 
109
 
 
110
STRING "192.168.1.115"
 
111
STRING "01:23:45:67:89:ab"
 
112
STRING "hostname.or.fqdn"
 
113
 
 
114
 
 
115
Available signals are:
 
116
 
 
117
DhcpLeaseAdded
 
118
---------------
 
119
 
 
120
This signal is emitted when a DHCP lease for a given IP address is created.
 
121
 
 
122
DhcpLeaseDeleted
 
123
----------------
 
124
 
 
125
This signal is emitted when a DHCP lease for a given IP address is deleted.
 
126
 
 
127
DhcpLeaseUpdated
 
128
----------------
 
129
 
 
130
This signal is emitted when a DHCP lease for a given IP address is updated.
 
131