On Tue, Jul 03, 2018 at 05:00:35PM +1000, David Gwynne wrote:
> no functional change. ok?
OK bluhm@
> Index: print-udp.c
> ===================================================================
> RCS file: /cvs/src/usr.sbin/tcpdump/print-udp.c,v
> retrieving revision 1.41
> diff -u -p -r1.41 print-udp.c
> --- print-udp.c 3 Jul 2018 06:56:52 -0000 1.41
> +++ print-udp.c 3 Jul 2018 07:00:00 -0000
> @@ -288,7 +288,8 @@ rtcp_print(const u_char *hdr, const u_ch
> 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
> }
>
> #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 {
> @@ -346,8 +347,6 @@ static int udp6_cksum(const struct ip6_h
> return in_cksum((u_short *)up, len, sum);
> }
> #endif
> -
> -
>
> /* XXX probably should use getservbyname() and cache answers */
> #define TFTP_PORT 69 /*XXX*/