[Bug 221676] arp: invalid json output from libxo when bridge is present

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Aug 20 19:34:33 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=221676

            Bug ID: 221676
           Summary: arp: invalid json output from libxo when bridge is
                    present
           Product: Base System
           Version: 11.1-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: olgeni at FreeBSD.org

Trying to get json output from arp(8):

    # arp -a --libxo json | jq .
    parse error: Invalid numeric literal at line 1, column 170

Indeed, the output document was this:

{"__version": "1", "arp": {"arp-cache":
[{"hostname":"?","ip-address":"172.16.1.1","mac-address":"02:c9:3a:59:26:00","interface":"bridge0","permanent":true,"type":bridge},
{"hostname":"olgeni.home.olgeni.com","ip-address":"192.168.0.1","mac-address":"bc:ae:c5:5b:e5:e5","interface":"re0","permanent":true,"type":"ethernet"},
{"hostname":"?","ip-address":"192.168.0.254","mac-address":"4c:60:de:f9:44:46","interface":"re0","expires":1173,"type":"ethernet"}]}
}

Everything looks ok, but the 'bridge' string is not quoted.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list