lkml.org 
[lkml]   [2005]   [Mar]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectKernel space sockets
    Hi,

    I'm trying to implement a UDP server in a kernel module. So far I have
    created the struct socket using sock_create_kern(), and used
    sock->ops->bind() on it. Now how do I send UDP datagrams? I looked at
    some code and found the function sock->ops->sendmsg() but I can't figure
    out where to put the destination address. I would appreciate it if
    someone could point me to some tutorial or sample code.

    Thanks,
    Josef
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-03-22 14:11    [W:0.025 / U:0.884 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site