Skip to content

Commit eda8cfc

Browse files
committed
From Greg Minshall:
print the TTL for DNS entries with 3 or more "-v" flags; print the addresses in A, AAAA, and A6 entries numerically (the point of A, AAAA, and A6 entries being to give the address corresponding to a name). Better late than never - do at least a little de-spamification of addresses in the CREDITS file. (Greg's address was despammed in his sourceforge.net submission for this.) Move the late Jun-ichiro itojun Hagino to a "Past maintainers" section.
1 parent a11ed89 commit eda8cfc

File tree

2 files changed

+181
-159
lines changed

2 files changed

+181
-159
lines changed

CREDITS

+152-149
Original file line numberDiff line numberDiff line change
@@ -1,163 +1,166 @@
11
This file lists people who have contributed to tcpdump:
22

33
The current maintainers:
4-
Bill Fenner <[email protected]>
5-
David Young <[email protected]>
6-
Fulvio Risso <[email protected]>
7-
Guy Harris <[email protected]>
8-
Hannes Gredler <[email protected]>
9-
Jun-ichiro itojun Hagino <[email protected]>
10-
Michael Richardson <[email protected]>
4+
Bill Fenner <fenner at research dot att dot com>
5+
David Young <dyoung at pobox dot com>
6+
Fulvio Risso <risso at polito dot it>
7+
Guy Harris <guy at alum dot mit dot edu>
8+
Hannes Gredler <hannes at juniper dot net>
9+
Michael Richardson <mcr at sandelman dot ottawa dot on dot ca>
1110

1211
Additional people who have contributed patches:
1312

14-
Aaron Campbell <[email protected]>
15-
Alfredo Andres <[email protected]>
16-
Albert Chin <[email protected]>
17-
Ananth Suryanarayana <[email protected]>
18-
Andrea Bittau <[email protected]>
19-
Andrew Brown <[email protected]>
20-
Andrew Church <[email protected]>
21-
Andrew Hintz <[email protected]>
22-
Andrew Tridgell <[email protected]>
23-
Andy Heffernan <[email protected]>
24-
Arkadiusz Miskiewicz <[email protected]>
25-
Armando L. Caro Jr. <[email protected]>
26-
Arnaldo Carvalho de Melo <[email protected]>
27-
Ben Byer <[email protected]>
28-
Atsushi Onoe <[email protected]>
29-
Ben Smithurst <[email protected]>
30-
Brent L. Bates <[email protected]>
31-
Brian Ginsbach <[email protected]>
32-
Bruce M. Simpson <[email protected]>
33-
Carles Kishimoto Bisbe <[email protected]>
34-
Charlie Lenahan <[email protected]>
35-
Charles M. Hannum <[email protected]>
36-
Chris Cogdon <[email protected]>
37-
Chris G. Demetriou <[email protected]>
38-
Christian Sievers <[email protected]>
39-
Chris Jepeway <[email protected]>
40-
Chris Larson <[email protected]>
41-
Craig Rodrigues <[email protected]>
42-
Crist J. Clark <[email protected]>
43-
Daniel Hagerty <[email protected]>
44-
Darren Reed <[email protected]>
45-
David Binderman <[email protected]>
46-
David Smith <[email protected]>
47-
David Young <[email protected]>
48-
Don Ebright <[email protected]>
49-
Eddie Kohler <[email protected]>
50-
Florent Drouin <[email protected]>
51-
Francis Dupont <[email protected]>
52-
Francisco Matias Cuenca-Acuna <[email protected]>
53-
Francois-Xavier Le Bail <[email protected]>
54-
Frank Volf <[email protected]>
55-
Fulvio Risso <[email protected]>
56-
George Bakos <[email protected]>
57-
Gerald Combs <[email protected]>
58-
Gerrit Renker <[email protected]>
59-
Gert Doering <[email protected]>
60-
Greg Stark <[email protected]>
61-
Gilbert Ramirez Jr. <[email protected]>
62-
Gisle Vanem <[email protected]>
63-
Hannes Viertel <[email protected]>
64-
Hank Leininger <[email protected]>
65-
Harry Raaymakers <[email protected]>
66-
Heinz-Ado Arnolds <[email protected]>
67-
Hendrik Scholz <[email protected]>
68-
Ian McDonald <[email protected]>
69-
Jacek Tobiasz <[email protected]>
70-
Jakob Schlyter <[email protected]>
71-
Jan Oravec <[email protected]>
72-
Jason R. Thorpe <[email protected]>
73-
Jefferson Ogata <[email protected]>
74-
Jeffrey Hutzelman <[email protected]>
75-
Jesper Peterson <[email protected]>
76-
Jim Hutchins <[email protected]>
77-
Jonathan Heusser <[email protected]>
78-
Tatuya Jinmei <[email protected]>
79-
J�rgen Thomsen <[email protected]>
80-
Julian Cowley <[email protected]>
81-
Kaarthik Sivakumar <[email protected]>
82-
Kazushi Sugyo <[email protected]>
83-
Kelly Carmichael <[email protected]>
84-
Ken Hornstein <[email protected]>
85-
Kevin Steves <[email protected]>
86-
Klaus Klein <[email protected]>
87-
Kris Kennaway <[email protected]>
88-
Krzysztof Halasa <[email protected]>
89-
Larry Lile <[email protected]>
90-
Lennert Buytenhek <[email protected]>
91-
Loris Degioanni <[email protected]>
92-
Love H�rnquist-�strand <[email protected]>
93-
Luis Martin Garcia <[email protected]>
94-
Maciej W. Rozycki <[email protected]>
95-
Manu Pathak <[email protected]>
96-
Marc Binderberger <[email protected]>
97-
Marc A. Lehmann <[email protected]>
98-
Mark Ellzey Thomas <[email protected]>
99-
Marko Kiiskila <[email protected]>
100-
Markus Sch�pflin <[email protected]>
101-
Marshall Rose <[email protected]>
102-
Martin Husemann <[email protected]>
103-
Max Laier <[email protected]>
104-
Michael Madore <[email protected]>
105-
Michael Shalayeff <[email protected]>
106-
Michael Shields <[email protected]>
107-
Michael T. Stolarchuk <[email protected]>
108-
Michele "mydecay" Marchetto <[email protected]>
109-
Monroe Williams <[email protected]>
110-
Motonori Shindo <[email protected]>
111-
Nathan J. Williams <[email protected]>
112-
Nathaniel Couper-Noles <[email protected]>
113-
Neil T. Spring <[email protected]>
114-
Niels Provos <[email protected]>
115-
Nickolai Zeldovich <[email protected]>
116-
Nicolas Ferrero <[email protected]>
117-
Noritoshi Demizu <[email protected]>
118-
Olaf Kirch <[email protected]>
119-
Onno van der Linden <[email protected]>
120-
Paolo Abeni <[email protected]>
121-
Pascal Hennequin <[email protected]>
122-
Pasvorn Boonmark <[email protected]>
123-
Paul Mundt <[email protected]>
124-
Paul S. Traina <[email protected]>
125-
Pavlin Radoslavov <[email protected]>
126-
Pekka Savola <[email protected]>
127-
Peter Fales <[email protected]>
128-
Peter Jeremy <[email protected]>
129-
130-
Phil Wood <[email protected]>
131-
Rafal Maszkowski <[email protected]>
132-
Raphael Raimbault <[email protected]>
133-
Rick Cheng <[email protected]>
134-
Rick Jones <[email protected]>
135-
Rick Watson <[email protected]>
136-
Rob Braun <[email protected]>
137-
Roderick Schertler <[email protected]>
138-
Sami Farin <[email protected]>
139-
Scott Rose <[email protected]>
140-
Sebastian Krahmer <[email protected]>
141-
Sebastien Raveau <[email protected]>
142-
Sebastien Vincent <[email protected]>
143-
Sepherosa Ziehau <[email protected]>
144-
Seth Webster <[email protected]>
145-
Shinsuke Suzuki <[email protected]>
146-
Steinar Haug <[email protected]>
147-
Swaminathan Chandrasekaran <[email protected]>
148-
Takashi Yamamoto <[email protected]>
149-
Terry Kennedy <[email protected]>
13+
Aaron Campbell <aaron at arbor dot net>
14+
Alfredo Andres <aandres at s21sec dot com>
15+
Albert Chin <china at thewrittenword dot com>
16+
Ananth Suryanarayana <anantha at juniper dot net>
17+
Andrea Bittau <a dot bittau at cs dot ucl dot ac dot uk>
18+
Andrew Brown <atatat at atatdot dot net>
19+
Andrew Church <andrew at users dot sourceforge dot net>
20+
Andrew Hintz <adhintz at users dot sourceforge dot net>
21+
Andrew Tridgell <tridge at linuxcare dot com>
22+
Andy Heffernan <ahh at juniper dot net>
23+
Arkadiusz Miskiewicz <misiek at pld dot org dot pl>
24+
Armando L. Caro Jr. <acaro at mail dot eecis dot udel dot edu>
25+
Arnaldo Carvalho de Melo <acme at ghostprotocols dot net>
26+
Ben Byer <bushing at sourceforge dot net>
27+
Atsushi Onoe <onoe at netbsd dot org>
28+
Ben Smithurst <ben at scientia dot demon dot co dot uk>
29+
Brent L. Bates <blbates at vigyan dot com>
30+
Brian Ginsbach <ginsbach at cray dot com>
31+
Bruce M. Simpson <bms at spc dot org>
32+
Carles Kishimoto Bisbe <ckishimo at ac dot upc dot es>
33+
Charlie Lenahan <clenahan at fortresstech dot com>
34+
Charles M. Hannum <mycroft at netbsd dot org>
35+
Chris Cogdon <chris at cogdon dot org>
36+
Chris G. Demetriou <cgd at netbsd dot org>
37+
Christian Sievers <c_s at users dot sourceforge dot net>
38+
Chris Jepeway <jepeway at blasted-heath dot com>
39+
Chris Larson <clarson at kergoth dot com>
40+
Craig Rodrigues <rodrigc at mediaone dot net>
41+
Crist J. Clark <cjclark at alum dot mit dot edu>
42+
Daniel Hagerty <hag at ai dot mit dot edu>
43+
Darren Reed <darrenr at reed dot wattle dot id dot au>
44+
David Binderman <d dot binderman at virgin dot net>
45+
David Smith <dsmith at redhat dot com>
46+
David Young <dyoung at ojctech dot com>
47+
Don Ebright <Don dot Ebright at compuware dot com>
48+
Eddie Kohler <xexd at sourceforge dot net>
49+
Florent Drouin <Florent dot Drouin at alcatel-lucent dot fr>
50+
Francis Dupont <Francis dot Dupont at enst-bretagne dot fr>
51+
Francisco Matias Cuenca-Acuna <mcuenca at george dot rutgers dot edu>
52+
Francois-Xavier Le Bail <fx dot lebail at yahoo dot com>
53+
Frank Volf <volf at oasis dot IAEhv dot nl>
54+
Fulvio Risso <risso at polito dot it>
55+
George Bakos <gbakos at ists dot dartmouth dot edu>
56+
Gerald Combs <gerald at ethereal dot com>
57+
Gerrit Renker <gerrit at erg dot abdn dot ac dot uk>
58+
Gert Doering <gert at greenie dot muc dot de>
59+
Greg Minshall <minshall at acm dot org>
60+
Greg Stark <gsstark at mit dot edu>
61+
Gilbert Ramirez Jr. <gram at xiexie dot org>
62+
Gisle Vanem <giva at bgnett dot no>
63+
Hannes Viertel <hviertel at juniper dot net>
64+
Hank Leininger <tcpdump-workers at progressive-comp dot com>
65+
Harry Raaymakers <harryr at connect dot com dot au>
66+
Heinz-Ado Arnolds <Ado dot Arnolds at dhm-systems dot de>
67+
Hendrik Scholz <hendrik at scholz dot net>
68+
Ian McDonald <imcdnzl at gmail dot com>
69+
Jacek Tobiasz <Jacek dot Tobiasz at atm dot com dot pl>
70+
Jakob Schlyter <jakob at openbsd dot org>
71+
Jan Oravec <wsx at wsx6 dot net>
72+
Jason R. Thorpe <thorpej at netbsd dot org>
73+
Jefferson Ogata <jogata at nodc dot noaa dot gov>
74+
Jeffrey Hutzelman <jhutz at cmu dot edu>
75+
Jesper Peterson <jesper at endace dot com>
76+
Jim Hutchins <jim at ca dot sandia dot gov>
77+
Jonathan Heusser <jonny at drugphish dot ch>
78+
Tatuya Jinmei <jinmei at kame dot net>
79+
J�rgen Thomsen <jth at jth dot net>
80+
Julian Cowley <julian at lava dot net>
81+
Kaarthik Sivakumar <kaarthik at torrentnet dot com>
82+
Kazushi Sugyo <sugyo at pb dot jp dot nec dot com>
83+
Kelly Carmichael <kcarmich at ipapp dot com>
84+
Ken Hornstein <kenh at cmf dot nrl dot navy dot mil>
85+
Kevin Steves <stevesk at pobox dot com>
86+
Klaus Klein <kleink at reziprozitaet dot de>
87+
Kris Kennaway <kris at freebsd dot org>
88+
Krzysztof Halasa <khc at pm dot waw dot pl>
89+
Larry Lile <lile at stdio dot com>
90+
Lennert Buytenhek <buytenh at gnu dot org>
91+
Loris Degioanni <loris at netgroup-serv dot polito dot it>
92+
Love H�rnquist-�strand <lha at stacken dot kth dot se>
93+
Luis Martin Garcia <luis dot mgarc at gmail dot com>
94+
Maciej W. Rozycki <macro at ds2 dot pg dot gda dot pl>
95+
Manu Pathak <mapathak at cisco dot com>
96+
Marc Binderberger <mbind at sourceforge dot net>
97+
Marc A. Lehmann <pcg at goof dot com>
98+
Mark Ellzey Thomas <mark at ackers dot net>
99+
Marko Kiiskila <carnil at cs dot tut dot fi>
100+
Markus Sch�pflin <schoepflin at sourceforge dot net>
101+
Marshall Rose <mrose at dbc dot mtview dot ca dot us>
102+
Martin Husemann <martin at netbsd dot org>
103+
Max Laier <max at love2party dot net>
104+
Michael Madore <mmadore at turbolinux dot com>
105+
Michael Shalayeff <mickey at openbsd dot org>
106+
Michael Shields <shields at msrl dot com>
107+
Michael T. Stolarchuk <mts at off dot to>
108+
Michele "mydecay" Marchetto <smarchetto1 at tin dot it>
109+
Monroe Williams <monroe at pobox dot com>
110+
Motonori Shindo <mshindo at mshindo dot net>
111+
Nathan J. Williams <nathanw at MIT dot EDU>
112+
Nathaniel Couper-Noles <Nathaniel at isi1 dot tccisi dot com>
113+
Neil T. Spring <bluehal at users dot sourceforge dot net>
114+
Niels Provos <provos at openbsd dot org>
115+
Nickolai Zeldovich <kolya at MIT dot EDU>
116+
Nicolas Ferrero <toorop at babylo dot net>
117+
Noritoshi Demizu <demizu at users dot sourceforge dot net>
118+
Olaf Kirch <okir at caldera dot de>
119+
Onno van der Linden <onno at simplex dot nl>
120+
Paolo Abeni <paolo dot abeni at email dot it>
121+
Pascal Hennequin <pascal dot hennequin at int-evry dot fr>
122+
Pasvorn Boonmark <boonmark at juniper dot net>
123+
Paul Mundt <lethal at linux-sh dot org>
124+
Paul S. Traina <pst at freebsd dot org>
125+
Pavlin Radoslavov <pavlin at icir dot org>
126+
Pekka Savola <pekkas at netcore dot fi>
127+
Peter Fales <peter at fales-lorenz dot net>
128+
Peter Jeremy <peter dot jeremy at alcatel dot com dot au>
129+
<pfhunt at users dot sourceforge dot net>
130+
Phil Wood <cpw at lanl dot gov>
131+
Rafal Maszkowski <rzm at icm dot edu dot pl>
132+
Raphael Raimbault <raphael dot raimbault at netasq dot com>
133+
Rick Cheng <rcheng at juniper dot net>
134+
Rick Jones <rick dot jones2 at hp dot com>
135+
Rick Watson <watsonrick at users dot sourceforge dot net>
136+
Rob Braun <bbraun at synack dot net>
137+
Roderick Schertler <roderick at argon dot org>
138+
Sami Farin <safari at iki dot fi>
139+
Scott Rose <syberpunk at users dot sourceforge dot net>
140+
Sebastian Krahmer <krahmer at cs dot uni-potsdam dot de>
141+
Sebastien Raveau <sebastien dot raveau at epita dot fr>
142+
Sebastien Vincent <svincent at idems dot fr>
143+
Sepherosa Ziehau <sepherosa at gmail dot com>
144+
Seth Webster <swebster at sst dot ll dot mit dot edu>
145+
Shinsuke Suzuki <suz at kame dot net>
146+
Steinar Haug <sthaug at nethelp dot no>
147+
Swaminathan Chandrasekaran <chander at juniper dot net>
148+
Takashi Yamamoto <yamt at mwd dot biglobe dot ne dot jp>
149+
Terry Kennedy <terry at tmk dot com>
150150
Timo Koskiahde
151-
Tony Li <tli@procket.com>
152-
Uns Lider <unslider@miranda.org>
153-
Victor Oppleman <oppleman@users.sourceforge.net>
154-
Wesley Griffin <wgriffin@users.sourceforge.net>
155-
Wilbert de Graaf <wilbertdg@hetnet.nl>
156-
Will Drewry <will@alum.bu.edu>
151+
Tony Li <tli at procket dot com>
152+
Uns Lider <unslider at miranda dot org>
153+
Victor Oppleman <oppleman at users dot sourceforge dot net>
154+
Wesley Griffin <wgriffin at users dot sourceforge dot net>
155+
Wilbert de Graaf <wilbertdg at hetnet dot nl>
156+
Will Drewry <will at alum dot bu dot edu>
157157
Yen Yen Lim
158158
Yoshifumi Nishida
159159

160160
The original LBL crew:
161161
Steve McCanne
162162
Craig Leres
163163
Van Jacobson
164+
165+
Past maintainers:
166+
Jun-ichiro itojun Hagino <itojun at iijlab dot net>

print-domain.c

+29-10
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
#ifndef lint
2323
static const char rcsid[] _U_ =
24-
"@(#) $Header: /tcpdump/master/tcpdump/print-domain.c,v 1.97 2007-02-13 19:19:00 guy Exp $ (LBL)";
24+
"@(#) $Header: /tcpdump/master/tcpdump/print-domain.c,v 1.98 2007-12-09 01:40:32 guy Exp $ (LBL)";
2525
#endif
2626

2727
#ifdef HAVE_CONFIG_H
@@ -387,13 +387,22 @@ ns_rprint(register const u_char *cp, register const u_char *bp, int is_mdns)
387387
printf(" (Cache flush)");
388388
}
389389

