Deleted Added
sdiff udiff text old ( 16178 ) new ( 16285 )
full compact
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

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

65
66/*
67 * Print a summary of connections related to a Network Systems
68 * protocol. For XXX, also give state of connection.
69 * Listening processes (aflag) are suppressed unless the
70 * -a (all) flag is specified.
71 */
72
73void
74atalkprotopr(off, name)
75 u_long off;
76 char *name;
77{
78 struct ddpcb cb;
79 register struct ddpcb *prev, *next;
80 struct ddpcb *initial;

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

110 "Local Address", "Foreign Address", "(state)");
111 first = 0;
112 }
113 if (Aflag)
114 printf("%8x ", ppcb);
115 printf("%-5.5s %6d %6d ", name, sockb.so_rcv.sb_cc,
116 sockb.so_snd.sb_cc);
117 printf(Aflag?" %-18.18s":" %-22.22s", atalk_print(
118 (struct sockaddr *)&ddpcb.ddp_lsat));
119 printf(Aflag?" %-18.18s":" %-22.22s", atalk_print(
120 (struct sockaddr *)&ddpcb.ddp_fsat));
121 putchar('\n');
122 }
123}
124#define ANY(x,y,z) \
125 ((x) ? printf("\t%d %s%s%s\n",x,y,plural(x),z) : 0)
126
127/*
128 * Dump DDP statistics structure.

--- 26 unchanged lines hidden ---