Deleted Added
full compact
atalk.c (171465) atalk.c (175061)
1/*
1/*-
2 * Copyright (c) 1983, 1988, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.

--- 23 unchanged lines hidden (view full) ---

33
34#if 0
35#ifndef lint
36static char sccsid[] = "@(#)atalk.c 1.1 (Whistle) 6/6/96";
37#endif /* not lint */
38#endif
39
40#include <sys/cdefs.h>
2 * Copyright (c) 1983, 1988, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.

--- 23 unchanged lines hidden (view full) ---

33
34#if 0
35#ifndef lint
36static char sccsid[] = "@(#)atalk.c 1.1 (Whistle) 6/6/96";
37#endif /* not lint */
38#endif
39
40#include <sys/cdefs.h>
41__FBSDID("$FreeBSD: head/usr.bin/netstat/atalk.c 171465 2007-07-16 17:15:55Z jhb $");
41__FBSDID("$FreeBSD: head/usr.bin/netstat/atalk.c 175061 2008-01-02 23:26:11Z obrien $");
42
43#include <sys/param.h>
44#include <sys/queue.h>
45#include <sys/socket.h>
46#include <sys/socketvar.h>
47#include <sys/protosw.h>
48
49#include <arpa/inet.h>

--- 205 unchanged lines hidden (view full) ---

255 printf(Aflag?" %-18.18s":" %-22.22s", atalk_print(
256 (struct sockaddr *)&ddpcb.ddp_lsat,7));
257 printf(Aflag?" %-18.18s":" %-22.22s", atalk_print(
258 (struct sockaddr *)&ddpcb.ddp_fsat,7));
259 putchar('\n');
260 }
261}
262
42
43#include <sys/param.h>
44#include <sys/queue.h>
45#include <sys/socket.h>
46#include <sys/socketvar.h>
47#include <sys/protosw.h>
48
49#include <arpa/inet.h>

--- 205 unchanged lines hidden (view full) ---

255 printf(Aflag?" %-18.18s":" %-22.22s", atalk_print(
256 (struct sockaddr *)&ddpcb.ddp_lsat,7));
257 printf(Aflag?" %-18.18s":" %-22.22s", atalk_print(
258 (struct sockaddr *)&ddpcb.ddp_fsat,7));
259 putchar('\n');
260 }
261}
262
263#define ANY(x,y,z) if (x || sflag <= 1) \
263#define ANY(x,y,z) if (x || sflag <= 1) \
264 printf("\t%lu %s%s%s\n",x,y,plural(x),z)
265
266/*
267 * Dump DDP statistics structure.
268 */
269void
270ddp_stats(u_long off __unused, const char *name, int af1 __unused,
271 int proto __unused)

--- 18 unchanged lines hidden ---
264 printf("\t%lu %s%s%s\n",x,y,plural(x),z)
265
266/*
267 * Dump DDP statistics structure.
268 */
269void
270ddp_stats(u_long off __unused, const char *name, int af1 __unused,
271 int proto __unused)

--- 18 unchanged lines hidden ---