| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
numerically. clean up the CFLAGS in Makefile.
|
|
|
|
| |
PR: 20808
|
| |
|
|
|
|
|
| |
CSRG revision 5.33 deleted -h option from getopt(), but not
from usage(). Revision 8.3 restored it in getopt().
|
|
|
|
|
|
| |
PR: bin/6994
Submitted by: Zahemszky Gabor <zgabor@zg.CoDe.hu>
MFC after: 1 week
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This work was based on kame-20010528-freebsd43-snap.tgz and some
critical problem after the snap was out were fixed.
There are many many changes since last KAME merge.
TODO:
- The definitions of SADB_* in sys/net/pfkeyv2.h are still different
from RFC2407/IANA assignment because of binary compatibility
issue. It should be fixed under 5-CURRENT.
- ip6po_m member of struct ip6_pktopts is no longer used. But, it
is still there because of binary compatibility issue. It should
be removed under 5-CURRENT.
Reviewed by: itojun
Obtained from: KAME
MFC after: 3 weeks
|
|
|
|
|
|
|
|
|
|
| |
Always print at least 3 bytes for IN_CLASSC_NET networks.
The standard 193.0.0 class C network for example, will now
be displayed as "193.0.0" as opposed to the confusing 193.
PR: bin/21546
MFC after: 1 week
|
|
|
|
|
| |
PR: 27251
Submitted by: Pekka Savola <pekkas@netcore.fi>
|
|
|
|
|
|
|
|
| |
(e.g., ARP table entries) with the default routing display.
PR: bin/26970
Reviewed by: wollman
MFC after: 3 days
|
|
|
|
|
| |
Use the sockaddr_dl sdl_type, not ifnet.if_type, to decide what type
a multicast sockaddr_dl is.
|
|
|
|
| |
Submitted by: Stephen <sdk@shell.yuck.net>
|
|
|
|
|
|
|
| |
dereference of a kernel-pointer in userland.
PR: 26168
Submitted by: Peter Pentchev <roam@orbitel.bg>
|
|
|
|
|
|
|
| |
to have been developed after the IPv6 code was written, it's called "checking
for error returns".
Now netstat at least doesnt't go beserk in jails.
|
| |
|
|
|
|
|
|
|
|
| |
too long for the column they're printed in.
Move variable definitions out of netstat.h and into main.c.
Clean up some warnings.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
A route generated from an RTF_CLONING route had the RTF_WASCLONED flag
set but did not have a reference to the parent route, as documented in
the rtentry(9) manpage. This prevented such routes from being deleted
when their parent route is deleted.
Now, for example, if you delete an IP address from a network interface,
all ARP entries that were cloned from this interface route are flushed.
This also has an impact on netstat(1) output. Previously, dynamically
created ARP cache entries (RTF_STATIC flag is unset) were displayed as
part of the routing table display (-r). Now, they are only printed if
the -a option is given.
netinet/in.c, netinet/in_rmx.c:
When address is removed from an interface, also delete all routes that
point to this interface and address. Previously, for example, if you
changed the address on an interface, outgoing IP datagrams might still
use the old address. The only solution was to delete and re-add some
routes. (The problem is easily observed with the route(8) command.)
Note, that if the socket was already bound to the local address before
this address is removed, new datagrams generated from this socket will
still be sent from the old address.
PR: kern/20785, kern/21914
Reviewed by: wollman (the idea)
|
|
|
|
|
|
| |
Don't roll our own version of trimdomain(), use the one in libutil.
Not objected to by: freebsd-audit
|
| |
|
|
|
|
| |
values that aren't updated for a particular network-layer address.
|
|
|
|
|
|
| |
backwards in the three drivers which want to do that.
Reviewed by: mikeh
|
| |
|
|
|
|
|
| |
Submitted by: "Jason" <jsmethers@pdq.net>
Reviewed by: phk
|
| |
|
|
|
|
| |
get rid of stupid upperbound on the amount of interfaces (was 8).
|
|
|
|
|
|
|
|
|
|
|
| |
statistics on a per network address basis.
Teach the IPv4 and IPv6 input/output routines to log packets/bytes
against the network address connected to the flow.
Teach netstat to display the per-address stats for IP protocols
when 'netstat -i' is evoked, instead of displaying the per-interface
stats.
|
|
|
|
| |
"in use" percentage. In other words, show how much of mb_map is in use.
|
|
|
|
| |
Broken in rev 1.44.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
that should be better.
The old code counted references to mbuf clusters by using the offset
of the cluster from the start of memory allocated for mbufs and
clusters as an index into an array of chars, which did the reference
counting. If the external storage was not a cluster then reference
counting had to be done by the code using that external storage.
NetBSD's system of linked lists of mbufs was cosidered, but Alfred
felt it would have locking issues when the kernel was made more
SMP friendly.
The system implimented uses a pool of unions to track external
storage. The union contains an int for counting the references and
a pointer for forming a free list. The reference counts are
incremented and decremented atomically and so should be SMP friendly.
This system can track reference counts for any sort of external
storage.
Access to the reference counting stuff is now through macros defined
in mbuf.h, so it should be easier to make changes to the system in
the future.
The possibility of storing the reference count in one of the
referencing mbufs was considered, but was rejected 'cos it would
often leave extra mbufs allocated. Storing the reference count in
the cluster was also considered, but because the external storage
may not be a cluster this isn't an option.
The size of the pool of reference counters is available in the
stats provided by "netstat -m".
PR: 19866
Submitted by: Bosko Milekic <bmilekic@dsuper.net>
Reviewed by: alfred (glanced at by others on -net)
|
|
|
|
|
| |
PR: bin/20407
Submitted by: Patrick Bihan-Faou <patrick@mindstep.com>
|
| |
|
|
|
|
|
|
|
| |
line is missing. This apparently was broken in revision 1.31 of
"if.c".
Submitted by: Maxime Henrion <mhenrion@cybercable.fr>
|
|
|
|
|
|
|
| |
expand the size from short to ulong
Submitted by: Ian Dowse <iedowse@maths.tcd.ie>
PR: kern/19809
|
|
|
|
| |
(it belongs to kame experiment).
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
(They need to be suppressed by default for IPv6 entries to keep the column
size of each entries in 80.)
|
|
|
|
|
|
|
|
|
| |
There was a missing description for a new flags to netstat.
I already added the fix to netstat man, but usage() change is
also necessary.
Specified by: Ben Smithurst <ben@scientia.demon.co.uk>
Approved by: jkh
|
|
|
|
|
| |
Noticed the necessity by Ben Smithurst <ben@scientia.demon.co.uk> message
on freebsd-current.
|
|
|
|
|
| |
of the typeset output, tend to make diffs harder to read and provide
bad examples for new-comers to mdoc.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
kernel IPv6 multicast routing support.
pim6 dense mode daemon
pim6 sparse mode daemon
netstat support of IPv6 multicast routing statistics
Merging to the current and testing with other existing multicast routers
is done by Tatsuya Jinmei <jinmei@kame.net>, who writes and maintainances
the base code in KAME distribution.
Make world check and kernel build check was also successful.
|
|
|
|
|
|
| |
a true default of 0.0.0.0/0 as default.
Reviewed by: wollman
|
|
|
|
|
|
|
|
|
| |
only when either of sflag and "-f inet6" is specified.
-fix the indentation of default output
Specified by: Stephen McKay <syssgm@detir.qld.gov.au>
Reviewed and Confirmed by: Stephen McKay <syssgm@detir.qld.gov.au>
|
|
|
|
|
| |
Reviewed by: freebsd-arch, cvs-committers
Obtained from: KAME project
|
|
|
|
|
|
|
| |
byte.byte. This makes it consistent with our other utilities
like arp(8) and ifconfig(8).
Submitted by: Paul Vixie <paul@vix.com>
|
|
|
|
| |
Submitted by: Bosko Milekic <bmilekic@dsuper.net>
|