summaryrefslogtreecommitdiffstats
path: root/usr.sbin/tcpdump/print-udp.c
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2018-07-03 23:51:13 +0000
committerdlg <dlg@openbsd.org>2018-07-03 23:51:13 +0000
commitbb681c23accd60b7a8d623b14455087aec1381a0 (patch)
tree3f6d6d5fa87593169259e7b8dfa13aec1250586d /usr.sbin/tcpdump/print-udp.c
parentRemove residual debug statements. (diff)
downloadwireguard-openbsd-bb681c23accd60b7a8d623b14455087aec1381a0.tar.xz
wireguard-openbsd-bb681c23accd60b7a8d623b14455087aec1381a0.zip
some style fixes, no functional change.
ok claudio@ mpi@ benno@ bluhm@ deraadt@
Diffstat (limited to 'usr.sbin/tcpdump/print-udp.c')
-rw-r--r--usr.sbin/tcpdump/print-udp.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/usr.sbin/tcpdump/print-udp.c b/usr.sbin/tcpdump/print-udp.c
index 167299cac11..b7729e3b5b3 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.41 2018/07/03 06:56:52 dlg Exp $ */
+/* $OpenBSD: print-udp.c,v 1.42 2018/07/03 23:51:13 dlg Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996
@@ -288,7 +288,8 @@ rtcp_print(const u_char *hdr, const u_char *ep)
return (hdr + len);
}
-static int udp_cksum(const struct ip *ip, const struct udphdr *up, int len)
+static int
+udp_cksum(const struct ip *ip, const struct udphdr *up, int len)
{
union phu {
struct phdr {
@@ -317,8 +318,8 @@ static int udp_cksum(const struct ip *ip, const struct udphdr *up, int len)
}
#ifdef INET6
-static int udp6_cksum(const struct ip6_hdr *ip6, const struct udphdr *up,
- u_int len)
+static int
+udp6_cksum(const struct ip6_hdr *ip6, const struct udphdr *up, u_int len)
{
union {
struct {
@@ -347,8 +348,6 @@ static int udp6_cksum(const struct ip6_hdr *ip6, const struct udphdr *up,
}
#endif
-
-
/* XXX probably should use getservbyname() and cache answers */
#define TFTP_PORT 69 /*XXX*/
#define KERBEROS_PORT 88 /*XXX*/