lkml.org 
[lkml]   [1997]   [Nov]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    SubjectRe: Linux-2.0.32..
    Date
    From
    Could you please include this one? It corrects broken getsockname()
    behaviour which renders libsocks5 unusable.

    regards

    Olaf

    --- net/ipv4/af_inet.c~ Fri Aug 15 21:23:23 1997
    +++ net/ipv4/af_inet.c Mon Nov 17 22:05:26 1997
    @@ -836,11 +836,8 @@
    sin->sin_addr.s_addr = sk->daddr;
    } else {
    __u32 addr = sk->rcv_saddr;
    - if (!addr) {
    + if (!addr)
    addr = sk->saddr;
    - if (!addr)
    - addr = ip_my_addr();
    - }
    sin->sin_port = sk->dummy_th.source;
    sin->sin_addr.s_addr = addr;
    }
    ___ Olaf.Titz@inka.de or @{stud,informatik}.uni-karlsruhe.de ____
    __ o <URL:http://www.inka.de/~bigred/> <IRC:praetorius>
    __/<_ >> Just as long as the wheels keep on turning round
    _)>(_)______________ I will live for the groove 'til the sun goes down << ____
    \
     
     \ /
      Last update: 2005-03-22 13:40    [W:0.022 / U:0.020 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site