Skip to content

Commit ccab0bc

Browse files
committed
initial v0.5
1 parent 826cf6c commit ccab0bc

File tree

11 files changed

+1365
-20
lines changed

11 files changed

+1365
-20
lines changed

LICENSE

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
GNU GENERAL PUBLIC LICENSE
2-
Version 2, June 1991
1+
GNU GENERAL PUBLIC LICENSE
2+
Version 2, June 1991
33

4-
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
5-
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
4+
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
5+
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
66
Everyone is permitted to copy and distribute verbatim copies
77
of this license document, but changing it is not allowed.
88

9-
Preamble
9+
Preamble
1010

1111
The licenses for most software are designed to take away your
1212
freedom to share and change it. By contrast, the GNU General Public
@@ -15,7 +15,7 @@ software--to make sure the software is free for all its users. This
1515
General Public License applies to most of the Free Software
1616
Foundation's software and to any other program whose authors commit to
1717
using it. (Some other Free Software Foundation software is covered by
18-
the GNU Lesser General Public License instead.) You can apply it to
18+
the GNU Library General Public License instead.) You can apply it to
1919
your programs, too.
2020

2121
When we speak of free software, we are referring to freedom, not
@@ -55,8 +55,8 @@ patent must be licensed for everyone's free use or not licensed at all.
5555

5656
The precise terms and conditions for copying, distribution and
5757
modification follow.
58-
59-
GNU GENERAL PUBLIC LICENSE
58+
59+
GNU GENERAL PUBLIC LICENSE
6060
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
6161

6262
0. This License applies to any program or other work which contains
@@ -110,7 +110,7 @@ above, provided that you also meet all of these conditions:
110110
License. (Exception: if the Program itself is interactive but
111111
does not normally print such an announcement, your work based on
112112
the Program is not required to print an announcement.)
113-
113+
114114
These requirements apply to the modified work as a whole. If
115115
identifiable sections of that work are not derived from the Program,
116116
and can be reasonably considered independent and separate works in
@@ -168,7 +168,7 @@ access to copy from a designated place, then offering equivalent
168168
access to copy the source code from the same place counts as
169169
distribution of the source code, even though third parties are not
170170
compelled to copy the source along with the object code.
171-
171+
172172
4. You may not copy, modify, sublicense, or distribute the Program
173173
except as expressly provided under this License. Any attempt
174174
otherwise to copy, modify, sublicense or distribute the Program is
@@ -225,7 +225,7 @@ impose that choice.
225225

226226
This section is intended to make thoroughly clear what is believed to
227227
be a consequence of the rest of this License.
228-
228+
229229
8. If the distribution and/or use of the Program is restricted in
230230
certain countries either by patents or by copyrighted interfaces, the
231231
original copyright holder who places the Program under this License
@@ -255,7 +255,7 @@ make exceptions for this. Our decision will be guided by the two goals
255255
of preserving the free status of all derivatives of our free software and
256256
of promoting the sharing and reuse of software generally.
257257

258-
NO WARRANTY
258+
NO WARRANTY
259259

260260
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
261261
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
@@ -277,9 +277,9 @@ YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
277277
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
278278
POSSIBILITY OF SUCH DAMAGES.
279279

280-
END OF TERMS AND CONDITIONS
281-
282-
How to Apply These Terms to Your New Programs
280+
END OF TERMS AND CONDITIONS
281+
282+
How to Apply These Terms to Your New Programs
283283

284284
If you develop a new program, and you want it to be of the greatest
285285
possible use to the public, the best way to achieve this is to make it
@@ -303,16 +303,17 @@ the "copyright" line and a pointer to where the full notice is found.
303303
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
304304
GNU General Public License for more details.
305305

306-
You should have received a copy of the GNU General Public License along
307-
with this program; if not, write to the Free Software Foundation, Inc.,
308-
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
306+
You should have received a copy of the GNU General Public License
307+
along with this program; if not, write to the Free Software
308+
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
309+
309310

