payload: {"action":"created","issue":{"url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/12077","repository_url":"https://api.github.com/repos/ARMmbed/mbed-os","labels_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/12077/labels{/name}","comments_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/12077/comments","events_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/12077/events","html_url":"https://github.com/ARMmbed/mbed-os/issues/12077","id":536054706,"node_id":"MDU6SXNzdWU1MzYwNTQ3MDY=","number":12077,"title":"DNS fails with Gemalto EMS31-US modem due to Mbed Gemalto Cellular driver","user":{"login":"jporter4","id":48684516,"node_id":"MDQ6VXNlcjQ4Njg0NTE2","avatar_url":"https://avatars1.githubusercontent.com/u/48684516?v=4","gravatar_id":"","url":"https://api.github.com/users/jporter4","html_url":"https://github.com/jporter4","followers_url":"https://api.github.com/users/jporter4/followers","following_url":"https://api.github.com/users/jporter4/following{/other_user}","gists_url":"https://api.github.com/users/jporter4/gists{/gist_id}","starred_url":"https://api.github.com/users/jporter4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jporter4/subscriptions","organizations_url":"https://api.github.com/users/jporter4/orgs","repos_url":"https://api.github.com/users/jporter4/repos","events_url":"https://api.github.com/users/jporter4/events{/privacy}","received_events_url":"https://api.github.com/users/jporter4/received_events","type":"User","site_admin":false},"labels":[{"id":1075658157,"node_id":"MDU6TGFiZWwxMDc1NjU4MTU3","url":"https://api.github.com/repos/ARMmbed/mbed-os/labels/Jira%20status:%20OPEN","name":"Jira status: OPEN","color":"f9d0c4","default":false,"description":""},{"id":427713129,"node_id":"MDU6TGFiZWw0Mjc3MTMxMjk=","url":"https://api.github.com/repos/ARMmbed/mbed-os/labels/mirrored","name":"mirrored","color":"ededed","default":false,"description":null},{"id":28847979,"node_id":"MDU6TGFiZWwyODg0Nzk3OQ==","url":"https://api.github.com/repos/ARMmbed/mbed-os/labels/type:%20bug","name":"type: bug","color":"b60205","default":false,"description":null}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2019-12-10T23:33:43Z","updated_at":"2019-12-12T22:33:13Z","closed_at":null,"author_association":"NONE","body":"<!--\r\n\r\n   ************************************** WARNING **************************************\r\n\r\n   The ciarcom bot parses this header automatically. Any deviation from the \r\n   template may cause the bot to automatically correct this header or may result in a \r\n   warning message, requesting updates.\r\n\r\n   Please ensure all sections of the template below are filled in and no changes \r\n   are made to the template format. Only bugs should be raised here as issues. \r\n   Questions or enhancements should instead be raised on our forums:\r\n   https://forums.mbed.com/ .\r\n\r\n   *************************************************************************************\r\n\r\n-->\r\n\r\n### Description of defect\r\nWhen the Gemalto modem receives socket data and sends it to the Gemalto cellular driver, the driver attempts to separate modem framing from the socket data.  This fails in the case of DNS.  Single-stepping through the code using the IAR debugger, I saw that the function \"nsapi_dns_query_multiple\" in file \"nsapi_dns.cpp\" was attempting to parse the following buffer as if it were a DNS response:\r\n<0d><0a>^SISR: 0,96,0,\"8.8.8.8:53\"<0d><0a><00><01><81><80><00><01><00><04><00><00><00><00> etc.\r\nIn fact, the first 30 bytes are modem framing, and should have been stripped out by the Gemalto cellular driver.  The actual DNS response <00><01><81><80> etc. begins at the 31st byte.\r\n\r\n<!--\r\n    Add detailed description of what you are reporting.\r\n    Good example: https://os.mbed.com/docs/mbed-os/latest/contributing/workflow.html\r\n-->\r\n\r\n\r\n#### Target(s) affected by this defect ?\r\nAny target with a Gemalto EMS31-US cellular modem attached.  I also have a target that has a Gemalto ELS61-US modem, but I did not observe this behavior there.  I suspect strongly that the driver was only tested against ELS61-US.\r\n\r\n#### Toolchain(s) (name and version) displaying this defect ?\r\nI'm using IAR EWB for ARM 8.40. The issue should be observed regardless of which toolchain is used however.\r\n\r\n#### What version of Mbed-os are you using (tag or sha) ?\r\n5.14.1\r\n#### What version(s) of tools are you using. List all that apply (E.g. mbed-cli)\r\nIAR EWB for ARM 8.40\r\n\r\n#### How is this defect reproduced ? \r\nBuild for GEMALTO_CINTERION (edit \"mbed-os\\features\\cellular\\framework\\targets\\GEMALTO\\CINTERION\\mbed_lib.json\", set \"provide-default\" value to true). The simple TCP client example \"https://os.mbed.com/teams/mbed-os-examples/code/mbed-os-example-sockets/docs/tip/main_8cpp_source.html\" works nicely, just replacing Ethernet with Gemalto cellular. \r\n"},"comment":{"url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/comments/565216989","html_url":"https://github.com/ARMmbed/mbed-os/issues/12077#issuecomment-565216989","issue_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/12077","id":565216989,"node_id":"MDEyOklzc3VlQ29tbWVudDU2NTIxNjk4OQ==","user":{"login":"jporter4","id":48684516,"node_id":"MDQ6VXNlcjQ4Njg0NTE2","avatar_url":"https://avatars1.githubusercontent.com/u/48684516?v=4","gravatar_id":"","url":"https://api.github.com/users/jporter4","html_url":"https://github.com/jporter4","followers_url":"https://api.github.com/users/jporter4/followers","following_url":"https://api.github.com/users/jporter4/following{/other_user}","gists_url":"https://api.github.com/users/jporter4/gists{/gist_id}","starred_url":"https://api.github.com/users/jporter4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jporter4/subscriptions","organizations_url":"https://api.github.com/users/jporter4/orgs","repos_url":"https://api.github.com/users/jporter4/repos","events_url":"https://api.github.com/users/jporter4/events{/privacy}","received_events_url":"https://api.github.com/users/jporter4/received_events","type":"User","site_admin":false},"created_at":"2019-12-12T22:33:13Z","updated_at":"2019-12-12T22:33:13Z","author_association":"NONE","body":"Here it is.\r\n[dns_log.txt](https://github.com/ARMmbed/mbed-os/files/3958076/dns_log.txt)\r\n"}}
other: {"actor":{"display_login":"jporter4"}}