diff options
author | 2005-11-22 11:36:12 +0000 | |
---|---|---|
committer | 2005-11-22 11:36:12 +0000 | |
commit | c79cf170dd918af8b2de3187c8c8d309eb07baf2 (patch) | |
tree | 71b594260037eb0850c3e5672336671ad3ed3541 /usr.sbin/tcpdump/print-udp.c | |
parent | nuke trailing whitespaces; no cookie for niallo. (diff) | |
download | wireguard-openbsd-c79cf170dd918af8b2de3187c8c8d309eb07baf2.tar.xz wireguard-openbsd-c79cf170dd918af8b2de3187c8c8d309eb07baf2.zip |
add printer for IAPP and hostapd(8) messages
ok canacar@, tested by aanriot@ and others
Diffstat (limited to 'usr.sbin/tcpdump/print-udp.c')
-rw-r--r-- | usr.sbin/tcpdump/print-udp.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/usr.sbin/tcpdump/print-udp.c b/usr.sbin/tcpdump/print-udp.c index 40b63225441..f947d8e6859 100644 --- a/usr.sbin/tcpdump/print-udp.c +++ b/usr.sbin/tcpdump/print-udp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: print-udp.c,v 1.24 2004/01/28 19:44:55 canacar Exp $ */ +/* $OpenBSD: print-udp.c,v 1.25 2005/11/22 11:36:12 reyk Exp $ */ /* * Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996 @@ -23,7 +23,7 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /home/cvs/src/usr.sbin/tcpdump/print-udp.c,v 1.24 2004/01/28 19:44:55 canacar Exp $ (LBL)"; + "@(#) $Header: /home/cvs/src/usr.sbin/tcpdump/print-udp.c,v 1.25 2005/11/22 11:36:12 reyk Exp $ (LBL)"; #endif #include <sys/param.h> @@ -37,6 +37,8 @@ static const char rcsid[] = #include <netinet/udp.h> #include <netinet/udp_var.h> +#include <net80211/ieee80211.h> + #ifdef NOERROR #undef NOERROR /* Solaris sucks */ #endif @@ -64,6 +66,7 @@ static const char rcsid[] = #include "nfsv2.h" #include "bootp.h" +#include "iapp.h" struct rtcphdr { u_short rh_flags; /* T:2 P:1 CNT:5 PT:8 */ @@ -604,6 +607,8 @@ udp_print(register const u_char *bp, u_int length, register const u_char *bp2) radius_print((const u_char *)(up + 1), length); else if (dport == 3456) vat_print((const void *)(up + 1), length, up); + else if (ISPORT(IAPP_PORT)) + iapp_print((const u_char *)(up + 1), length); #ifdef INET6 else if (ISPORT(RIPNG_PORT)) ripng_print((const u_char *)(up + 1), length); |