{"action":"created","issue":{"url":"https://api.github.com/repos/01org/zephyr.js/issues/1373","repository_url":"https://api.github.com/repos/01org/zephyr.js","labels_url":"https://api.github.com/repos/01org/zephyr.js/issues/1373/labels{/name}","comments_url":"https://api.github.com/repos/01org/zephyr.js/issues/1373/comments","events_url":"https://api.github.com/repos/01org/zephyr.js/issues/1373/events","html_url":"https://github.com/01org/zephyr.js/issues/1373","id":243647758,"number":1373,"title":"[dhcp] NetConfig.dhcp is broken in qemu","user":{"login":"qiaojingx","id":19813546,"avatar_url":"https://avatars3.githubusercontent.com/u/19813546?v=4","gravatar_id":"","url":"https://api.github.com/users/qiaojingx","html_url":"https://github.com/qiaojingx","followers_url":"https://api.github.com/users/qiaojingx/followers","following_url":"https://api.github.com/users/qiaojingx/following{/other_user}","gists_url":"https://api.github.com/users/qiaojingx/gists{/gist_id}","starred_url":"https://api.github.com/users/qiaojingx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qiaojingx/subscriptions","organizations_url":"https://api.github.com/users/qiaojingx/orgs","repos_url":"https://api.github.com/users/qiaojingx/repos","events_url":"https://api.github.com/users/qiaojingx/events{/privacy}","received_events_url":"https://api.github.com/users/qiaojingx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-07-18T09:04:19Z","updated_at":"2017-07-18T16:12:51Z","closed_at":null,"body":"### Description\r\n<!-- Shortly describe your issue. -->\r\nWhen test with functions `net_cfg.dhcp(function(address, subnet, gateway) { });` in qemu, `Error: Expected a function error` will be thrown. \r\n\r\n### Test Code\r\n<!-- List the impacted test cases or sources code here. For example: -->\r\n[TCPEchoServ4_DHCP.js](https://github.com/01org/zephyr.js/blob/master/samples/TCPEchoServ4_DHCP.js)\r\n[WebSocketServer4.js](https://github.com/01org/zephyr.js/blob/master/samples/websockets/WebSocketServer4.js)\r\n \r\n### Steps to Reproduction\r\n<!-- Describe the exact steps how to reproduce the issue(if any precondition for this issue, please make sure put them firstly). -->\r\n1. add console.log to [TCPEchoServ4_DHCP.js](https://github.com/01org/zephyr.js/blob/master/samples/TCPEchoServ4_DHCP.js) as below:\r\n![selection_122](https://user-images.githubusercontent.com/19813546/28308779-e464d4f4-6bd9-11e7-8539-055cca8f78fb.png)\r\n2. Start net-tools by following [Networking with QEMU](https://github.com/01org/zephyr.js#networking-with-qemu)\r\n3. `make BOARD=qemu_x86 qemu JS=samples/TCPEchoServ4_DHCP.js`\r\n\r\n### Actual Result\r\n<!-- Describe the actual behavior you get. -->\r\nGot `Error: Expected a function error` on QEMU:\r\n![selection_123](https://user-images.githubusercontent.com/19813546/28308732-bb61ae92-6bd9-11e7-9a31-89131cd0ab1b.png)\r\n\r\n ### Expected Result\r\n<!-- Describe what the behavior would be without the issue. -->\r\nNo error thrown. \r\n\r\n### Test Builds\r\n<!-- Include GitHub branch, commit id, target device, test date and result. If the result is fail, please use 'Fail', opposite is 'Pass',\r\n     and use 'Crash' for crash issue. More than one builds can be listed here for history reference. -->\r\nBranch | Commit Id | Target Device | Test Date | Result\r\n---|---|---|---|---\r\nmaster | af7eadd | QEMU | Jul 18, 2017 | Fail\r\n \r\n### Additional Information\r\n<!-- Specific test environments -->\r\n<!-- Error logs, screenshots for the failure phenomenon and pass screenshot. -->"},"comment":{"url":"https://api.github.com/repos/01org/zephyr.js/issues/comments/316115202","html_url":"https://github.com/01org/zephyr.js/issues/1373#issuecomment-316115202","issue_url":"https://api.github.com/repos/01org/zephyr.js/issues/1373","id":316115202,"user":{"login":"jprestwo","id":8986787,"avatar_url":"https://avatars0.githubusercontent.com/u/8986787?v=4","gravatar_id":"","url":"https://api.github.com/users/jprestwo","html_url":"https://github.com/jprestwo","followers_url":"https://api.github.com/users/jprestwo/followers","following_url":"https://api.github.com/users/jprestwo/following{/other_user}","gists_url":"https://api.github.com/users/jprestwo/gists{/gist_id}","starred_url":"https://api.github.com/users/jprestwo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jprestwo/subscriptions","organizations_url":"https://api.github.com/users/jprestwo/orgs","repos_url":"https://api.github.com/users/jprestwo/repos","events_url":"https://api.github.com/users/jprestwo/events{/privacy}","received_events_url":"https://api.github.com/users/jprestwo/received_events","type":"User","site_admin":false},"created_at":"2017-07-18T16:12:51Z","updated_at":"2017-07-18T16:12:51Z","body":"DHCP is not enabled (and probably not possible) with QEMU as it expects a static IP of 192.0.2.0."}}
{"actor":{"display_login":"jprestwo"}}