{"action":"created","issue":{"url":"https://api.github.com/repos/osrg/gobgp/issues/736","repository_url":"https://api.github.com/repos/osrg/gobgp","labels_url":"https://api.github.com/repos/osrg/gobgp/issues/736/labels{/name}","comments_url":"https://api.github.com/repos/osrg/gobgp/issues/736/comments","events_url":"https://api.github.com/repos/osrg/gobgp/issues/736/events","html_url":"https://github.com/osrg/gobgp/issues/736","id":137986852,"number":736,"title":"decode_path produces very strange values: NQ==","user":{"login":"pavel-odintsov","id":2744166,"avatar_url":"https://avatars.githubusercontent.com/u/2744166?v=3","gravatar_id":"","url":"https://api.github.com/users/pavel-odintsov","html_url":"https://github.com/pavel-odintsov","followers_url":"https://api.github.com/users/pavel-odintsov/followers","following_url":"https://api.github.com/users/pavel-odintsov/following{/other_user}","gists_url":"https://api.github.com/users/pavel-odintsov/gists{/gist_id}","starred_url":"https://api.github.com/users/pavel-odintsov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pavel-odintsov/subscriptions","organizations_url":"https://api.github.com/users/pavel-odintsov/orgs","repos_url":"https://api.github.com/users/pavel-odintsov/repos","events_url":"https://api.github.com/users/pavel-odintsov/events{/privacy}","received_events_url":"https://api.github.com/users/pavel-odintsov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-02T20:41:46Z","updated_at":"2016-03-03T07:28:11Z","closed_at":null,"body":"Hello, folks!\r\n\r\nI'm trying to decode this announce:\r\n```bash\r\n    flow_spec_rule_t flow_spec_rule;\r\n    flow_spec_rule.set_source_subnet( convert_subnet_from_string_to_binary_with_cidr_format(\"22.0.0.0/16\") );\r\n    flow_spec_rule.set_destination_subnet( convert_subnet_from_string_to_binary_with_cidr_format(\"144.0.0.0/24\") );\r\n    flow_spec_rule.add_protocol(FLOW_SPEC_PROTOCOL_UDP);\r\n    flow_spec_rule.add_destination_port(53);\r\n\r\n    bgp_flow_spec_action_t bgp_flow_spec_action;\r\n    bgp_flow_spec_action.set_type(FLOW_SPEC_ACTION_DISCARD);\r\n\r\n    flow_spec_rule.set_action(bgp_flow_spec_action);\r\n```\r\n\r\nWith GoBGP and got following:\r\n```bash\r\n{\"nlri\":{\"value\":[{\"type\":1,\"value\":{\"prefix\":\"144.0.0.0/24\"}},{\"type\":2,\"value\":{\"prefix\":\"22.0.0.0/16\"}},{\"type\":3,\"value\":[{\"op\":129,\"value\":17}]},{\"type\":5,\"value\":[{\"op\":129,\"value\":53}]},{\"Value\":\"NQ==\"}]},\"attrs\":[{\"type\":1,\"value\":2},{\"type\":14,\"nexthop\":\"0.0.0.0\",\"afi\":1,\"safi\":133,\"value\":[{\"value\":[{\"type\":1,\"value\":{\"prefix\":\"144.0.0.0/24\"}},{\"type\":2,\"value\":{\"prefix\":\"22.0.0.0/16\"}},{\"type\":3,\"value\":[{\"op\":129,\"value\":17}]},{\"type\":5,\"value\":[{\"op\":129,\"value\":53}]},{\"Value\":\"NQ==\"}]}]},{\"type\":16,\"value\":[{\"type\":128,\"subtype\":6,\"as\":0,\"rate\":0}]}]})\r\n```\r\n\r\nWhat is NQ==?\r\n\r\nExaBGP produce following output for same dataset:\r\n```bash\r\nupdate json { \"exabgp\": \"3.5.0\", \"host\" : \"Ubuntu-1404-trusty-64-minimal\", \"counter\": 1, \"type\": \"update\", \"neighbor\": { \"address\": { \"local\": \"127.0.0.1\", \"peer\": \"127.0.0.1\" }, \"asn\": { \"local\": \"1\", \"peer\": \"1\" }, \"direction\": \"in\", \"message\": { \"update\": { \"attribute\": { \"origin\": \"incomplete\", \"extended-community\": [ 9225060886715039744 ] }, \"announce\": { \"ipv4 flow\": { \"no-nexthop\": { \"flow-11\": { \"destination-ipv4\": [ \"144.0.0.0/24\" ], \"source-ipv4\": [ \"22.0.0.0/16\" ], \"protocol\": [ \"=udp\" ], \"destination-port\": [ \"=53\" ], \"string\": \"flow destination-ipv4 144.0.0.0/24 source-ipv4 22.0.0.0/16 protocol =udp destination-port =53\" } } } } } } } }\r\n```\r\n\r\nDo you have any idea? "},"comment":{"url":"https://api.github.com/repos/osrg/gobgp/issues/comments/191627255","html_url":"https://github.com/osrg/gobgp/issues/736#issuecomment-191627255","issue_url":"https://api.github.com/repos/osrg/gobgp/issues/736","id":191627255,"user":{"login":"pavel-odintsov","id":2744166,"avatar_url":"https://avatars.githubusercontent.com/u/2744166?v=3","gravatar_id":"","url":"https://api.github.com/users/pavel-odintsov","html_url":"https://github.com/pavel-odintsov","followers_url":"https://api.github.com/users/pavel-odintsov/followers","following_url":"https://api.github.com/users/pavel-odintsov/following{/other_user}","gists_url":"https://api.github.com/users/pavel-odintsov/gists{/gist_id}","starred_url":"https://api.github.com/users/pavel-odintsov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pavel-odintsov/subscriptions","organizations_url":"https://api.github.com/users/pavel-odintsov/orgs","repos_url":"https://api.github.com/users/pavel-odintsov/repos","events_url":"https://api.github.com/users/pavel-odintsov/events{/privacy}","received_events_url":"https://api.github.com/users/pavel-odintsov/received_events","type":"User","site_admin":false},"created_at":"2016-03-03T07:28:11Z","updated_at":"2016-03-03T07:28:11Z","body":"JFYI, I saw this strange \"\"Value\":\"NQ==\"}\" only in requests with source or destination ports specified. \r\n\r\nAlso for flow spec with two source ports 53 and 8080 I've got following (just look at \"kA==\"):\r\n```bash\r\n{\"nlri\":{\"value\":[{\"type\":1,\"value\":{\"prefix\":\"144.0.0.0/24\"}},{\"type\":2,\"value\":{\"prefix\":\"22.0.0.0/16\"}},{\"type\":3,\"value\":[{\"op\":129,\"value\":17}]},{\"type\":6,\"value\":[{\"op\":1,\"value\":53},{\"op\":145,\"value\":8080}]},{\"Value\":\"kA==\"}]},\"attrs\":[{\"type\":1,\"value\":2},{\"type\":14,\"nexthop\":\"0.0.0.0\",\"afi\":1,\"safi\":133,\"value\":[{\"value\":[{\"type\":1,\"value\":{\"prefix\":\"144.0.0.0/24\"}},{\"type\":2,\"value\":{\"prefix\":\"22.0.0.0/16\"}},{\"type\":3,\"value\":[{\"op\":129,\"value\":17}]},{\"type\":6,\"value\":[{\"op\":1,\"value\":53},{\"op\":145,\"value\":8080}]},{\"Value\":\"kA==\"}]}]},{\"type\":16,\"value\":[{\"type\":128,\"subtype\":6,\"as\":0,\"rate\":0}]}]}\r\n```\r\n\r\n"}}