OpenBSD CVS

CVS log for src/usr.bin/netstat/inet.c


[BACK] Up to [local] / src / usr.bin / netstat

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.182 / (download) - annotate - [select for diffs], Wed Apr 17 20:48:51 2024 UTC (4 weeks, 3 days ago) by bluhm
Branch: MAIN
CVS Tags: HEAD
Changes since 1.181: +5 -5 lines
Diff to previous 1.181 (colored)

Use struct ipsec_level within inpcb.

Instead of passing around u_char[4], introduce struct ipsec_level
that contains 4 ipsec levels.  This provides better type safety.
The embedding struct inpcb is globally visible for netstat(1), so
put struct ipsec_level outside of #ifdef _KERNEL.

OK deraadt@ mvs@

Revision 1.181 / (download) - annotate - [select for diffs], Tue Feb 13 12:22:09 2024 UTC (3 months ago) by bluhm
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5
Changes since 1.180: +5 -5 lines
Diff to previous 1.180 (colored)

Merge struct route and struct route_in6.

Use a common struct route for both inet and inet6.  Unfortunately
struct sockaddr is shorter than sockaddr_in6, so netinet/in.h has
to be exposed from net/route.h.  Struct route has to be bsd visible
for userland as netstat kvm code inspects inp_route.  Internet PCB
and TCP SYN cache can use a plain struct route now.  All specific
sockaddr types for inet and inet6 are embeded there.

OK claudio@

Revision 1.180 / (download) - annotate - [select for diffs], Mon Feb 5 23:16:39 2024 UTC (3 months, 1 week ago) by bluhm
Branch: MAIN
Changes since 1.179: +3 -1 lines
Diff to previous 1.179 (colored)

Add netstat counter for route cache.

To optimize route caching, count cache hits and misses.  This is
shown in netstat -s for both inet and inet6.  Reuse the old IPv6
forward cache counter.  Sort ip6s_wrongif consistently.  For now
only IPv4 cache counter has been implemented.

OK mvs@

Revision 1.179 / (download) - annotate - [select for diffs], Mon Sep 4 23:00:36 2023 UTC (8 months, 2 weeks ago) by bluhm
Branch: MAIN
CVS Tags: OPENBSD_7_4_BASE, OPENBSD_7_4
Changes since 1.178: +2 -2 lines
Diff to previous 1.178 (colored)

Fix netstat output of uses of current SYN cache left.

TCP syn cache variable scs_use is basically counting packet insertions
into syn cache.  Prefer type long to exclude overflow on fast
machines.  Due to counting downwards from a limit, it can become
negative.  Copy it out as tcps_sc_uses_left via sysctl, and print
it as signed long long integer.

OK mvs@

Revision 1.178 / (download) - annotate - [select for diffs], Fri Jul 7 09:15:13 2023 UTC (10 months, 1 week ago) by yasuoka
Branch: MAIN
Changes since 1.177: +4 -4 lines
Diff to previous 1.177 (colored)

Use "llu%" for printing the uint64_t fields in tcpcb.

ok blumn

Revision 1.177 / (download) - annotate - [select for diffs], Sun Jul 2 19:59:15 2023 UTC (10 months, 2 weeks ago) by bluhm
Branch: MAIN
Changes since 1.176: +6 -3 lines
Diff to previous 1.176 (colored)

Use TSO and LRO on the loopback interface to transfer TCP faster.

If tcplro is activated on lo(4), ignore the MTU with TCP packets.
They are passed along with the information that they have to be
chopped in case they are forwarded later.  New netstat(1) counter
shows that software LRO is in effect.  The feature is currently
turned off by default.

tested by jan@; OK claudio@ jan@

Revision 1.176 / (download) - annotate - [select for diffs], Tue May 23 09:16:16 2023 UTC (11 months, 3 weeks ago) by jan
Branch: MAIN
Changes since 1.175: +4 -1 lines
Diff to previous 1.175 (colored)

New counters for LRO packets from hardware TCP offloading.

With tweaks from patrick@ and bluhm@.

OK bluhm@

Revision 1.175 / (download) - annotate - [select for diffs], Wed May 10 12:07:17 2023 UTC (12 months, 1 week ago) by bluhm
Branch: MAIN
Changes since 1.174: +5 -1 lines
Diff to previous 1.174 (colored)

Implement TCP send offloading, for now in software only.  This is
meant as a fallback if network hardware does not support TSO.  Driver
support is still work in progress.  TCP output generates large
packets.  In IP output the packet is chopped to TCP maximum segment
size.  This reduces the CPU cycles used by pf.  The regular output
could be assisted by hardware later, but pf route-to and IPsec needs
the software fallback in general.
For performance comparison or to workaround possible bugs, sysctl
net.inet.tcp.tso=0 disables the feature.  netstat -s -p tcp shows
TSO counter with chopped and generated packets.
based on work from jan@
tested by jmc@ jan@ Hrvoje Popovski
OK jan@ claudio@

Revision 1.174 / (download) - annotate - [select for diffs], Fri Aug 12 14:49:15 2022 UTC (21 months, 1 week ago) by bluhm
Branch: MAIN
CVS Tags: OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2
Changes since 1.173: +2 -1 lines
Diff to previous 1.173 (colored)

There are some places in ip and ip6 input where operations fail due
to out of memory.  Use a generic idropped counter for those.
OK mvs@

Revision 1.173 / (download) - annotate - [select for diffs], Sun Dec 5 22:36:19 2021 UTC (2 years, 5 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_7_1_BASE, OPENBSD_7_1
Changes since 1.172: +1 -2 lines
Diff to previous 1.172 (colored)

sys/select.h is not needed, if howmany/NBBY are needed they will arrive
via netinet/in.h and sys/time.h, which I must say surprises me a bit

Revision 1.172 / (download) - annotate - [select for diffs], Sun Nov 21 16:17:48 2021 UTC (2 years, 5 months ago) by mvs
Branch: MAIN
Changes since 1.171: +2 -1 lines
Diff to previous 1.171 (colored)

Add the new `ipsec_exctdb' ipsec(4) counter to count and expose to the
userland the TDBs which exceeded hard limit.

Also the `ipsec_notdb' counter description in header doesn't math to
netstat(1) description. We never count `ipsec_notdb' and the netstat(1)
description looks more appropriate so it's used to avoid confusion with
the new counter.

ok bluhm@

Revision 1.171 / (download) - annotate - [select for diffs], Tue Jan 26 18:22:35 2021 UTC (3 years, 3 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9
Changes since 1.170: +1 -2 lines
Diff to previous 1.170 (colored)

sockb variable is unused (and even worse, was common unused)

Revision 1.170 / (download) - annotate - [select for diffs], Sun Jan 17 05:23:34 2021 UTC (3 years, 4 months ago) by visa
Branch: MAIN
Changes since 1.169: +1 -2 lines
Diff to previous 1.169 (colored)

Replace SB_KNOTE and sb_flagsintr with direct checking of klist.

OK mpi@ as part of a larger diff

Revision 1.169 / (download) - annotate - [select for diffs], Wed Dec 23 22:20:18 2020 UTC (3 years, 4 months ago) by bluhm
Branch: MAIN
Changes since 1.168: +4 -3 lines
Diff to previous 1.168 (colored)

Print specific headline for TCP state and IP protocol in netstat.
OK claudio@ sthen@

Revision 1.168 / (download) - annotate - [select for diffs], Wed Jan 15 14:02:37 2020 UTC (4 years, 4 months ago) by mpi
Branch: MAIN
CVS Tags: OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7
Changes since 1.167: +2 -2 lines
Diff to previous 1.167 (colored)

Print the correct field, sb_timeo has been replaced by sb_timeo_nsecs.

Breakage reported by espie@, ok bluhm@

Revision 1.167 / (download) - annotate - [select for diffs], Sun Dec 8 11:08:22 2019 UTC (4 years, 5 months ago) by sashan
Branch: MAIN
Changes since 1.166: +2 -1 lines
Diff to previous 1.166 (colored)

Make sure packet destination address matches interface address,
where such packet is bound to. This check is enforced if and only
IP forwarding is disabled.

Change discussed with bluhm@, claudio@, deraadt@, markus@, tobhe@

OK bluhm@, claudio@, tobhe@

Revision 1.166 / (download) - annotate - [select for diffs], Fri Jul 12 19:43:51 2019 UTC (4 years, 10 months ago) by bluhm
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE, OPENBSD_6_6
Changes since 1.165: +3 -3 lines
Diff to previous 1.165 (colored)

Count the number of TCP SACK options that were dropped due to the
sack hole list length or pool limit.
OK claudio@

Revision 1.165 / (download) - annotate - [select for diffs], Tue Dec 18 10:16:24 2018 UTC (5 years, 5 months ago) by benno
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5
Changes since 1.164: +7 -2 lines
Diff to previous 1.164 (colored)

With option -l, show only UDP sockets that can receive packets from
any other host, i.e. are somewhat like tcp sockets in LISTEN state.
Suggested by tedu@ asking about netstat output.
ok claudio@ tedu@

Revision 1.164 / (download) - annotate - [select for diffs], Mon Nov 19 13:15:37 2018 UTC (5 years, 6 months ago) by visa
Branch: MAIN
Changes since 1.163: +2 -4 lines
Diff to previous 1.163 (colored)

Utilize sigio with sockets.

OK mpi@

Revision 1.163 / (download) - annotate - [select for diffs], Mon Aug 13 14:36:54 2018 UTC (5 years, 9 months ago) by mpi
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE, OPENBSD_6_4
Changes since 1.162: +35 -1 lines
Diff to previous 1.162 (colored)

Print global IPsec counters.

ok markus@

Revision 1.162 / (download) - annotate - [select for diffs], Tue Nov 7 16:51:23 2017 UTC (6 years, 6 months ago) by visa
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3
Changes since 1.161: +55 -55 lines
Diff to previous 1.161 (colored)

Convert all the fields of {ah,esp,ipcomp}stat to uint64.

This is a preliminary step for using percpu counters with the data.

OK mpi@

Revision 1.161 / (download) - annotate - [select for diffs], Wed Oct 25 12:38:21 2017 UTC (6 years, 6 months ago) by job
Branch: MAIN
Changes since 1.160: +1 -4 lines
Diff to previous 1.160 (colored)

Remove the TCP_FACK option and associated #if{,n}def code.

TCP_FACK was disabled by provos@ in June 1999.
TCP_FACK is an algorithm that decides that when something is lost, all
not SACKed packets until the most forward SACK are lost. It may be a
correct estimate, if network does not reorder packets.

OK visa@ mpi@ mikeb@

Revision 1.160 / (download) - annotate - [select for diffs], Sat Aug 12 03:21:02 2017 UTC (6 years, 9 months ago) by benno
Branch: MAIN
CVS Tags: OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.159: +10 -3 lines
Diff to previous 1.159 (colored)

add option -l to show only listening sockets (for tcp)
feedback and ok awhile ago bluhm@ job@

Revision 1.159 / (download) - annotate - [select for diffs], Thu Jul 27 19:59:46 2017 UTC (6 years, 9 months ago) by florian
Branch: MAIN
Changes since 1.158: +3 -3 lines
Diff to previous 1.158 (colored)

uint32_t is never < 0; pointed out by clang.

While we originally get a short passed from the kernel, it's probably
better for debugging purposes to show what we are actually having
which is a uin32_t hence the %u format.

OK deraadt

Revision 1.158 / (download) - annotate - [select for diffs], Tue May 16 21:42:14 2017 UTC (7 years ago) by bluhm
Branch: MAIN
Changes since 1.157: +9 -3 lines
Diff to previous 1.157 (colored)

When printing a tcpcb with -P and -v, also show the inp in netstat
output.
OK mpi@

Revision 1.157 / (download) - annotate - [select for diffs], Thu May 4 14:23:00 2017 UTC (7 years ago) by bluhm
Branch: MAIN
Changes since 1.156: +3 -2 lines
Diff to previous 1.156 (colored)

For TCP sockets netstat -A must print the address of the TCP protocol
control block.  This is documented in fstat(1) and makes it possible
to compare the values from both tools.
OK sthen@

Revision 1.156 / (download) - annotate - [select for diffs], Tue Mar 7 23:35:06 2017 UTC (7 years, 2 months ago) by jca
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.155: +10 -10 lines
Diff to previous 1.155 (colored)

Rename struct etheripstat members for consistency, move them all to 64bits

Will make transition to percpu counters easier.  ok bluhm@

Revision 1.155 / (download) - annotate - [select for diffs], Mon Feb 20 17:04:25 2017 UTC (7 years, 2 months ago) by jca
Branch: MAIN
Changes since 1.154: +9 -9 lines
Diff to previous 1.154 (colored)

Crank all members of struct ipipstat to 64 bits

Will make conversion to percpu counters easier.  ok bluhm@

Revision 1.154 / (download) - annotate - [select for diffs], Tue Feb 7 18:18:16 2017 UTC (7 years, 3 months ago) by bluhm
Branch: MAIN
Changes since 1.153: +4 -1 lines
Diff to previous 1.153 (colored)

IPsec packets could be dropped unaccounted if output after crypto
failed.  Add a counter for that case.
OK dhill@

Revision 1.153 / (download) - annotate - [select for diffs], Thu Dec 22 11:04:44 2016 UTC (7 years, 4 months ago) by rzalamena
Branch: MAIN
Changes since 1.152: +1 -40 lines
Diff to previous 1.152 (colored)

Remove PIM support from the multicast stack.

ok mpi@

Revision 1.152 / (download) - annotate - [select for diffs], Fri Nov 11 15:01:43 2016 UTC (7 years, 6 months ago) by bluhm
Branch: MAIN
Changes since 1.151: +9 -2 lines
Diff to previous 1.151 (colored)

Print the route cached at the inp with netstat -P.  While there,
fix a compiler warning about missing prototype.
OK claudio@ mpi@

Revision 1.151 / (download) - annotate - [select for diffs], Fri Sep 2 09:39:32 2016 UTC (7 years, 8 months ago) by vgross
Branch: MAIN
Changes since 1.150: +2 -1 lines
Diff to previous 1.150 (colored)

Drop non-encapulated ESP packets using a UDP-encapsulating TDB, and add
the relevant counters.

Ok mikeb@

Revision 1.150 / (download) - annotate - [select for diffs], Sat Aug 27 04:13:43 2016 UTC (7 years, 8 months ago) by guenther
Branch: MAIN
Changes since 1.149: +2 -1 lines
Diff to previous 1.149 (colored)

Pull in <sys/select.h> for howmany() and NBBY, used by various net*/*.h

ok deraadt@

Revision 1.149 / (download) - annotate - [select for diffs], Sat Aug 13 17:51:25 2016 UTC (7 years, 9 months ago) by krw
Branch: MAIN
Changes since 1.148: +33 -33 lines
Diff to previous 1.148 (colored)

%lld -> %llu for u_int64_t struct fields.

Revision 1.148 / (download) - annotate - [select for diffs], Sat Aug 13 17:36:04 2016 UTC (7 years, 9 months ago) by krw
Branch: MAIN
Changes since 1.147: +44 -44 lines
Diff to previous 1.147 (colored)

As the relevant struct's (e.g. tcpstat) use [u_]int64_t types, the
proper printf() format is %ll[ud], not the antediluvian %q[ud].
Reminded by guenther@'s proposed retirement of quad types.

ok tedu@

Revision 1.147 / (download) - annotate - [select for diffs], Wed Jul 20 19:57:54 2016 UTC (7 years, 10 months ago) by bluhm
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0
Changes since 1.146: +22 -6 lines
Diff to previous 1.146 (colored)

To tune the TCP SYN cache we need more information.  Print the
relevant counters with netstat -s -p tcp.
OK henning@

Revision 1.146 / (download) - annotate - [select for diffs], Tue Apr 26 22:24:10 2016 UTC (8 years ago) by bluhm
Branch: MAIN
Changes since 1.145: +2 -1 lines
Diff to previous 1.145 (colored)

Print tcps_noport with netstat -s like it is already done for udp.
OK mpi@

Revision 1.145 / (download) - annotate - [select for diffs], Mon Mar 21 15:52:27 2016 UTC (8 years, 1 month ago) by bluhm
Branch: MAIN
Changes since 1.144: +2 -1 lines
Diff to previous 1.144 (colored)

Add a tcps_sc_seedrandom counter in TCP SYN cache and netstat -s.
This shows how often the hash function is reseeded and the random
bucket distribution changes.
OK mpi@ claudio@

Revision 1.144 / (download) - annotate - [select for diffs], Thu Aug 20 22:32:41 2015 UTC (8 years, 9 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.143: +2 -2 lines
Diff to previous 1.143 (colored)

Do not cast result of malloc/calloc/realloc* if stdlib.h is in scope
ok krw millert

Revision 1.143 / (download) - annotate - [select for diffs], Sun Jun 21 12:11:13 2015 UTC (8 years, 11 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.142: +1 -2 lines
Diff to previous 1.142 (colored)

There is no need to include sys/ucred.h. Only sys/file.h is needed for the
DTYPE defines.

Revision 1.142 / (download) - annotate - [select for diffs], Thu Apr 16 19:24:13 2015 UTC (9 years, 1 month ago) by markus
Branch: MAIN
Changes since 1.141: +1 -6 lines
Diff to previous 1.141 (colored)

remove unfinished/unused support for socket-attached ipsec-policies
ok mikeb

Revision 1.141 / (download) - annotate - [select for diffs], Tue Apr 14 17:53:13 2015 UTC (9 years, 1 month ago) by mikeb
Branch: MAIN
Changes since 1.140: +1 -3 lines
Diff to previous 1.140 (colored)

IPsec auth and credentials are not stored in the kernel anymore;
noticed by deraadt@

Revision 1.140 / (download) - annotate - [select for diffs], Thu Feb 12 01:49:02 2015 UTC (9 years, 3 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.139: +243 -153 lines
Diff to previous 1.139 (colored)

Switch the printing of open sockets from ugly KVM internals to use
kvm_getfiles. This allows to run netstat without any extra privileges
and removes another setgid program from base..
There is still kvm reader code in there which is used for debugging
purposes (crashdump). netstat should still behave mostly the same.
deraadt@ and sthen@ agree that it is time to get this puppy in.

Revision 1.139 / (download) - annotate - [select for diffs], Sun Feb 8 04:40:50 2015 UTC (9 years, 3 months ago) by yasuoka
Branch: MAIN
Changes since 1.138: +2 -1 lines
Diff to previous 1.138 (colored)

Count dropped SYN packets on the tcpstat.  They are dropped due to the
listen queue (backlog) limit or the memory shortage in syn-cache.

ok henning reyk claudio

Revision 1.138 / (download) - annotate - [select for diffs], Fri Jan 16 06:40:09 2015 UTC (9 years, 4 months ago) by deraadt
Branch: MAIN
Changes since 1.137: +2 -3 lines
Diff to previous 1.137 (colored)

Replace <sys/param.h> with <limits.h> and other less dirty headers where
possible.  Annotate <sys/param.h> lines with their current reasons.  Switch
to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc.  Change
MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where
sensible to avoid pulling in the pollution.  These are the files confirmed
through binary verification.
ok guenther, millert, doug (helped with the verification protocol)

Revision 1.137 / (download) - annotate - [select for diffs], Mon Nov 3 17:20:46 2014 UTC (9 years, 6 months ago) by bluhm
Branch: MAIN
Changes since 1.136: +30 -8 lines
Diff to previous 1.136 (colored)

Put the socket splicing fields into a seperate struct sosplice that
gets only allocated when needed.  This way struct socket shrinks
from 472 to 392 bytes on amd64.  When splicing gets active, another
88 bytes are allocated for struct sosplice.
OK dlg@

Revision 1.136 / (download) - annotate - [select for diffs], Sun Oct 26 14:43:03 2014 UTC (9 years, 6 months ago) by chl
Branch: MAIN
Changes since 1.135: +1 -4 lines
Diff to previous 1.135 (colored)

remove unused variables

ok schwarze@

Revision 1.135 / (download) - annotate - [select for diffs], Thu Oct 23 16:45:57 2014 UTC (9 years, 6 months ago) by schwarze
Branch: MAIN
Changes since 1.134: +7 -15 lines
Diff to previous 1.134 (colored)

Remove networks(5) support.
In particular, do not call getnetbyaddr(3), use gethostbyaddr(3) only.
Do not call setnetent(3) and the dummy sethostent(3).
OK henning@; and deraadt@ agrees with the general direction.

Revision 1.134 / (download) - annotate - [select for diffs], Thu Aug 14 12:55:50 2014 UTC (9 years, 9 months ago) by mpi
Branch: MAIN
Changes since 1.133: +1 -4 lines
Diff to previous 1.133 (colored)

No need for <netinet/in_systm.h> nor <netinet/tcpip.h>.

Revision 1.133 / (download) - annotate - [select for diffs], Mon Jun 23 03:46:17 2014 UTC (9 years, 10 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.132: +15 -15 lines
Diff to previous 1.132 (colored)

The second level of the CTL_NET sysctl is a PF_*, not an AF_*

inconsistent usage in route(8) noted by Gregor Best (gbe (at) ring0.de)

Revision 1.132 / (download) - annotate - [select for diffs], Sat Jan 25 10:03:32 2014 UTC (10 years, 3 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.131: +2 -2 lines
Diff to previous 1.131 (colored)

Fix printing of icps_toofreq unlike IPv6 the IPv4 value is just a u_long.
Found by csszep (at) gmail.

Revision 1.131 / (download) - annotate - [select for diffs], Thu Jan 23 23:51:53 2014 UTC (10 years, 3 months ago) by henning
Branch: MAIN
Changes since 1.130: +6 -6 lines
Diff to previous 1.130 (colored)

hardware cecksummed counters -> software checksummed counters

Revision 1.130 / (download) - annotate - [select for diffs], Sun Jan 19 05:03:29 2014 UTC (10 years, 4 months ago) by claudio
Branch: MAIN
Changes since 1.129: +4 -1 lines
Diff to previous 1.129 (colored)

Report the number of dropped ICMP error because the rate limit got exceeded.
OK benno@ deraadt@

Revision 1.129 / (download) - annotate - [select for diffs], Wed Dec 25 01:46:00 2013 UTC (10 years, 4 months ago) by tedu
Branch: MAIN
Changes since 1.128: +9 -2 lines
Diff to previous 1.128 (colored)

final circleq to tailq fix. restore the previous pointer check by reading
the previous value again and checking prev.next is still next.
maybe ok guenther

Revision 1.128 / (download) - annotate - [select for diffs], Tue Dec 24 22:26:19 2013 UTC (10 years, 4 months ago) by tedu
Branch: MAIN
Changes since 1.127: +3 -6 lines
Diff to previous 1.127 (colored)

more fixing after circleq conversion. a better fix to check the prev
pointer is forthcoming.

Revision 1.127 / (download) - annotate - [select for diffs], Mon Dec 23 22:39:50 2013 UTC (10 years, 4 months ago) by tedu
Branch: MAIN
Changes since 1.126: +4 -6 lines
Diff to previous 1.126 (colored)

fix circleq tailq conversion

Revision 1.126 / (download) - annotate - [select for diffs], Fri Dec 20 02:04:09 2013 UTC (10 years, 5 months ago) by krw
Branch: MAIN
Changes since 1.125: +5 -5 lines
Diff to previous 1.125 (colored)

Switch inpt_queue from CIRCLEQ to TAILQ. Thus ending use of CIRCLEQ
in the base. Ports fixes to follow shortly for the two ports (gkrellm
and net-snmp) affected.

ok zhuk@ millert@

Revision 1.125 / (download) - annotate - [select for diffs], Thu Oct 24 09:33:20 2013 UTC (10 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.124: +2 -2 lines
Diff to previous 1.124 (colored)

These two programs got fooled by the KAME/NRL split and need type repair.
They do not indicate a problem with the reduction of namespace export,
but got suckered into the 1999 plan.
ok benno

Revision 1.124 / (download) - annotate - [select for diffs], Sun Aug 18 16:32:24 2013 UTC (10 years, 9 months ago) by guenther
Branch: MAIN
Changes since 1.123: +25 -25 lines
Diff to previous 1.123 (colored)

Fix calls to printf-like functions which passed a non-fixed string
as the format and no variable args.
Replace "%#0.*X" with "%#.*X": the zero-fill flag is ignored/implied
on numeric conversions when a precision is specified.

ok jung@ millert@ krw@

Revision 1.123 / (download) - annotate - [select for diffs], Thu Apr 18 15:43:22 2013 UTC (11 years, 1 month ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.122: +3 -2 lines
Diff to previous 1.122 (colored)

improve time_t printing; ok claudio

Revision 1.122 / (download) - annotate - [select for diffs], Wed Mar 20 15:23:37 2013 UTC (11 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.121: +33 -25 lines
Diff to previous 1.121 (colored)

As non-root, whenever netstat is about to print out a kernel pointer...
print 0x0 instead.  Hides a lot stuff people don't need to see.

Revision 1.121 / (download) - annotate - [select for diffs], Tue Feb 5 13:58:02 2013 UTC (11 years, 3 months ago) by bluhm
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE, OPENBSD_5_3
Changes since 1.120: +2 -1 lines
Diff to previous 1.120 (colored)

netstat -vP also shows the new struct sockbuf field sb_flagsintr.
OK markus@ claudio@

Revision 1.120 / (download) - annotate - [select for diffs], Tue Dec 4 02:30:34 2012 UTC (11 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.119: +1 -2 lines
Diff to previous 1.119 (colored)

remove some unnecessary sys/mbuf.h inclusions

Revision 1.119 / (download) - annotate - [select for diffs], Tue Nov 1 00:00:01 2011 UTC (12 years, 6 months ago) by mikeb
Branch: MAIN
CVS Tags: OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1
Changes since 1.118: +5 -2 lines
Diff to previous 1.118 (colored)

List sockets existing only in the specified or current routing domain.
Prompted by the mail from Andreas Bartelt, tested by Andreas and me.
ok henning

Revision 1.118 / (download) - annotate - [select for diffs], Tue Jul 5 05:14:41 2011 UTC (12 years, 10 months ago) by bluhm
Branch: MAIN
CVS Tags: OPENBSD_5_0_BASE, OPENBSD_5_0
Changes since 1.117: +4 -2 lines
Diff to previous 1.117 (colored)

Add so_idletv to netstat -vP pcb-address output.
ok mikeb@

Revision 1.117 / (download) - annotate - [select for diffs], Fri Mar 18 22:34:58 2011 UTC (13 years, 2 months ago) by sthen
Branch: MAIN
Changes since 1.116: +3 -1 lines
Diff to previous 1.116 (colored)

print icps_bmcastecho as "XX echo requests to broadcast/multicast rejected".
from Christiano Haesbert with a small tweak to wording

Revision 1.116 / (download) - annotate - [select for diffs], Tue Mar 15 13:10:31 2011 UTC (13 years, 2 months ago) by jsing
Branch: MAIN
Changes since 1.115: +20 -12 lines
Diff to previous 1.115 (colored)

Add a -B flag to netstat which displays buffer sizes for TCP sockets.

With feedback from bluhm@

ok bluhm@ sthen@

Revision 1.115 / (download) - annotate - [select for diffs], Wed Mar 2 21:51:14 2011 UTC (13 years, 2 months ago) by bluhm
Branch: MAIN
Changes since 1.114: +5 -1 lines
Diff to previous 1.114 (colored)

Add the socket splicing fields of struct socket to netstat -vP
output for debugging.
ok markus@, claudio@

Revision 1.114 / (download) - annotate - [select for diffs], Sat Oct 30 23:06:05 2010 UTC (13 years, 6 months ago) by bluhm
Branch: MAIN
CVS Tags: OPENBSD_4_9_BASE, OPENBSD_4_9
Changes since 1.113: +236 -32 lines
Diff to previous 1.113 (colored)

Print socket structure internals when netstat -P pcbaddr is called
with -v.  Also netstat -P supports more than TCP now.
ok markus@ jmc@

Revision 1.113 / (download) - annotate - [select for diffs], Tue Jun 29 03:09:29 2010 UTC (13 years, 10 months ago) by blambert
Branch: MAIN
CVS Tags: OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.112: +2 -16 lines
Diff to previous 1.112 (colored)

Allow selecting both address family and protocol by passing the address family
directly to the appropriate print functions.

Found by jdixon@, tested jdixon@ and weerd@, ok krw@ deraadt@

Revision 1.112 / (download) - annotate - [select for diffs], Thu Nov 5 20:50:14 2009 UTC (14 years, 6 months ago) by michele
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.111: +4 -4 lines
Diff to previous 1.111 (colored)

IPv6 support for divert sockets.

tested by phessler@ pyr@
ok claudio@
"go ahead" deraadt@

Revision 1.111 / (download) - annotate - [select for diffs], Sun Oct 4 16:08:37 2009 UTC (14 years, 7 months ago) by michele
Branch: MAIN
Changes since 1.110: +36 -4 lines
Diff to previous 1.110 (colored)

Add (again) support for divert sockets. They allow you to:

- queue packets from pf(4) to a userspace application
- reinject packets from the application into the kernel stack.

The divert socket can be bound to a special "divert port" and will
receive every packet diverted to that port by pf(4).

The pf syntax is pretty simple, e.g.:

pass on em0 inet proto tcp from any to any port 80 divert-packet port 1

A lot of discussion have happened since my last commit that resulted
in many changes and improvements.
I would *really* like to thank everyone who took part in the discussion
especially canacar@ who spotted out which are the limitations of this approach.

OpenBSD divert(4) is meant to be compatible with software running on
top of FreeBSD's divert sockets even though they are pretty different and will
become even more with time.

discusses with many, but mainly reyk@ canacar@ deraadt@ dlg@ claudio@ beck@
tested by reyk@ and myself
ok reyk@ claudio@ beck@
manpage help and ok by jmc@

Revision 1.110 / (download) - annotate - [select for diffs], Sat Feb 7 15:06:04 2009 UTC (15 years, 3 months ago) by chl
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5
Changes since 1.109: +2 -1 lines
Diff to previous 1.109 (colored)

add missing headers needed for warn() and err().

ok claudio@ ray@

Revision 1.109 / (download) - annotate - [select for diffs], Mon Feb 2 17:19:13 2009 UTC (15 years, 3 months ago) by mbalmer
Branch: MAIN
Changes since 1.108: +2 -2 lines
Diff to previous 1.108 (colored)

Fix typo, from Joao Salvatti <salvatti@gmail.com>.

Revision 1.108 / (download) - annotate - [select for diffs], Tue Oct 14 21:36:27 2008 UTC (15 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.107: +4 -4 lines
Diff to previous 1.107 (colored)

inet6print() has no 4th argument

Revision 1.107 / (download) - annotate - [select for diffs], Tue Sep 16 15:48:12 2008 UTC (15 years, 8 months ago) by gollo
Branch: MAIN
Changes since 1.106: +33 -1 lines
Diff to previous 1.106 (colored)

netstat statistics for pflow(4) via pseudo family

ok cluadio@ henning@

Revision 1.106 / (download) - annotate - [select for diffs], Thu May 8 03:13:55 2008 UTC (16 years ago) by mpf
Branch: MAIN
CVS Tags: OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.105: +2 -2 lines
Diff to previous 1.105 (colored)

Receiving carp packets for unknown vhid's is not really an error.
Change the wording accordingly.
OK markus@, dlg@

Revision 1.105 / (download) - annotate - [select for diffs], Tue Feb 5 16:14:31 2008 UTC (16 years, 3 months ago) by sthen
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3
Changes since 1.104: +9 -6 lines
Diff to previous 1.104 (colored)

Change the method of identifying server connections to hide from
netstat without -a: use the connection state to identify TCP
servers, check the foreign address (not local address) to
identify servers on UDP and raw sockets.

From Philip Guenther, style changes suggested by Claudio.
ok claudio

Revision 1.104 / (download) - annotate - [select for diffs], Wed Dec 19 01:47:00 2007 UTC (16 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.103: +1 -9 lines
Diff to previous 1.103 (colored)

delete rcsid crud

Revision 1.103 / (download) - annotate - [select for diffs], Fri Dec 14 18:35:46 2007 UTC (16 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.102: +104 -84 lines
Diff to previous 1.102 (colored)

remove 21 nlist variables, and instead use sysctl to query the kernel
turn on INET6 the default (remove the #ifdef's)
ok claudio reyk

Revision 1.102 / (download) - annotate - [select for diffs], Thu Dec 13 20:00:53 2007 UTC (16 years, 5 months ago) by reyk
Branch: MAIN
Changes since 1.101: +43 -9 lines
Diff to previous 1.101 (colored)

implement sysctls to report IP, TCP, UDP, and ICMP statistics and
change netstat to use them instead of accessing kvm for it. more
protocols will be added later.

discussed with deraadt@ claudio@ gilles@
ok deraadt@

Revision 1.101 / (download) - annotate - [select for diffs], Mon Sep 3 06:10:54 2007 UTC (16 years, 8 months ago) by joel
Branch: MAIN
Changes since 1.100: +3 -2 lines
Diff to previous 1.100 (colored)

Make use of the carp preempt counter to signal number of transitions of
any carp group to master status.


ok dhartmei@

Revision 1.100 / (download) - annotate - [select for diffs], Tue Jun 19 05:28:30 2007 UTC (16 years, 11 months ago) by ray
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.99: +3 -3 lines
Diff to previous 1.99 (colored)

"off" isn't a pointer, it's a ulong.  According to printf(3), %#lx
is equivalent to %p.

OK markus and itojun

Revision 1.99 / (download) - annotate - [select for diffs], Mon Oct 17 19:09:36 2005 UTC (18 years, 7 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0, OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.98: +6 -6 lines
Diff to previous 1.98 (colored)

Use queue macros instead of directly accessing fields. ok pat@ "put it
in" deraadt@

Revision 1.98 / (download) - annotate - [select for diffs], Thu Aug 11 15:52:14 2005 UTC (18 years, 9 months ago) by markus
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.97: +11 -3 lines
Diff to previous 1.97 (colored)

print pmtu TCB variables

Revision 1.97 / (download) - annotate - [select for diffs], Thu Aug 11 12:55:31 2005 UTC (18 years, 9 months ago) by mpf
Branch: MAIN
Changes since 1.96: +3 -2 lines
Diff to previous 1.96 (colored)

New counter for not joined IPv4 multicast groups.
Don't count link local scope multicast as not forwardable.
This stops ips_cantforward growing on carp(4) networks.
tested and ok mcbride@, ok markus@.

Revision 1.96 / (download) - annotate - [select for diffs], Wed Jun 15 10:53:23 2005 UTC (18 years, 11 months ago) by markus
Branch: MAIN
Changes since 1.95: +73 -2 lines
Diff to previous 1.95 (colored)

add -P for dumping PCB infos, similar to netbsd; ok deraadt@

Revision 1.95 / (download) - annotate - [select for diffs], Tue Apr 5 20:27:35 2005 UTC (19 years, 1 month ago) by markus
Branch: MAIN
Changes since 1.94: +11 -2 lines
Diff to previous 1.94 (colored)

add tcp sack stats, similar to freebsd; ok deraadt

Revision 1.94 / (download) - annotate - [select for diffs], Wed Mar 30 17:45:36 2005 UTC (19 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.93: +3 -3 lines
Diff to previous 1.93 (colored)

spacing

Revision 1.93 / (download) - annotate - [select for diffs], Fri Mar 25 17:01:03 2005 UTC (19 years, 1 month ago) by jaredy
Branch: MAIN
Changes since 1.92: +20 -21 lines
Diff to previous 1.92 (colored)

kill unneeded (char *) casts.  ok millert, otto

Revision 1.92 / (download) - annotate - [select for diffs], Thu Feb 10 14:25:08 2005 UTC (19 years, 3 months ago) by itojun
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.91: +0 -74 lines
Diff to previous 1.91 (colored)

backout previous; i committed to wrong repository (i meant to commit kame)

Revision 1.91 / (download) - annotate - [select for diffs], Thu Feb 10 05:28:58 2005 UTC (19 years, 3 months ago) by itojun
Branch: MAIN
Changes since 1.90: +76 -2 lines
Diff to previous 1.90 (colored)

dccp support

Revision 1.90 / (download) - annotate - [select for diffs], Fri Jan 14 15:00:44 2005 UTC (19 years, 4 months ago) by mcbride
Branch: MAIN
Changes since 1.89: +40 -2 lines
Diff to previous 1.89 (colored)

Allow netstat to print PIM statistics.

From Pavlin Radoslavov <pavlin@icir.org>

ok deraadt@ brad@

Revision 1.89 / (download) - annotate - [select for diffs], Wed Nov 17 01:09:45 2004 UTC (19 years, 6 months ago) by mcbride
Branch: MAIN
Changes since 1.88: +4 -2 lines
Diff to previous 1.88 (colored)

Add missing counters to 'netstat -sp carp' output.

From camield@

Revision 1.88 / (download) - annotate - [select for diffs], Thu Sep 9 10:30:23 2004 UTC (19 years, 8 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_3_6_BASE, OPENBSD_3_6
Changes since 1.87: +3 -9 lines
Diff to previous 1.87 (colored)

printing the raw ip protocol name breaks the protocol loop, so just
print the number. ok henning@ markus@ deraadt@

Revision 1.87 / (download) - annotate - [select for diffs], Wed Apr 28 01:53:45 2004 UTC (20 years ago) by mcbride
Branch: MAIN
Changes since 1.86: +14 -17 lines
Diff to previous 1.86 (colored)

carp stats cleanup:
- convert counters to 64 bits
- remove junk from netstat

ok pb@

Revision 1.86 / (download) - annotate - [select for diffs], Wed Apr 28 00:47:06 2004 UTC (20 years ago) by mcbride
Branch: MAIN
Changes since 1.85: +18 -16 lines
Diff to previous 1.85 (colored)

pfsync stats fixups:
- convert counters to 64 bits
- add dedicated counters for sanity checks added right before release
- clean up netstat output

Revision 1.85 / (download) - annotate - [select for diffs], Sat Apr 24 18:51:13 2004 UTC (20 years ago) by markus
Branch: MAIN
Changes since 1.84: +3 -2 lines
Diff to previous 1.84 (colored)

print tcps_rcvacktooold; ok henning

Revision 1.84 / (download) - annotate - [select for diffs], Sat Mar 13 22:02:13 2004 UTC (20 years, 2 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_5_BASE, OPENBSD_3_5
Changes since 1.83: +6 -6 lines
Diff to previous 1.83 (colored)

some NULL vs 0 and knf; parts from nimadeus@pandora.be

Revision 1.83 / (download) - annotate - [select for diffs], Sun Feb 29 14:17:51 2004 UTC (20 years, 2 months ago) by markus
Branch: MAIN
Changes since 1.82: +3 -2 lines
Diff to previous 1.82 (colored)

print tcps_conndrained; reminder from mcbride@

Revision 1.82 / (download) - annotate - [select for diffs], Thu Feb 26 19:38:41 2004 UTC (20 years, 2 months ago) by markus
Branch: MAIN
Changes since 1.81: +3 -3 lines
Diff to previous 1.81 (colored)

better english

Revision 1.81 / (download) - annotate - [select for diffs], Thu Feb 26 08:51:45 2004 UTC (20 years, 2 months ago) by markus
Branch: MAIN
Changes since 1.80: +3 -2 lines
Diff to previous 1.80 (colored)

print tcps_rcvmemdrop; ok deraadt

Revision 1.80 / (download) - annotate - [select for diffs], Thu Jan 15 10:17:33 2004 UTC (20 years, 4 months ago) by markus
Branch: MAIN
Changes since 1.79: +4 -2 lines
Diff to previous 1.79 (colored)

print stats for tcp md5 checksums (aka 'signature'); ok millert@, deraadt@

Revision 1.79 / (download) - annotate - [select for diffs], Tue Jan 13 20:03:28 2004 UTC (20 years, 4 months ago) by otto
Branch: MAIN
Changes since 1.78: +28 -28 lines
Diff to previous 1.78 (colored)

Fix printf formats and add missing include.

ok mcbride@ deraadt@

Revision 1.78 / (download) - annotate - [select for diffs], Tue Jan 6 17:38:12 2004 UTC (20 years, 4 months ago) by markus
Branch: MAIN
Changes since 1.77: +17 -3 lines
Diff to previous 1.77 (colored)

import netbsd's version of David Borman's syncache code
http://www.kohala.com/start/borman.97jun06.txt; ok deraadt@, henning@

Revision 1.77 / (download) - annotate - [select for diffs], Sat Dec 27 23:17:34 2003 UTC (20 years, 4 months ago) by mcbride
Branch: MAIN
Changes since 1.76: +3 -3 lines
Diff to previous 1.76 (colored)

Fix cut-n-paste oversight in pfsync_stats().

Revision 1.76 / (download) - annotate - [select for diffs], Mon Dec 22 22:25:34 2003 UTC (20 years, 5 months ago) by mickey
Branch: MAIN
Changes since 1.75: +2 -5 lines
Diff to previous 1.75 (colored)

remove a suplicate comment

Revision 1.75 / (download) - annotate - [select for diffs], Mon Dec 15 07:11:31 2003 UTC (20 years, 5 months ago) by mcbride
Branch: MAIN
Changes since 1.74: +44 -2 lines
Diff to previous 1.74 (colored)

Add initial support for pf state synchronization over the network.
Implemented as an in-kernel multicast IP protocol.

Turn it on like this:

# ifconfig pfsync0 up syncif fxp0

There is not yet any authentication on this protocol, so the syncif
must be on a trusted network. ie, a crossover cable between the two
firewalls.

NOTABLE CHANGES:
- A new index based on a unique (creatorid, stateid) tuple has been
  added to the state tree.
- Updates now appear on the pfsync(4) interface; multiple updates may
  be compressed into a single update.
- Applications which use bpf on pfsync(4) will need modification;
  packets on pfsync no longer contains regular pf_state structs,
  but pfsync_state structs which contain no pointers.

Much more to come.

ok deraadt@

Revision 1.74 / (download) - annotate - [select for diffs], Tue Dec 2 23:16:29 2003 UTC (20 years, 5 months ago) by markus
Branch: MAIN
Changes since 1.73: +5 -2 lines
Diff to previous 1.73 (colored)

UDP encapsulation for ESP in transport mode (draft-ietf-ipsec-udp-encaps-XX.txt)
ok deraadt@

Revision 1.73 / (download) - annotate - [select for diffs], Fri Nov 7 23:38:48 2003 UTC (20 years, 6 months ago) by mcbride
Branch: MAIN
Changes since 1.72: +3 -2 lines
Diff to previous 1.72 (colored)

Check to make sure that the packet was received on a carp-enabled interface.

Pointed out by Marco Pfatschbacher, ok mickey@

Revision 1.72 / (download) - annotate - [select for diffs], Sun Nov 2 10:23:58 2003 UTC (20 years, 6 months ago) by markus
Branch: MAIN
Changes since 1.71: +20 -4 lines
Diff to previous 1.71 (colored)

print raw ip[46] sockets; ok deraadt@

Revision 1.71 / (download) - annotate - [select for diffs], Fri Oct 31 09:00:32 2003 UTC (20 years, 6 months ago) by mcbride
Branch: MAIN
Changes since 1.70: +6 -4 lines
Diff to previous 1.70 (colored)

Add IPv6 support to CARP.

ok deraadt@

Revision 1.70 / (download) - annotate - [select for diffs], Sat Oct 25 19:33:05 2003 UTC (20 years, 6 months ago) by mcbride
Branch: MAIN
Changes since 1.69: +3 -2 lines
Diff to previous 1.69 (colored)

#undef p2 in carp_stats()

Pointed out by Max Laier

Revision 1.69 / (download) - annotate - [select for diffs], Fri Oct 17 21:04:59 2003 UTC (20 years, 7 months ago) by mcbride
Branch: MAIN
Changes since 1.68: +36 -2 lines
Diff to previous 1.68 (colored)

Common Address Redundancy Protocol

Allows multiple hosts to share an IP address, providing high availability
and load balancing.

Based on code by mickey@, with additional help from markus@
and Marco_Pfatschbacher@genua.de

ok deraadt@

Revision 1.68 / (download) - annotate - [select for diffs], Thu Sep 4 20:05:19 2003 UTC (20 years, 8 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.67: +35 -7 lines
Diff to previous 1.67 (colored)

fix crash and add new icmpnames.  based on pr3439.  some input fgsch@.
ok deraadt@ fgsch@

Revision 1.67 / (download) - annotate - [select for diffs], Thu Sep 4 03:20:17 2003 UTC (20 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.66: +3 -3 lines
Diff to previous 1.66 (colored)

typo; aldo@nullcube.com

Revision 1.66 / (download) - annotate - [select for diffs], Mon Jul 7 21:36:52 2003 UTC (20 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.65: +3 -3 lines
Diff to previous 1.65 (colored)

protos

Revision 1.65 / (download) - annotate - [select for diffs], Tue Jun 3 02:56:13 2003 UTC (20 years, 11 months ago) by millert
Branch: MAIN
Changes since 1.64: +3 -7 lines
Diff to previous 1.64 (colored)

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999.  Proofed by myself and Theo.

Revision 1.64 / (download) - annotate - [select for diffs], Wed Feb 19 19:15:13 2003 UTC (21 years, 3 months ago) by jason
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_3
Changes since 1.63: +3 -2 lines
Diff to previous 1.63 (colored)

add a counter for times ipcomp is skipped because the packet is below the
minimum compression threshold.

Revision 1.63 / (download) - annotate - [select for diffs], Sat Feb 1 01:51:31 2003 UTC (21 years, 3 months ago) by deraadt
Branch: MAIN
Changes since 1.62: +27 -62 lines
Diff to previous 1.62 (colored)

ansi

Revision 1.62 / (download) - annotate - [select for diffs], Sun Jun 9 04:07:10 2002 UTC (21 years, 11 months ago) by jsyn
Branch: MAIN
CVS Tags: OPENBSD_3_2_BASE, OPENBSD_3_2
Changes since 1.61: +7 -7 lines
Diff to previous 1.61 (colored)

Standardization -- s/tdb/TDB/ and various dup expansions.

ok aaron@

Revision 1.61 / (download) - annotate - [select for diffs], Sun Jun 9 01:39:43 2002 UTC (21 years, 11 months ago) by aaron
Branch: MAIN
Changes since 1.60: +3 -3 lines
Diff to previous 1.60 (colored)

'cuz -> because; deraadt@ ok, pvalchev@ ok

Revision 1.60 / (download) - annotate - [select for diffs], Mon May 27 01:50:36 2002 UTC (21 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.59: +42 -43 lines
Diff to previous 1.59 (colored)

a night of cleanup, so i can read this easier

Revision 1.59 / (download) - annotate - [select for diffs], Thu May 16 14:18:34 2002 UTC (22 years ago) by kjc
Branch: MAIN
Changes since 1.58: +14 -2 lines
Diff to previous 1.58 (colored)

display the ECN related statistics.
it is a bit verbose and will be cleaned up once we figure out which
counters are more useful than others.

Revision 1.58 / (download) - annotate - [select for diffs], Tue Feb 19 21:11:23 2002 UTC (22 years, 3 months ago) by miod
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.57: +4 -4 lines
Diff to previous 1.57 (colored)

IPsec is written ``IPsec'', not ``IPSec''.

Revision 1.57 / (download) - annotate - [select for diffs], Tue Feb 19 18:38:02 2002 UTC (22 years, 3 months ago) by mpech
Branch: MAIN
Changes since 1.56: +4 -4 lines
Diff to previous 1.56 (colored)

Fix gethostname() usage.

deraadt@ ok

Revision 1.56 / (download) - annotate - [select for diffs], Sat Feb 16 21:27:50 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
Changes since 1.55: +7 -7 lines
Diff to previous 1.55 (colored)

Part one of userland __P removal.  Done with a simple regexp with some minor hand editing to make comments line up correctly.  Another pass is forthcoming that handles the cases that could not be done automatically.

Revision 1.55 / (download) - annotate - [select for diffs], Thu Jan 17 21:34:58 2002 UTC (22 years, 4 months ago) by mickey
Branch: MAIN
Changes since 1.54: +67 -70 lines
Diff to previous 1.54 (colored)

evil, annoying spaces and tabs

Revision 1.54 / (download) - annotate - [select for diffs], Mon Nov 19 19:02:15 2001 UTC (22 years, 6 months ago) by mpech
Branch: MAIN
Changes since 1.53: +9 -9 lines
Diff to previous 1.53 (colored)

kill more registers

millert@ ok

Revision 1.53 / (download) - annotate - [select for diffs], Sun Aug 26 09:42:04 2001 UTC (22 years, 8 months ago) by brian
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE, OPENBSD_3_0
Changes since 1.52: +8 -8 lines
Diff to previous 1.52 (colored)

Add a -q to silence zero-output lines and fix some whitespace and text nits.

Submitted by:	Sam Smith <S@mSmith.net>
Ok:		theo

Revision 1.52 / (download) - annotate - [select for diffs], Thu Jul 5 08:54:41 2001 UTC (22 years, 10 months ago) by angelos
Branch: MAIN
Changes since 1.51: +3 -6 lines
Diff to previous 1.51 (colored)

Make it compile again.

Revision 1.51 / (download) - annotate - [select for diffs], Thu Jul 5 08:47:43 2001 UTC (22 years, 10 months ago) by jjbg
Branch: MAIN
Changes since 1.50: +44 -2 lines
Diff to previous 1.50 (colored)

IPComp support. angelos@ ok.

Revision 1.50 / (download) - annotate - [select for diffs], Sat Jun 23 06:09:09 2001 UTC (22 years, 11 months ago) by angelos
Branch: MAIN
Changes since 1.49: +8 -2 lines
Diff to previous 1.49 (colored)

Print hardware checksumming statistics.

Revision 1.49 / (download) - annotate - [select for diffs], Sat Mar 3 01:00:20 2001 UTC (23 years, 2 months ago) by itojun
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE, OPENBSD_2_9
Changes since 1.48: +3 -2 lines
Diff to previous 1.48 (colored)

drop packets with 127.0.0.0/8 in header field, if the packet is from outside.
under RFC1122 sender rule 127.0.0.8 must not appear on the wire.
count incidents by ipstat.ips_badaddr.  sync with kame

Revision 1.48 / (download) - annotate - [select for diffs], Fri Jun 30 20:04:01 2000 UTC (23 years, 10 months ago) by itojun
Branch: MAIN
CVS Tags: OPENBSD_2_8_BASE, OPENBSD_2_8
Changes since 1.47: +36 -2 lines
Diff to previous 1.47 (colored)

split netstat -an -f inet and netstat -an -f inet6, for consistency.
Suggested by: fgs

Revision 1.47 / (download) - annotate - [select for diffs], Thu Jun 15 20:05:48 2000 UTC (23 years, 11 months ago) by angelos
Branch: MAIN
Changes since 1.46: +3 -3 lines
Diff to previous 1.46 (colored)

Reflect reality in the error messages.

Revision 1.46 / (download) - annotate - [select for diffs], Mon Mar 20 02:38:35 2000 UTC (24 years, 2 months ago) by angelos
Branch: MAIN
CVS Tags: OPENBSD_2_7_BASE, OPENBSD_2_7
Changes since 1.45: +4 -2 lines
Diff to previous 1.45 (colored)

Print statistics about crypto failures in IPsec processing.

Revision 1.45 / (download) - annotate - [select for diffs], Fri Jan 21 03:24:06 2000 UTC (24 years, 4 months ago) by angelos
Branch: MAIN
Changes since 1.44: +18 -18 lines
Diff to previous 1.44 (colored)

ip4 -> ipip

Revision 1.44 / (download) - annotate - [select for diffs], Sun Jan 9 23:44:03 2000 UTC (24 years, 4 months ago) by angelos
Branch: MAIN
Changes since 1.43: +4 -2 lines
Diff to previous 1.43 (colored)

Add new ESP/AH statistic.

Revision 1.43 / (download) - annotate - [select for diffs], Wed Jan 5 00:07:08 2000 UTC (24 years, 4 months ago) by itojun
Branch: MAIN
Changes since 1.42: +4 -4 lines
Diff to previous 1.42 (colored)

s/input histogram/input packet/histogram/
suggested by: deraadt

Revision 1.42 / (download) - annotate - [select for diffs], Mon Jan 3 04:27:57 2000 UTC (24 years, 4 months ago) by itojun
Branch: MAIN
Changes since 1.41: +4 -2 lines
Diff to previous 1.41 (colored)

add missing stat items in ip section.

Revision 1.41 / (download) - annotate - [select for diffs], Thu Dec 9 09:02:28 1999 UTC (24 years, 5 months ago) by angelos
Branch: MAIN
Changes since 1.40: +3 -2 lines
Diff to previous 1.40 (colored)

Add "unspecified tunnel endpoint" statistic.

Revision 1.40 / (download) - annotate - [select for diffs], Thu Dec 9 08:55:16 1999 UTC (24 years, 5 months ago) by angelos
Branch: MAIN
Changes since 1.39: +3 -3 lines
Diff to previous 1.39 (colored)

Protocol family mismatch counter for IP-IP.

Revision 1.39 / (download) - annotate - [select for diffs], Thu Dec 9 04:21:55 1999 UTC (24 years, 5 months ago) by angelos
Branch: MAIN
Changes since 1.38: +2 -3 lines
Diff to previous 1.38 (colored)

Remove unnecessary statistic.

Revision 1.38 / (download) - annotate - [select for diffs], Wed Dec 8 12:30:17 1999 UTC (24 years, 5 months ago) by itojun
Branch: MAIN
Changes since 1.37: +109 -67 lines
Diff to previous 1.37 (colored)

add IPv6 support from KAME.  cleanup type matches with printf() format.
KAME_SCOPEID should be enabled after KAME get{addr,name}info(3) merge.

Revision 1.37 / (download) - annotate - [select for diffs], Mon Dec 6 11:17:26 1999 UTC (24 years, 5 months ago) by niklas
Branch: MAIN
Changes since 1.36: +1 -0 lines
Diff to previous 1.36 (colored)

so sorry angelos, I am too stressed out, reverted my goofup.

Revision 1.36 / (download) - annotate - [select for diffs], Mon Dec 6 11:04:22 1999 UTC (24 years, 5 months ago) by niklas
Branch: MAIN
Changes since 1.35: +2 -3 lines
Diff to previous 1.35 (colored)

angelos, altering kernel structures may have impact on userland.

Revision 1.35 / (download) - annotate - [select for diffs], Mon Dec 6 00:45:17 1999 UTC (24 years, 5 months ago) by angelos
Branch: MAIN
Changes since 1.34: +3 -2 lines
Diff to previous 1.34 (colored)

Display esps_badenc

Revision 1.34 / (download) - annotate - [select for diffs], Fri Oct 29 03:26:40 1999 UTC (24 years, 6 months ago) by angelos
Branch: MAIN
Changes since 1.33: +35 -2 lines
Diff to previous 1.33 (colored)

etherip statistics

Revision 1.33 / (download) - annotate - [select for diffs], Sun Apr 11 19:41:40 1999 UTC (25 years, 1 month ago) by niklas
Branch: MAIN
CVS Tags: OPENBSD_2_6_BASE, OPENBSD_2_6, OPENBSD_2_5_BASE, OPENBSD_2_5
Changes since 1.32: +4 -2 lines
Diff to previous 1.32 (colored)

Introduce net.inet.{ah,esp}.enable sysctl controls that are off by default.
If you are going to use either of AH or ESP or both, enable these in
/etc/sysctl.conf.  Also correct the IPSec debugging sysctl code, it is now
named net.inet.ip.encdebug.  Some corrected function signatures too.

Revision 1.32 / (download) - annotate - [select for diffs], Fri Apr 9 23:30:05 1999 UTC (25 years, 1 month ago) by niklas
Branch: MAIN
Changes since 1.31: +4 -2 lines
Diff to previous 1.31 (colored)

The userland parts of a sysctl that can switch on/off IP-in-IP (protocol 4)

Revision 1.31 / (download) - annotate - [select for diffs], Sat Mar 27 21:04:21 1999 UTC (25 years, 1 month ago) by provos
Branch: MAIN
Changes since 1.30: +4 -2 lines
Diff to previous 1.30 (colored)

add SADB_X_BINDSA to pfkey allowing incoming SAs to refer to an outgoing
SA to be used, use this SA in ip_output if available. allow mobile road
warriors for bind SAs with wildcard dst and src addresses. check IPSEC
AUTH and ESP level when receiving packets, drop them if protection is
insufficient. add stats to show dropped packets because of insufficient
IPSEC protection. -- phew.  this was all done in canada. dugsong and linh
provided the ride and company.

Revision 1.30 / (download) - annotate - [select for diffs], Wed Feb 24 22:57:34 1999 UTC (25 years, 2 months ago) by angelos
Branch: MAIN
Changes since 1.29: +3 -2 lines
Diff to previous 1.29 (colored)

Grok protocol/address family PF_KEY.

Revision 1.29 / (download) - annotate - [select for diffs], Thu Feb 18 08:25:51 1999 UTC (25 years, 3 months ago) by deraadt
Branch: MAIN
Changes since 1.28: +5 -5 lines
Diff to previous 1.28 (colored)

fix netstat -A header

Revision 1.28 / (download) - annotate - [select for diffs], Wed Feb 17 23:50:38 1999 UTC (25 years, 3 months ago) by deraadt
Branch: MAIN
Changes since 1.27: +3 -2 lines
Diff to previous 1.27 (colored)

print ips_rcvmemdrop

Revision 1.27 / (download) - annotate - [select for diffs], Thu Feb 4 16:05:03 1999 UTC (25 years, 3 months ago) by deraadt
Branch: MAIN
Changes since 1.26: +3 -2 lines
Diff to previous 1.26 (colored)

report on no udp checksum

Revision 1.26 / (download) - annotate - [select for diffs], Mon Nov 30 03:57:15 1998 UTC (25 years, 5 months ago) by provos
Branch: MAIN
Changes since 1.25: +3 -2 lines
Diff to previous 1.25 (colored)

stats for fast retransmits

Revision 1.25 / (download) - annotate - [select for diffs], Wed Nov 25 02:11:44 1998 UTC (25 years, 5 months ago) by niklas
Branch: MAIN
Changes since 1.24: +4 -2 lines
Diff to previous 1.24 (colored)

Present new statistics field in ah/esp stats

Revision 1.24 / (download) - annotate - [select for diffs], Wed Mar 18 02:43:04 1998 UTC (26 years, 2 months ago) by angelos
Branch: MAIN
CVS Tags: OPENBSD_2_4_BASE, OPENBSD_2_4, OPENBSD_2_3_BASE, OPENBSD_2_3
Changes since 1.23: +3 -2 lines
Diff to previous 1.23 (colored)

Update for new tcp stat.

Revision 1.23 / (download) - annotate - [select for diffs], Fri Feb 27 12:07:33 1998 UTC (26 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.22: +17 -12 lines
Diff to previous 1.22 (colored)

oflow paranoia

Revision 1.22 / (download) - annotate - [select for diffs], Sun Nov 9 16:33:09 1997 UTC (26 years, 6 months ago) by provos
Branch: MAIN
Changes since 1.21: +3 -2 lines
Diff to previous 1.21 (colored)

also report udp PCB cache misses.

Revision 1.21 / (download) - annotate - [select for diffs], Mon Jul 28 01:47:43 1997 UTC (26 years, 9 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_2_BASE, OPENBSD_2_2
Changes since 1.20: +10 -5 lines
Diff to previous 1.20 (colored)

for rpc port names, consider protocol too

Revision 1.20 / (download) - annotate - [select for diffs], Mon Jul 14 21:31:33 1997 UTC (26 years, 10 months ago) by angelos
Branch: MAIN
Changes since 1.19: +10 -2 lines
Diff to previous 1.19 (colored)

Print the new input/output bytes for sipp-ah/sipp-esp/ipencap.

Revision 1.19 / (download) - annotate - [select for diffs], Tue Jul 1 20:32:14 1997 UTC (26 years, 10 months ago) by provos
Branch: MAIN
Changes since 1.18: +5 -5 lines
Diff to previous 1.18 (colored)

typos

Revision 1.18 / (download) - annotate - [select for diffs], Sun Jun 29 21:46:01 1997 UTC (26 years, 10 months ago) by millert
Branch: MAIN
Changes since 1.17: +14 -10 lines
Diff to previous 1.17 (colored)

Use correct spacing on both 32bit and 64bit machines.

Revision 1.17 / (download) - annotate - [select for diffs], Sun Jun 29 20:52:39 1997 UTC (26 years, 10 months ago) by millert
Branch: MAIN
Changes since 1.16: +5 -5 lines
Diff to previous 1.16 (colored)

Make fields line up nicely for 64-bit addresses.  Should probably #if
some things based on sizeof(long).

Revision 1.16 / (download) - annotate - [select for diffs], Sun Jun 29 20:17:59 1997 UTC (26 years, 10 months ago) by millert
Branch: MAIN
Changes since 1.15: +103 -103 lines
Diff to previous 1.15 (colored)

Mostly clean -Wall + 64bit issues.

Revision 1.15 / (download) - annotate - [select for diffs], Wed Jun 25 07:56:18 1997 UTC (26 years, 11 months ago) by provos
Branch: MAIN
Changes since 1.14: +4 -2 lines
Diff to previous 1.14 (colored)

show statistics about new timers/counters

Revision 1.14 / (download) - annotate - [select for diffs], Tue Jun 24 02:26:18 1997 UTC (26 years, 11 months ago) by dgregor
Branch: MAIN
Changes since 1.13: +3 -2 lines
Diff to previous 1.13 (colored)

Add '#include <stdlib.h>' for malloc()

Revision 1.13 / (download) - annotate - [select for diffs], Sun Jun 15 13:47:27 1997 UTC (26 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.12: +10 -10 lines
Diff to previous 1.12 (colored)

change byte counters to u_quad_t

Revision 1.12 / (download) - annotate - [select for diffs], Thu Feb 27 01:48:26 1997 UTC (27 years, 2 months ago) by angelos
Branch: MAIN
CVS Tags: OPENBSD_2_1_BASE, OPENBSD_2_1
Changes since 1.11: +4 -2 lines
Diff to previous 1.11 (colored)

Now reports ESP I/O packet counters.

Revision 1.11 / (download) - annotate - [select for diffs], Wed Feb 26 03:08:43 1997 UTC (27 years, 2 months ago) by angelos
Branch: MAIN
Changes since 1.10: +5 -2 lines
Diff to previous 1.10 (colored)

Updated to print the IP-in-IP/AH I/O counters.

Revision 1.10 / (download) - annotate - [select for diffs], Fri Feb 21 09:09:50 1997 UTC (27 years, 3 months ago) by angelos
Branch: MAIN
Changes since 1.9: +92 -2 lines
Diff to previous 1.9 (colored)

netstat now understands SIPP-AH/SIPP-ESP (IPsec) and ENCAP protocols.

Revision 1.9 / (download) - annotate - [select for diffs], Fri Feb 21 02:46:49 1997 UTC (27 years, 3 months ago) by deraadt
Branch: MAIN
Changes since 1.8: +5 -5 lines
Diff to previous 1.8 (colored)

flesh out icmp, no rpc info for -n

Revision 1.8 / (download) - annotate - [select for diffs], Sun Feb 16 10:55:08 1997 UTC (27 years, 3 months ago) by deraadt
Branch: MAIN
Changes since 1.7: +3 -3 lines
Diff to previous 1.7 (colored)

duh

Revision 1.7 / (download) - annotate - [select for diffs], Sun Feb 16 10:31:23 1997 UTC (27 years, 3 months ago) by deraadt
Branch: MAIN
Changes since 1.6: +9 -12 lines
Diff to previous 1.6 (colored)

deal with errors in recent change better

Revision 1.6 / (download) - annotate - [select for diffs], Sun Feb 16 10:26:36 1997 UTC (27 years, 3 months ago) by deraadt
Branch: MAIN
Changes since 1.5: +3 -3 lines
Diff to previous 1.5 (colored)

change from <> to [] and document

Revision 1.5 / (download) - annotate - [select for diffs], Sun Feb 16 10:22:24 1997 UTC (27 years, 3 months ago) by deraadt
Branch: MAIN
Changes since 1.4: +85 -7 lines
Diff to previous 1.4 (colored)

when printing local port numbers, print rpc service name in <> after port number, if available

Revision 1.4 / (download) - annotate - [select for diffs], Fri Jan 17 07:12:57 1997 UTC (27 years, 4 months ago) by millert
Branch: MAIN
Changes since 1.3: +5 -5 lines
Diff to previous 1.3 (colored)

r?index -> strr?chr

Revision 1.3 / (download) - annotate - [select for diffs], Wed Jun 26 05:37:21 1996 UTC (27 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_0_BASE, OPENBSD_2_0
Changes since 1.2: +2 -1 lines
Diff to previous 1.2 (colored)

rcsid

Revision 1.2 / (download) - annotate - [select for diffs], Tue Mar 5 15:45:40 1996 UTC (28 years, 2 months ago) by mickey
Branch: MAIN
Changes since 1.1: +1 -1 lines
Diff to previous 1.1 (colored)

Changes according to the /sys/netinet/tcp_var.h changes.

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Wed Oct 18 08:45:51 1995 UTC (28 years, 7 months ago) by deraadt
CVS Tags: netbsd_1_1
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

initial import of NetBSD tree

Revision 1.1 / (download) - annotate - [select for diffs], Wed Oct 18 08:45:51 1995 UTC (28 years, 7 months ago) by deraadt
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.