003 File Manager
Current Path:
/usr/src/usr.bin/netstat
usr
/
src
/
usr.bin
/
netstat
/
📁
..
📄
Makefile
(1.32 KB)
📄
Makefile.depend
(348 B)
📄
Makefile.depend.options
(171 B)
📄
bpf.c
(4.83 KB)
📄
common.c
(3.78 KB)
📄
common.h
(2.5 KB)
📄
if.c
(17.57 KB)
📄
inet.c
(47.78 KB)
📄
inet6.c
(32.55 KB)
📄
ipsec.c
(15.63 KB)
📄
main.c
(20.49 KB)
📄
mbuf.c
(12.94 KB)
📄
mroute.c
(13.46 KB)
📄
mroute6.c
(9.28 KB)
📄
netgraph.c
(4.63 KB)
📄
netisr.c
(14.42 KB)
📄
netstat.1
(19.77 KB)
📄
netstat.h
(5.99 KB)
📄
nhgrp.c
(8.94 KB)
📄
nhops.c
(12.38 KB)
📄
nlist_symbols
(841 B)
📄
pfkey.c
(7.58 KB)
📄
route.c
(17.36 KB)
📄
sctp.c
(24.63 KB)
📄
unix.c
(8.84 KB)
Editing: Makefile
# @(#)Makefile 8.1 (Berkeley) 6/12/93 # $FreeBSD$ .include <src.opts.mk> PROG= netstat SRCS= if.c inet.c main.c mbuf.c mroute.c netisr.c nl_symbols.c route.c \ unix.c mroute6.c ipsec.c bpf.c pfkey.c sctp.c common.c nhops.c nhgrp.c \ nl_defs.h nl_symbols.c: nlist_symbols awk '\ BEGIN { \ print "#include <sys/param.h>"; \ print "#include <nlist.h>"; \ print "struct nlist nl[] = {"; \ } \ !/^\#/ { printf("\t{ .n_name = \"%s\" },\n", $$2); } \ END { print "\t{ .n_name = NULL },\n};" } \ ' < ${.ALLSRC} > ${.TARGET} || rm -f ${.TARGET} nl_defs.h: nlist_symbols awk '\ BEGIN { \ print "#include <nlist.h>"; \ print "extern struct nlist nl[];"; \ i = 0; \ } \ !/^\#/ { printf("\#define\tN%s\t%s\n", toupper($$2), i++); }' \ < ${.ALLSRC} > ${.TARGET} || rm -f ${.TARGET} CLEANFILES+= nl_symbols.c nl_defs.h CFLAGS+= -I${.OBJDIR} WARNS?= 3 CFLAGS+=-fno-strict-aliasing CFLAGS+=-DIPSEC CFLAGS+=-DSCTP .if ${MK_INET_SUPPORT} != "no" CFLAGS+=-DINET .endif .if ${MK_INET6_SUPPORT} != "no" SRCS+= inet6.c CFLAGS+=-DINET6 .endif .if ${MK_OFED} != "no" CFLAGS+=-DSDP .endif .if ${MK_PF} != "no" CFLAGS+=-DPF .endif BINGRP= kmem BINMODE=2555 LIBADD= kvm memstat xo util .if ${MK_NETGRAPH_SUPPORT} != "no" SRCS+= netgraph.c LIBADD+= netgraph CFLAGS+=-DNETGRAPH .endif .include <bsd.prog.mk>
Upload File
Create Folder