310311
Also add information on how to contact you by electronic and paper mail.
311312

312313
If the program is interactive, make it output a short notice like this
313314
when it starts in an interactive mode:
314315

315-
Gnomovision version 69, Copyright (C) year name of author
316+
Gnomovision version 69, Copyright (C) year name of author
316317
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
317318
This is free software, and you are welcome to redistribute it
318319
under certain conditions; type `show c' for details.
@@ -335,5 +336,5 @@ necessary. Here is a sample; alter the names:
335336
This General Public License does not permit incorporating your program into
336337
proprietary programs. If your program is a subroutine library, you may
337338
consider it more useful to permit linking proprietary applications with the
338-
library. If this is what you want to do, use the GNU Lesser General
339+
library. If this is what you want to do, use the GNU Library General
339340
Public License instead of this License.

Makefile

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
VERSION=0.5
2+
TARFILE=mdns-scan-$(VERSION).tar.gz
3+
DISTDIR=mdns-scan-$(VERSION)/
4+
DISTFILES=Makefile mdns-scan.1 dns.c dns.h mdns-scan.c query.c query.h util.h util.c README LICENSE
5+
CFLAGS=-Wall -W -g -O0 -pipe
6+
7+
mdns-scan: mdns-scan.o dns.o query.o util.o
8+
$(CC) -o $@ $^
9+
10+
dist: $(TARFILE)
11+
12+
$(TARFILE): $(DISTFILES)
13+
rm -rf $(DISTDIR)
14+
mkdir $(DISTDIR)
15+
cp --parents $(DISTFILES) $(DISTDIR)
16+
rm -f $(TARFILE)
17+
tar czf $(TARFILE) $(DISTDIR)
18+
rm -rf $(DISTDIR)
19+
20+
install:
21+
install mdns-scan $(DESTDIR)/usr/bin/mdns-scan
22+
23+
clean:
24+
rm -f mdns-scan *.o *.tar.gz
25+
rm -rf mdns-scan-$(VERSION)
26+
27+
deb:
28+
dpkg-buildpackage -uc -us -rfakeroot
29+
30+
.PHONY: clean dist deb install
31+
32+
33+

README

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
mdns-scan is a tool for scanning for mDNS/DNS-SD published services on the
2+
local network. It issues a mDNS PTR query to the special RR
3+
_services._dns-sd._udp.local for retrieving a list of all currently registered
4+
services on the local link.
5+
6+
mdns-scan is not a good mDNS citizen since it queries continuously for services
7+
and doesn't implement features like Duplicate Suppression. It is intended for
8+
usage as a debugging tool only.
9+
10+
mdns-scan is incomplete since it doesn't resolve mDNS services for you - it
11+
just dumps their PTR RRs. To understand these records you need minimal
12+
knowledge of DNS-SD and how it works.
13+
14+
mdns-scan does not terminate on its own behalf. It scans for services
15+
continuously until the user kills it by pressing C-c.
16+
17+
mdns-scan does not rely on a local mDNS responder daemon. It has no
18+
dependencies besides the GNU libc. It has been tested on Linux only.
19+
20+
mdns-scan does NOT scan for local mDNS enabled hosts or A/AAAA RRs, it scans
21+
for DNS-SD registered services, nothing else.
22+
23+
Changes from 0.1 to 0.2:
24+
25+
Send mDNS queries on all local interfaces that support it, not only on the
26+
default one.
27+
28+
Changes from 0.2 to 0.3:
29+
30+
Add debian/ directory
31+
32+
Changes from 0.3 to 0.4:
33+
34+
Add man pages
35+
Improvements to the Debianization
36+
37+
--
38+
December 2004, Lennart Poettering, mzzqaffpna (at) 0pointer (dot) de
39+
$Id: README 76 2005-01-23 15:22:47Z lennart $

0 commit comments

Comments
 (0)