!C99Shell v. 1.0 pre-release build #13!

Software: Apache/2.0.54 (Unix) mod_perl/1.99_09 Perl/v5.8.0 mod_ssl/2.0.54 OpenSSL/0.9.7l DAV/2 FrontPage/5.0.2.2635 PHP/4.4.0 mod_gzip/2.0.26.1a 

uname -a: Linux snow.he.net 4.4.276-v2-mono-1 #1 SMP Wed Jul 21 11:21:17 PDT 2021 i686 

uid=99(nobody) gid=98(nobody) groups=98(nobody) 

Safe-mode: OFF (not secure)

/usr/src/linux-2.4.18-xfs-1.1/drivers/net/skfp/   drwxr-xr-x
Free 318.38 GB of 458.09 GB (69.5%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     smtinit.c (2.93 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/******************************************************************************
 *
 *    (C)Copyright 1998,1999 SysKonnect,
 *    a business unit of Schneider & Koch & Co. Datensysteme GmbH.
 *
 *    See the file "skfddi.c" for further information.
 *
 *    This program is free software; you can redistribute it and/or modify
 *    it under the terms of the GNU General Public License as published by
 *    the Free Software Foundation; either version 2 of the License, or
 *    (at your option) any later version.
 *
 *    The information in this file is provided "AS IS" without warranty.
 *
 ******************************************************************************/

/*
    Init SMT
    call all module level initialization routines
*/

#include "h/types.h"
#include "h/fddi.h"
#include "h/smc.h"

#ifndef    lint
static const char ID_sccs[] = "@(#)smtinit.c    1.15 97/05/06 (C) SK " ;
#endif

extern void init_fddi_driver() ;

/* define global debug variable */
#if defined(DEBUG) && !defined(DEBUG_BRD)
struct smt_debug debug;
#endif

#ifndef MULT_OEM
#define OEMID(smc,i)    oem_id[i]
    extern u_char    oem_id[] ;
#else    /* MULT_OEM */
#define OEMID(smc,i)    smc->hw.oem_id->oi_mark[i]
    extern struct s_oem_ids    oem_ids[] ;
#endif    /* MULT_OEM */

/*
 * Set OEM specific values
 *
 * Can not be called in smt_reset_defaults, because it is not sure that
 * the OEM ID is already defined.
 */
static void set_oem_spec_val(smc)
struct s_smc *smc ;
{
    struct fddi_mib *mib ;

    mib = &smc->mib ;

    /*
     * set IBM specific values
     */
    if (OEMID(smc,0) == 'I') {
        mib->fddiSMTConnectionPolicy = POLICY_MM ;
    }
}

/*
 * Init SMT
 */
int init_smt(smc,mac_addr)
struct s_smc *smc ;
u_char *mac_addr ;        /* canonical address or NULL */
{
    int    p ;

#if defined(DEBUG) && !defined(DEBUG_BRD)
    debug.d_smt = 0 ;
    debug.d_smtf = 0 ;
    debug.d_rmt = 0 ;
    debug.d_ecm = 0 ;
    debug.d_pcm = 0 ;
    debug.d_cfm = 0 ;

    debug.d_plc = 0 ;
#ifdef    ESS
    debug.d_ess = 0 ;
#endif
#ifdef    SBA
    debug.d_sba = 0 ;
#endif
#endif    /* DEBUG && !DEBUG_BRD */

    /* First initialize the ports mib->pointers */
    for ( p = 0; p < NUMPHYS; p ++ ) {
        smc->y[p].mib = & smc->mib.p[p] ;
    }

    set_oem_spec_val(smc) ;    
    (void) smt_set_mac_opvalues(smc) ;
    init_fddi_driver(smc,mac_addr) ;    /* HW driver */
    smt_fixup_mib(smc) ;        /* update values that depend on s.sas */

    ev_init(smc) ;            /* event queue */
#ifndef    SLIM_SMT
    smt_init_evc(smc) ;        /* evcs in MIB */
#endif    /* no SLIM_SMT */
    smt_timer_init(smc) ;        /* timer package */
    smt_agent_init(smc) ;        /* SMT frame manager */

    pcm_init(smc) ;            /* PCM state machine */
    ecm_init(smc) ;            /* ECM state machine */
    cfm_init(smc) ;            /* CFM state machine */
    rmt_init(smc) ;            /* RMT state machine */

    for (p = 0 ; p < NUMPHYS ; p++) {
        pcm(smc,p,0) ;        /* PCM A state machine */
    }
    ecm(smc,0) ;            /* ECM state machine */
    cfm(smc,0) ;            /* CFM state machine */
    rmt(smc,0) ;            /* RMT state machine */

    smt_agent_task(smc) ;        /* NIF FSM etc */

        PNMI_INIT(smc) ;                /* PNMI initialization */

    return(0) ;
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 1.0 pre-release build #13 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0046 ]--