inet.c (302408) | inet.c (303267) |
---|---|
1/*- 2 * Copyright (c) 1983, 1988, 1993, 1995 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 --- 20 unchanged lines hidden (view full) --- 29 30#if 0 31#ifndef lint 32static char sccsid[] = "@(#)inet.c 8.5 (Berkeley) 5/24/95"; 33#endif /* not lint */ 34#endif 35 36#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1983, 1988, 1993, 1995 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 --- 20 unchanged lines hidden (view full) --- 29 30#if 0 31#ifndef lint 32static char sccsid[] = "@(#)inet.c 8.5 (Berkeley) 5/24/95"; 33#endif /* not lint */ 34#endif 35 36#include <sys/cdefs.h> |
37__FBSDID("$FreeBSD: stable/11/usr.bin/netstat/inet.c 298182 2016-04-18 05:46:18Z araujo $"); | 37__FBSDID("$FreeBSD: stable/11/usr.bin/netstat/inet.c 303267 2016-07-24 14:50:16Z tuexen $"); |
38 39#include <sys/param.h> 40#include <sys/queue.h> 41#include <sys/domain.h> 42#include <sys/protosw.h> 43#include <sys/socket.h> 44#include <sys/socketvar.h> 45#include <sys/sysctl.h> --- 367 unchanged lines hidden (view full) --- 413 xo_emit( 414 "Current listen queue sizes (qlen/incqlen/maxqlen)"); 415 xo_emit("\n"); 416 if (Aflag) 417 xo_emit("{T:/%-*s} ", 2 * (int)sizeof(void *), 418 "Tcpcb"); 419 if (Lflag) 420 xo_emit((Aflag && !Wflag) ? | 38 39#include <sys/param.h> 40#include <sys/queue.h> 41#include <sys/domain.h> 42#include <sys/protosw.h> 43#include <sys/socket.h> 44#include <sys/socketvar.h> 45#include <sys/sysctl.h> --- 367 unchanged lines hidden (view full) --- 413 xo_emit( 414 "Current listen queue sizes (qlen/incqlen/maxqlen)"); 415 xo_emit("\n"); 416 if (Aflag) 417 xo_emit("{T:/%-*s} ", 2 * (int)sizeof(void *), 418 "Tcpcb"); 419 if (Lflag) 420 xo_emit((Aflag && !Wflag) ? |
421 "{T:/%-5.5s} {T:/%-14.14s} {T:/%-18.18s}" : | 421 "{T:/%-5.5s} {T:/%-32.32s} {T:/%-18.18s}" : |
422 ((!Wflag || af1 == AF_INET) ? | 422 ((!Wflag || af1 == AF_INET) ? |
423 "{T:/%-5.5s} {T:/%-14.14s} {T:/%-22.22s}" : 424 "{T:/%-5.5s} {T:/%-14.14s} {T:/%-45.45s}"), | 423 "{T:/%-5.5s} {T:/%-32.32s} {T:/%-22.22s}" : 424 "{T:/%-5.5s} {T:/%-32.32s} {T:/%-45.45s}"), |
425 "Proto", "Listen", "Local Address"); 426 else if (Tflag) 427 xo_emit((Aflag && !Wflag) ? 428 "{T:/%-5.5s} {T:/%-6.6s} {T:/%-6.6s} {T:/%-6.6s} {T:/%-18.18s} {T:/%s}" : 429 ((!Wflag || af1 == AF_INET) ? 430 "{T:/%-5.5s} {T:/%-6.6s} {T:/%-6.6s} {T:/%-6.6s} {T:/%-22.22s} {T:/%s}" : 431 "{T:/%-5.5s} {T:/%-6.6s} {T:/%-6.6s} {T:/%-6.6s} {T:/%-45.45s} {T:/%s}"), 432 "Proto", "Rexmit", "OOORcv", "0-win", --- 1050 unchanged lines hidden --- | 425 "Proto", "Listen", "Local Address"); 426 else if (Tflag) 427 xo_emit((Aflag && !Wflag) ? 428 "{T:/%-5.5s} {T:/%-6.6s} {T:/%-6.6s} {T:/%-6.6s} {T:/%-18.18s} {T:/%s}" : 429 ((!Wflag || af1 == AF_INET) ? 430 "{T:/%-5.5s} {T:/%-6.6s} {T:/%-6.6s} {T:/%-6.6s} {T:/%-22.22s} {T:/%s}" : 431 "{T:/%-5.5s} {T:/%-6.6s} {T:/%-6.6s} {T:/%-6.6s} {T:/%-45.45s} {T:/%s}"), 432 "Proto", "Rexmit", "OOORcv", "0-win", --- 1050 unchanged lines hidden --- |