<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/usr.bin/netstat, branch releng/9.2</title>
<subtitle>FreeBSD source tree</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/'/>
<entry>
<title>MFC/backport core kernel and userspace parts of r237263 (TCP_OFFLOAD</title>
<updated>2013-07-03T09:25:29+00:00</updated>
<author>
<name>Navdeep Parhar</name>
<email>np@FreeBSD.org</email>
</author>
<published>2013-07-03T09:25:29+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=bd85dcc4ec5bce61d07b9624cf50cb9ff6806500'/>
<id>bd85dcc4ec5bce61d07b9624cf50cb9ff6806500</id>
<content type='text'>
rework).  MFC r237563, r239511, r243603, r245915, r245916, r245919,
r245921, r245922, r245924, r245925, r245932, r245934 too.

Build tested with make universe.

r237263:
- Updated TOE support in the kernel.
...

r237563:
Fix clang warning when compiling iw_cxgb.

r239511:
Correctly handle the case where an inp has already been dropped by the time
the TOE driver reports that an active open failed.  toe_connect_failed is
supposed to handle this but it should be provided the inpcb instead of the
tcpcb which may no longer be around.

r243603:
Make sure that tcp_timer_activate() correctly sees TCP_OFFLOAD (or not).

r245915:
Heed SO_NO_OFFLOAD.

r245916:
Teach toe_4tuple_check() to deal with IPv6 4-tuples too.

r245919:
Add TCP_OFFLOAD hook in syncache_respond for IPv6 too, just like the one
that exists for IPv4.

r245921:
There is no need to call into the TOE driver twice in pru_rcvd (tod_rcvd
and then tod_output right after that).

r245922:
Avoid NULL dereference in nd6_storelladdr when no mbuf is provided.  It
is called this way from a couple of places in the OFED code.  (toecore
calls it too but that's going to change shortly).

r245924:
Move lle_event to if_llatbl.h

lle_event replaced arp_update_event after the ARP rewrite and ended up
in if_ether.h simply because arp_update_event used to be there too.
IPv6 neighbor discovery is going to grow lle_event support and this is a
good time to move it to if_llatbl.h.

The two in-tree consumers of this event - OFED and toecore - are not
affected.

r245925:
Generate lle_event in the IPv6 neighbor discovery code too.

r245932:
Teach toe_l2_resolve to resolve IPv6 destinations too.

r245934:
Add checks for SO_NO_OFFLOAD in a couple of places that I missed earlier
in r245915.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
rework).  MFC r237563, r239511, r243603, r245915, r245916, r245919,
r245921, r245922, r245924, r245925, r245932, r245934 too.

Build tested with make universe.

r237263:
- Updated TOE support in the kernel.
...

r237563:
Fix clang warning when compiling iw_cxgb.

r239511:
Correctly handle the case where an inp has already been dropped by the time
the TOE driver reports that an active open failed.  toe_connect_failed is
supposed to handle this but it should be provided the inpcb instead of the
tcpcb which may no longer be around.

r243603:
Make sure that tcp_timer_activate() correctly sees TCP_OFFLOAD (or not).

r245915:
Heed SO_NO_OFFLOAD.

r245916:
Teach toe_4tuple_check() to deal with IPv6 4-tuples too.

r245919:
Add TCP_OFFLOAD hook in syncache_respond for IPv6 too, just like the one
that exists for IPv4.

r245921:
There is no need to call into the TOE driver twice in pru_rcvd (tod_rcvd
and then tod_output right after that).

