]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add ddb(4) 'netdump' command to netdump a core without preconfiguration
authorcem <cem@FreeBSD.org>
Thu, 17 Oct 2019 19:49:20 +0000 (19:49 +0000)
committercem <cem@FreeBSD.org>
Thu, 17 Oct 2019 19:49:20 +0000 (19:49 +0000)
commitb0452a96d2e89d61b6780caab8b9e5671d96341a
tree419c8df3f9bad579aa147bd668f2fb9c87abbfb1
parentdb456c276cdbcb57e3bf31dffd3aded30287b189
Add ddb(4) 'netdump' command to netdump a core without preconfiguration

Add a 'X -s <server> -c <client> [-g <gateway>] -i <interface>' subroutine
to the generic debugnet code.  The imagined use is both netdump, shown here,
and NetGDB (vaporware).  It uses the ddb(4) lexer, with some new extensions,
to parse out IPv4 addresses.

'Netdump' uses the generic debugnet routine to load a configuration and
start a dump, without any netdump configuration prior to panic.

Loosely derived from work by: John Reimer <john.reimer AT emc.com>
Reviewed by: markj
Differential Revision: https://reviews.freebsd.org/D21460
share/man/man4/ddb.4
share/man/man4/netdump.4
sys/net/debugnet.c
sys/net/debugnet.h
sys/netinet/netdump/netdump_client.c