Skip to contentSkip to conversation

net/dump: Issue a warning for the deprecated "-net dump"

PATCH Applied Thomas Huth 2 participants 2 messages Apr 25, 2017 – Apr 26, 2017 Networking

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/dump: Issue a warning for the deprecated "-net dump"

Network dumping should be done with "-object filter-dump" nowadays. Using "-net dump" via the VLAN mechanism is considered as deprecated and might be removed in a future release. So warn the users now to inform them to user the filter-dump method instead.

---
 net/dump.c | 3 +++
 1 file changed, 3 insertions(+)
net/dump.c +3 -0
index 89a149b..442eb53 100644
@@ -194,6 +194,9 @@ int net_init_dump(const Netdev *netdev, const char *name,
 
     assert(peer);
 
+    error_report("'-net dump' is deprecated. "
+                 "Please use '-object filter-dump' instead.");
+
     if (dump->has_file) {
         file = dump->file;
     } else {
Signature · 1 line
1.8.3.1
Applied
#1 lore raw
Quoted 15 lines · Thomas Huth

Network dumping should be done with "-object filter-dump" nowadays. Using "-net dump" via the VLAN mechanism is considered as deprecated and might be removed in a future release. So warn the users now to inform them to user the filter-dump method instead.

---
  net/dump.c | 3 +++
  1 file changed, 3 insertions(+)
net/dump.c +0 -0
index 89a149b..442eb53 100644

net/dump.c int net_init_dump(const Netdev *netdev, const char *name, · line 202

Quoted 9 lines
net/dump.c +3 -0
@@ -194,6 +194,9 @@ int net_init_dump(const Netdev *netdev, const char *name,
 
      assert(peer);
 
+    error_report("'-net dump' is deprecated. "
+                 "Please use '-object filter-dump' instead.");
+
      if (dump->has_file) {
          file = dump->file;
      } else {

Applied.

Thanks