390-
/* ignore ttl */
391-
cp += 2;
392-
/* if T_OPT, save opt_flags */
393-
if (typ == T_OPT)
390+
if (typ == T_OPT) {
391+
/* get opt flags */
392+
cp += 2;
394393
opt_flags = EXTRACT_16BITS(cp);
395-
/* ignore rest of ttl */
396-
cp += 2;
394+
/* ignore rest of ttl field */
395+
cp += 2;
396+
} else if (vflag > 2) {
397+
/* print ttl */
398+
printf(" [");
399+
relts_print(EXTRACT_32BITS(cp));
400+
printf("]");
401+
cp += 4;
402+
} else {
403+
/* ignore ttl */
404+
cp += 4;
405+
}
397406

398407
len = EXTRACT_16BITS(cp);
399408
cp += 2;
@@ -408,7 +417,7 @@ ns_rprint(register const u_char *cp, register const u_char *bp, int is_mdns)
408417
case T_A:
409418
if (!TTEST2(*cp, sizeof(struct in_addr)))
410419
return(NULL);
411-
printf(" %s", ipaddr_string(cp));
420+
printf(" %s", intoa(htonl(EXTRACT_32BITS(cp))));
412421
break;
413422

414423
case T_NS:
@@ -475,15 +484,24 @@ ns_rprint(register const u_char *cp, register const u_char *bp, int is_mdns)
475484

