DragonFly kernel List (threaded) for 2008-07
DragonFly BSD
DragonFly kernel List (threaded) for 2008-07
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

SS_ISCONFIRMING


From: Aggelos Economopoulos <aoiko@xxxxxxxxxxxxxx>
Date: Sat, 26 Jul 2008 15:28:27 +0300

Notice anything missing?

> grep -rh SS_ISCONFIRMING sys
                                if ((so->so_state & SS_ISCONFIRMING) == 0 &&
        if (so->so_state & SS_ISCONFIRMING && resid)
        so->so_state &= ~(SS_ISCONNECTING|SS_ISDISCONNECTING|SS_ISCONFIRMING);
        if ((so->so_state & (SS_ISCONNECTED|SS_ISCONFIRMING)) == 0) {
                                    & (SS_ISCONNECTED|SS_ISCONFIRMING)) == 0)
#define SS_ISCONFIRMING         0x0400  /* deciding to accept connection req */
> 

Unless someone, somewhere is setting it using a magic constant,
SS_ISCONFIRMING cannot ever be set and the tests above can be removed. Am
I missing something?

Aggelos



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]