Unanswered WskSendTo returns STATUS_DATA_NOT_ACCEPTED

  • Tuesday, March 13, 2012 7:30 PM
     
     

    My call to WskSendTo returns STATUS_DATA_NOT_ACCEPTED:

    ((PWSK_PROVIDER_DATAGRAM_DISPATCH)m_socket->Dispatch)->WskSendTo(m_socket, &wskbuf, 0, (PSOCKADDR)&IPv4RemoteAddress, 0, NULL, m_irp);

    The buffer is allocated from NonPagedPool and should be correctly created. Any ideas?

All Replies

  • Tuesday, March 13, 2012 8:46 PM
     
     

    Have you bound the socket to a local address?


    Thomas F. Divine http://www.pcausa.com

  • Tuesday, March 13, 2012 10:09 PM
     
     
    Yes and I even see the binding in netstat. I just tried out my UDP code inside a kernel-mode service and it works like a charm. In contrast to my driver environment, the service runs at PASSIVE and not DISPATCH_LEVEL. Could this be an issue?
    • Edited by stefan02 Tuesday, March 13, 2012 10:50 PM
    •