476485
#ifdef INET6
477486
case T_AAAA:
487+
{
488+
struct in6_addr addr;
489+
char ntop_buf[INET6_ADDRSTRLEN];
490+
478491
if (!TTEST2(*cp, sizeof(struct in6_addr)))
479492
return(NULL);
480-
printf(" %s", ip6addr_string(cp));
493+
memcpy(&addr, cp, sizeof(struct in6_addr));
494+
printf(" %s",
495+
inet_ntop(AF_INET6, &addr, ntop_buf, sizeof(ntop_buf)));
496+
481497
break;
498+
}
482499

483500
case T_A6:
484501
{
485502
struct in6_addr a;
486503
int pbit, pbyte;
504+
char ntop_buf[INET6_ADDRSTRLEN];
487505

488506
if (!TTEST2(*cp, 1))
489507
return(NULL);
@@ -497,7 +515,8 @@ ns_rprint(register const u_char *cp, register const u_char *bp, int is_mdns)
497515
return(NULL);
498516
memset(&a, 0, sizeof(a));
499517
memcpy(&a.s6_addr[pbyte], cp + 1, sizeof(a) - pbyte);
500-
printf(" %u %s", pbit, ip6addr_string(&a));
518+
printf(" %u %s", pbit,
519+
inet_ntop(AF_INET6, &a, ntop_buf, sizeof(ntop_buf)));
501520
}
502521
if (pbit > 0) {
503522
putchar(' ');

0 commit comments

Comments
 (0)