xref: /netbsd-src/external/bsd/tcpdump/dist/print-whois.c (revision c41df9f6167ea7cd2f761f0a97783c8267cb8847)
1*d881c474Schristos /*
2*d881c474Schristos  * Redistribution and use in source and binary forms, with or without
3*d881c474Schristos  * modification, are permitted provided that: (1) source code
4*d881c474Schristos  * distributions retain the above copyright notice and this paragraph
5*d881c474Schristos  * in its entirety, and (2) distributions including binary code include
6*d881c474Schristos  * the above copyright notice and this paragraph in its entirety in
7*d881c474Schristos  * the documentation or other materials provided with the distribution.
8*d881c474Schristos  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND
9*d881c474Schristos  * WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT
10*d881c474Schristos  * LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
11*d881c474Schristos  * FOR A PARTICULAR PURPOSE.
12*d881c474Schristos  */
13*d881c474Schristos 
14*d881c474Schristos /* \summary: WHOIS Protocol printer */
15*d881c474Schristos 
16*d881c474Schristos /* RFC 3912 */
17*d881c474Schristos 
18*d881c474Schristos #include <config.h>
19*d881c474Schristos 
20*d881c474Schristos #include "netdissect-stdinc.h"
21*d881c474Schristos 
22*d881c474Schristos #include "netdissect.h"
23*d881c474Schristos 
24*d881c474Schristos void
25*d881c474Schristos whois_print(netdissect_options *ndo, const u_char *pptr, u_int len)
26*d881c474Schristos {
27*d881c474Schristos 	ndo->ndo_protocol = "whois";
28*d881c474Schristos 	txtproto_print(ndo, pptr, len, NULL, 0);
29*d881c474Schristos }
30