Socket selection.

From: Pawel Jakub Dawidek (pjd_at_FreeBSD.org)
Date: 05/20/04

  • Next message: Andre Oppermann: "Re: ia_netbroadcast"
    Date: Thu, 20 May 2004 19:30:12 +0200
    To: freebsd-net@freebsd.org
    
    
    

    Hello.

    In in_pcblookup_hash() function, in the last loop if we find exact
    match, we return immediately, if it is "wild", we store a pointer and
    we countinue looking for exact match.
    I wonder if this is ok, that we change pointer every time we find a
    "wild" match. Is it inteded? Shouldn't it be:

            http://people.freebsd.org/~pjd/patches/in_pcb.c.2.patch

    ?

    While I'm here, I want to improve code readability a bit:

            http://people.freebsd.org/~pjd/patches/in_pcb.c.3.patch

    Is it ok?

    -- 
    Pawel Jakub Dawidek                       http://www.FreeBSD.org
    pjd@FreeBSD.org                           http://garage.freebsd.pl
    FreeBSD committer                         Am I Evil? Yes, I Am!
    
    



  • Next message: Andre Oppermann: "Re: ia_netbroadcast"

    Relevant Pages

    • Re: Critical - New OS X Trojan Horse in the Wild
      ... this one is already in the wild. ... You're welcome to describe a better security model> Trojan Horses from ... Perhaps it's that same one you were referring to when you fault Windows ... Does Windows have the exact same flaw? ...
      (comp.sys.mac.advocacy)
    • Re: Hover off!
      ... There is no an exact answer or setting for this particular behavior of mouse. ... Everyone has different opinion on this hover setting. ... Most often this problem arises from touchpad sensitivity being set too high. ... I am typing data into document but leave the pointer over another place ...
      (microsoft.public.windowsxp.basics)
    • Re: future C standards
      ... That seems to imply that anything other than an exact match is not accepted for pointer arguments; but I would expect function overloading to allow matching a parameter defined as a pointer to a qualified type with an actual argument that points to a less-qualified type; ... But from your remark about void pointers I assume that you don't want to make that promise: ...
      (comp.std.c)
    • Re: Insufficient guarantees for null pointers?
      ... That may be easy or difficult or impossible, depending on the exact ... compares equal to the original pointer. ... on the exact interpretation of what exactly the promise was meant to be, ... conversions and unions or allocated memory. ...
      (comp.std.c)
    • Re: Critical - New OS X Trojan Horse in the Wild
      ... this one is already in the wild. ... You're welcome to describe a better security model> Trojan Horses from ... Does Windows have the exact same flaw? ... Life is not measured by the number of breaths we take, ...
      (comp.sys.mac.advocacy)