{"action":"created","issue":{"url":"https://api.github.com/repos/dfrencham/swiftPCap/issues/1","labels_url":"https://api.github.com/repos/dfrencham/swiftPCap/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/dfrencham/swiftPCap/issues/1/comments","events_url":"https://api.github.com/repos/dfrencham/swiftPCap/issues/1/events","html_url":"https://github.com/dfrencham/swiftPCap/issues/1","id":122854770,"number":1,"title":"Error: Result: this device doesn't support rfmon (monitor) mode (-6)","user":{"login":"bchynds","id":2746112,"avatar_url":"https://avatars.githubusercontent.com/u/2746112?v=3","gravatar_id":"","url":"https://api.github.com/users/bchynds","html_url":"https://github.com/bchynds","followers_url":"https://api.github.com/users/bchynds/followers","following_url":"https://api.github.com/users/bchynds/following{/other_user}","gists_url":"https://api.github.com/users/bchynds/gists{/gist_id}","starred_url":"https://api.github.com/users/bchynds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bchynds/subscriptions","organizations_url":"https://api.github.com/users/bchynds/orgs","repos_url":"https://api.github.com/users/bchynds/repos","events_url":"https://api.github.com/users/bchynds/events{/privacy}","received_events_url":"https://api.github.com/users/bchynds/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-12-18T00:55:01Z","updated_at":"2015-12-18T03:25:29Z","closed_at":null,"body":"I'm a bit of a noob at this, but even just using \"en0\" (which is the Ethernet interface on my MacBook Pro) and the default setup from your code, I'm getting an error when running that the device doesn't support rfmon:\r\n```\r\n$ ./swiftPCap\r\npcap test\r\nOpening en0\r\nError: Result: this device doesn't support rfmon (monitor) mode (-6)\r\nExiting\r\n```"},"comment":{"url":"https://api.github.com/repos/dfrencham/swiftPCap/issues/comments/165659739","html_url":"https://github.com/dfrencham/swiftPCap/issues/1#issuecomment-165659739","issue_url":"https://api.github.com/repos/dfrencham/swiftPCap/issues/1","id":165659739,"user":{"login":"bchynds","id":2746112,"avatar_url":"https://avatars.githubusercontent.com/u/2746112?v=3","gravatar_id":"","url":"https://api.github.com/users/bchynds","html_url":"https://github.com/bchynds","followers_url":"https://api.github.com/users/bchynds/followers","following_url":"https://api.github.com/users/bchynds/following{/other_user}","gists_url":"https://api.github.com/users/bchynds/gists{/gist_id}","starred_url":"https://api.github.com/users/bchynds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bchynds/subscriptions","organizations_url":"https://api.github.com/users/bchynds/orgs","repos_url":"https://api.github.com/users/bchynds/repos","events_url":"https://api.github.com/users/bchynds/events{/privacy}","received_events_url":"https://api.github.com/users/bchynds/received_events","type":"User","site_admin":false},"created_at":"2015-12-18T03:25:29Z","updated_at":"2015-12-18T03:25:29Z","body":"Stepping a little more though the code and it seems pcap_activate() is returning -6.  Both pcap_set_promisc() and pcap_set_rfmon() returns 0, and it's not until pcap_activate() is called that it's passing -6 as the result to handleResult().  I don't know what -6 means, and the docs don't seem to point to anything regarding this type of return:\r\n\r\nhttps://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man3/pcap_activate.3pcap.html"}}