[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] net: Add "info neighbors" command
From: |
Markus Armbruster |
Subject: |
Re: [PATCH] net: Add "info neighbors" command |
Date: |
Fri, 03 Sep 2021 06:28:09 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) |
Doug Evans <dje@google.com> writes:
> This command dumps the ARP and NDP tables maintained within slirp.
> One use-case for it is showing the guest's IPv6 address(es).
>
> Signed-off-by: Doug Evans <dje@google.com>
> ---
> hmp-commands-info.hx | 15 +++++++
> include/net/slirp.h | 1 +
> net/slirp.c | 15 +++++++
> tests/acceptance/info_neighbors.py | 69 ++++++++++++++++++++++++++++++
> 4 files changed, 100 insertions(+)
> create mode 100644 tests/acceptance/info_neighbors.py
Standard request for new HMP commands without corresponding QMP
commands: please state in the commit message why the QMP command is not
worthwhile.
HMP commands without a QMP equivalent are okay if their functionality
makes no sense in QMP, or is of use only for human users.
Example for "makes no sense in QMP": setting the current CPU, because a
QMP monitor doesn't have a current CPU.
Examples for "is of use only for human users": HMP command "help", the
integrated pocket calculator.
Debugging commands are kind of borderline. Debugging is commonly a
human activity, where HMP is just fine. However, humans create tools to
assist with their activities, and then QMP is useful. While I wouldn't
encourage HMP-only for the debugging use case, I wouldn't veto it.