mirror of
https://github.com/freebsd/freebsd-src
synced 2024-11-05 18:22:52 +00:00
Add support for printing Kerberos v4 packets.
This commit is contained in:
parent
f6d60042e7
commit
8f548d4466
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=10423
2 changed files with 12 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
|||
# @(#)Makefile 0.1 (RWGrimes) 3/24/93
|
||||
# $Id$
|
||||
|
||||
PROG= tcpdump
|
||||
CFLAGS+=-DCSLIP -DPPP -DFDDI
|
||||
|
@ -6,7 +6,7 @@ MAN1= tcpdump.1
|
|||
SRCS= version.c addrtoname.c bpf_dump.c parsenfsfh.c \
|
||||
print-arp.c print-atalk.c print-bootp.c print-decnet.c print-domain.c \
|
||||
print-egp.c print-ether.c print-fddi.c print-icmp.c print-ip.c \
|
||||
print-ipx.c print-isoclns.c print-llc.c \
|
||||
print-ipx.c print-isoclns.c print-llc.c print-krb.c \
|
||||
print-nfs.c print-ntp.c print-null.c print-ospf.c print-ppp.c \
|
||||
print-rip.c print-sl.c print-snmp.c print-sunrpc.c print-tcp.c \
|
||||
print-tftp.c print-udp.c print-wb.c tcpdump.c \
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
#ifndef lint
|
||||
static char rcsid[] =
|
||||
"@(#) $Header: print-udp.c,v 1.37 94/06/10 17:01:42 mccanne Exp $ (LBL)";
|
||||
"$Id: /home/ncvs/src/usr.sbin/tcpdump/tcpdump/print-udp.c,v 1.3 1995/03/08 12:52:45 olah Exp $";
|
||||
#endif
|
||||
|
||||
#include <sys/param.h>
|
||||
|
@ -127,11 +127,14 @@ rtp_print(const void *hdr, int len, register const struct udphdr *up)
|
|||
|
||||
/* XXX probably should use getservbyname() and cache answers */
|
||||
#define TFTP_PORT 69 /*XXX*/
|
||||
#define KERBEROS_PORT 80 /*XXX*/
|
||||
#define SUNRPC_PORT 111 /*XXX*/
|
||||
#define SNMP_PORT 161 /*XXX*/
|
||||
#define NTP_PORT 123 /*XXX*/
|
||||
#define SNMPTRAP_PORT 162 /*XXX*/
|
||||
#define RIP_PORT 520 /*XXX*/
|
||||
#define KERBEROS_SEC_PORT 750 /*XXX*/
|
||||
#define RSVP_ENCAP_PORT 3455 /*XXX*/
|
||||
|
||||
void
|
||||
udp_print(register const u_char *bp, int length, register const u_char *bp2)
|
||||
|
@ -247,6 +250,12 @@ udp_print(register const u_char *bp, int length, register const u_char *bp2)
|
|||
snmp_print((const u_char *)(up + 1), length);
|
||||
else if (ISPORT(NTP_PORT))
|
||||
ntp_print((const u_char *)(up + 1), length);
|
||||
else if (ISPORT(KERBEROS_PORT) || ISPORT(KERBEROS_SEC_PORT))
|
||||
krb_print((const void *)(up + 1), length);
|
||||
#if 0
|
||||
else if (ISPORT(RSVP_ENCAP_PORT))
|
||||
rsvpUDP_print((const u_char *)(up + 1), length);
|
||||
#endif
|
||||
else if (dport == 3456)
|
||||
vat_print((const void *)(up + 1), length, up);
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue