Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>-13 is -EACCES. Do you have SO_BROADCAST set? I believe sock_sendmsg returns -EACCES if SO_BROADCAST isn't set and you're sending to a broadcast address.</p> <hr> <p>You're looking for &lt;errno.h&gt; for error codes.</p> <hr> <p>What kernel version are you developing under? I'd like to browse thru the kernel source briefly. I'm not seeing how -ENOPKG can be returned from sock_set, but I do see that -ENOPROTOOPT can be returned (which is errno 92 in kernel 2.6.27). </p> <p>Oh-- and repost that bit of code where you're setting SO_BROADCAST, if you would. I didn't make a note of it and I'd like to look at it again.</p> <hr> <p>Try calling it with SOL_UDP. I <em>think</em> that's what you're looking for. I don't have a 2.6.18 build environment setup anywhere to play w/ this, but give that a shot.</p> <p>No-- nevermind-- that's not going to do what you want. I should've read a little further in the source. I'll keep looking. This is kinda fun.</p> <hr> <p>I suppose you could just set the broadcast flag yourself! <em>smile</em></p> <pre><code>lock_sock(sock-&gt;sk); sock-&gt;sk-&gt;broadcast = 1; release_sock(sock-&gt;sk); </code></pre> <hr> <p>You've got me stumped, and I've got to head off to bed. I did find this bit of code that might be of some assistance, though these guys aren't doing broadcasts. </p> <p><a href="http://kernelnewbies.org/Simple_UDP_Server" rel="nofollow noreferrer">http://kernelnewbies.org/Simple_UDP_Server</a></p> <p>Good luck-- I wish I could have solved it for you.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload