qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 03/12] netfilter: add netfilter_{add|del} comman


From: Yang Hongyang
Subject: Re: [Qemu-devel] [PATCH 03/12] netfilter: add netfilter_{add|del} commands
Date: Wed, 29 Jul 2015 22:30:29 +0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0



On 07/29/2015 10:28 PM, Yang Hongyang wrote:


On 07/29/2015 10:15 PM, Thomas Huth wrote:
On Wednesday, July 29, 2015 12:51:47 PM,
"Yang Hongyang" <address@hidden> wrote:

add netfilter_{add|del} commands
This is mostly the same with netdev_{add|del} commands.

Signed-off-by: Yang Hongyang <address@hidden>
---
...
diff --git a/hmp-commands.hx b/hmp-commands.hx
index d3b7932..5326a82 100644
--- a/hmp-commands.hx
+++ b/hmp-commands.hx
@@ -1253,6 +1253,36 @@ Remove host network device.
  ETEXI

      {
+        .name       = "netfilter_add",
+        .args_type  = "netfilter:O",
+        .params     = "[type],id=str,netdev=str[,prop=value][,...]",

I'm not fully sure about the syntax, but writing "[type]" in square
brackets sounds like this parameter is optional to me. But if
I've got this right, it is not optional, is it? So maybe use
"<type>" instead?

 Yes, <type> could be better here,

but I'm not sure if we can use <> syntax here...

it will be updated in the last
patch when we have added a type "buffer"!


  Thomas
.



--
Thanks,
Yang.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]