[PATCH] fix json output format for IPSET_OPT_IP

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

 



It should be quoted to be a well formed json file, otherwise see following
bad example (range is not quoted):

  # ipset create foo bitmap:ip range 192.168.0.0/16
  # ipset list -o json foo
  [
    {
      "name" : "foo",
      "type" : "bitmap:ip",
      "revision" : 3,
      "header" : {
        "range" : 192.168.0.0-192.168.255.255,
        "memsize" : 8280,
        "references" : 0,
        "numentries" : 0
      },
      "members" : [
      ]
    }
  ]

-- 
Z. Liu

Attachment: 0001-fix-json-output-format-for-IPSET_OPT_IP.patch
Description: Binary data


[Index of Archives]     [Netfitler Users]     [Berkeley Packet Filter]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux