lkml.org 
[lkml]   [2006]   [Jun]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [PATCH 2.6.17-rc6-mm1 ] net: RFC 3828-compliant UDP-Lite support
    From
    Date
    Ar Iau, 2006-06-08 am 11:50 +0100, ysgrifennodd Gerrit Renker:
    > + UDP-Lite introduces a new socket type, the SOCK_LDGRAM (note the L) for
    > + lightweight, connection-less services. These are the socket options:

    This is not the intended use of the socket API when distinguishing
    between services. The socket() call has a protocol field that is usually
    unused and it exists precisely to disambiguate multiple protocols with
    the same generic behaviour but different properties.

    s = socket(PF_INET, SOCK_DGRAM, IPPROTO_UDPLITE);

    is probably the right way to do this, keeping 0 "default" as before
    meaning IPPROTO_UDP

    -
    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: 2006-06-08 16:35    [W:0.025 / U:1.028 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site