r245922:
Avoid NULL dereference in nd6_storelladdr when no mbuf is provided.  It
is called this way from a couple of places in the OFED code.  (toecore
calls it too but that's going to change shortly).

r245924:
Move lle_event to if_llatbl.h

lle_event replaced arp_update_event after the ARP rewrite and ended up
in if_ether.h simply because arp_update_event used to be there too.
IPv6 neighbor discovery is going to grow lle_event support and this is a
good time to move it to if_llatbl.h.

The two in-tree consumers of this event - OFED and toecore - are not
affected.

r245925:
Generate lle_event in the IPv6 neighbor discovery code too.

r245932:
Teach toe_l2_resolve to resolve IPv6 destinations too.

r245934:
Add checks for SO_NO_OFFLOAD in a couple of places that I missed earlier
in r245915.
</pre>
</div>
</content>
</entry>
<entry>
<title>MFC r249294:</title>
<updated>2013-04-29T10:52:45+00:00</updated>
<author>
<name>Andrey V. Elsukov</name>
<email>ae@FreeBSD.org</email>
</author>
<published>2013-04-29T10:52:45+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=d00fb9ac60275809d50971558273204e36fced84'/>
<id>d00fb9ac60275809d50971558273204e36fced84</id>
<content type='text'>
  Use IP6STAT_INC/IP6STAT_DEC macros to update ip6 stats.

MFC r249528,249546:
  Add accounting to the source address selection algorithm for cases, when
  it fails to select an address, also add several another counters to
  the statistics.

MFC r249543,249552:
  Replace hardcoded numbers.

MFC r249544:
  Use IP6S_M2MMAX macro.

MFC r249545:
  Replace hardcoded numbers. Also use interface-local scope name instead
  of node-local.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
  Use IP6STAT_INC/IP6STAT_DEC macros to update ip6 stats.

MFC r249528,249546:
  Add accounting to the source address selection algorithm for cases, when
  it fails to select an address, also add several another counters to
  the statistics.

MFC r249543,249552:
  Replace hardcoded numbers.

MFC r249544:
  Use IP6S_M2MMAX macro.

MFC r249545:
  Replace hardcoded numbers. Also use interface-local scope name instead
  of node-local.
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge r248112.</title>
<updated>2013-03-19T13:36:19+00:00</updated>
<author>
<name>Alexander V. Chernikov</name>
<email>melifaro@FreeBSD.org</email>
</author>
<published>2013-03-19T13:36:19+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=5f20904bf555d0f6d5087f07687d2c382bbb4959'/>
<id>5f20904bf555d0f6d5087f07687d2c382bbb4959</id>
<content type='text'>
Document netstat -Q flags meaning.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Document netstat -Q flags meaning.
</pre>
</div>
</content>
</entry>
<entry>
<title>MFC: 242030</title>
<updated>2013-03-15T22:24:34+00:00</updated>
<author>
<name>Alfred Perlstein</name>
<email>alfred@FreeBSD.org</email>
</author>
<published>2013-03-15T22:24:34+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=d86e3dc141446ef3ee481657e7f065d8e61854d8'/>
<id>d86e3dc141446ef3ee481657e7f065d8e61854d8</id>
<content type='text'>
Show how many times we are blocked waiting for mbufs.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Show how many times we are blocked waiting for mbufs.
</pre>
</div>
</content>
</entry>
<entry>
<title>MFC r241838:</title>
<updated>2012-10-25T01:23:41+00:00</updated>
<author>
<name>Eitan Adler</name>
<email>eadler@FreeBSD.org</email>
</author>
<published>2012-10-25T01:23:41+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=4b3523bc8c46af23426ee285e3e864a6dd03ce59'/>
<id>4b3523bc8c46af23426ee285e3e864a6dd03ce59</id>
<content type='text'>
	Remove unused variable. Newer versions of gcc care.

Approved by:	cperciva (implicit)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
	Remove unused variable. Newer versions of gcc care.

Approved by:	cperciva (implicit)
</pre>
</div>
</content>
</entry>
<entry>
<title>MFC r228700: convert IPv6 read-only stats sysctls to the read-write ones.</title>
<updated>2012-08-31T06:38:43+00:00</updated>
<author>
<name>Maxim Konovalov</name>
<email>maxim@FreeBSD.org</email>
</author>
<published>2012-08-31T06:38:43+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=0128f5be2a28c5e1c2b4ff7607e83a10177e8178'/>
<id>0128f5be2a28c5e1c2b4ff7607e83a10177e8178</id>
<content type='text'>
Teach netstat(1) -z to reset these sysctls.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Teach netstat(1) -z to reset these sysctls.
</pre>
</div>
</content>
</entry>
<entry>
<title>MFC r238501, r 238514:</title>
<updated>2012-07-19T09:32:59+00:00</updated>
<author>
<name>Michael Tuexen</name>
<email>tuexen@FreeBSD.org</email>
</author>
<published>2012-07-19T09:32:59+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=f0cd2ad5f77c0b94acaca9e47020854172d39782'/>
<id>f0cd2ad5f77c0b94acaca9e47020854172d39782</id>
<content type='text'>
Changes which improve compilation if neither INET nor INET6 is defined.

Allow netstat to be build if INET is not defined in the kernel.
Thanks to Garrett Cooper for reporting the issue.

This also fixes a bug where netstat doesn't work correctly for SCTP
on INET only (no INET6) kernels.

Approved by: re@
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Changes which improve compilation if neither INET nor INET6 is defined.

Allow netstat to be build if INET is not defined in the kernel.
Thanks to Garrett Cooper for reporting the issue.

This also fixes a bug where netstat doesn't work correctly for SCTP
on INET only (no INET6) kernels.

Approved by: re@
</pre>
</div>
</content>
</entry>
<entry>
<title>MFC r234245:</title>
<updated>2012-05-16T20:05:21+00:00</updated>
<author>
<name>Xin LI</name>
<email>delphij@FreeBSD.org</email>
</author>
<published>2012-05-16T20:05:21+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=3321a892a8160e7765c33725104866e9905529a2'/>
<id>3321a892a8160e7765c33725104866e9905529a2</id>
<content type='text'>
Eliminate an unused parameter of static method igmp_stats_live_old().
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Eliminate an unused parameter of static method igmp_stats_live_old().
</pre>
</div>
</content>
</entry>
<entry>
<title>MFC r232748:</title>
<updated>2012-03-23T10:58:35+00:00</updated>
<author>
<name>Dimitry Andric</name>
<email>dim@FreeBSD.org</email>
</author>
<published>2012-03-23T10:58:35+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=0be73304c053b1c87e66891be82b3f85a5115740'/>
<id>0be73304c053b1c87e66891be82b3f85a5115740</id>
<content type='text'>
After r232745, which makes sure __bswap16(), ntohs() and htons() return
__uint16_t, we can partially undo r228668.

Note the remark "Work around a clang false positive with format string
warnings and ntohs macros (see LLVM PR 11313)" was actually incorrect.

Before r232745, on some arches, the ntohs() macros did in fact return
int, not uint16_t, so clang was right in warning about the %hu format
string.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
After r232745, which makes sure __bswap16(), ntohs() and htons() return
__uint16_t, we can partially undo r228668.

Note the remark "Work around a clang false positive with format string
warnings and ntohs macros (see LLVM PR 11313)" was actually incorrect.

Before r232745, on some arches, the ntohs() macros did in fact return
int, not uint16_t, so clang was right in warning about the %hu format
string.
</pre>
</div>
</content>
</entry>
<entry>
<title>MFC r232263:</title>
<updated>2012-03-13T18:39:57+00:00</updated>
<author>
<name>Dimitry Andric</name>
<email>dim@FreeBSD.org</email>
</author>
<published>2012-03-13T18:39:57+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=2c16d5debe8f5c5200ed90ae2da394ba7d0fba83'/>
<id>2c16d5debe8f5c5200ed90ae2da394ba7d0fba83</id>
<content type='text'>
Define several extra macros in bsd.sys.mk and sys/conf/kern.pre.mk, to
get rid of testing explicitly for clang (using ${CC:T:Mclang}) in
individual Makefiles.

Instead, use the following extra macros, for use with clang:
- NO_WERROR.clang       (disables -Werror)
- NO_WCAST_ALIGN.clang  (disables -Wcast-align)
- NO_WFORMAT.clang	(disables -Wformat and friends)
- CLANG_NO_IAS		(disables integrated assembler)
- CLANG_OPT_SMALL	(adds flags for extra small size optimizations)

As a side effect, this enables setting CC/CXX/CPP in src.conf instead of
make.conf!  For clang, use the following:

CC=clang
CXX=clang++
CPP=clang-cpp
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Define several extra macros in bsd.sys.mk and sys/conf/kern.pre.mk, to
get rid of testing explicitly for clang (using ${CC:T:Mclang}) in
individual Makefiles.

Instead, use the following extra macros, for use with clang:
- NO_WERROR.clang       (disables -Werror)
- NO_WCAST_ALIGN.clang  (disables -Wcast-align)
- NO_WFORMAT.clang	(disables -Wformat and friends)
- CLANG_NO_IAS		(disables integrated assembler)
- CLANG_OPT_SMALL	(adds flags for extra small size optimizations)

As a side effect, this enables setting CC/CXX/CPP in src.conf instead of
make.conf!  For clang, use the following:

CC=clang
CXX=clang++
CPP=clang-cpp
</pre>
</div>
</content>
</entry>
</feed>
