X hits on this document

PDF document

February 10, 2006 - page 225 / 238

1025 views

0 shares

0 downloads

0 comments

225 / 238

const ipmi_con_option ipmi_ll_rsp_handler_t

_

t *options, rsp_handler,

ipmi msgi_t

_

*rspi);

the proper option.

This field may be NULL if the connection

const ipmi_addr_t

*addr,

unsigned int

addr_len,

const ipmi_msg_t

*msg,

};

# d e f i n e I P M I _ C O N N _ N A M E ( c ) ( c - > n a m e ? c - > n a m e : " " )

does not support options. */ i n t ( * s e n d _ c o m m a n d _ o p t i o n ) ( i p m i _ c o n _ t

*ipmi,

/* Initialization code for the initialization the connection code. */ int _ipmi_conn_init(os_handler_t *os_hnd); void _ipmi_conn_shutdown(void);

/* Address types for external addresses. */

#define IPMI EXTERN ADDR IP

1

_

_

_

/* Handle a trap from an external SNMP source. event was handled an zero if it was not. */ i n t i p m i _ h a n d l e _ s n m p _ t r a p _ d a t a ( c o n s t v o i d

It returns 1 if the

* s r c _ a d d r ,

unsig int long

ned int

src_addr_len, src_addr_type, specific,

const unsigned char *data,

unsigned int

d a t a _ l e n ) ;

/*

These calls deal with OEM-type handlers for connections. Certain connections can be detected with special means (beyond just the manufacturer and product id) and this allows handlers for these types of connections to be registered. At the very initial connection of every connection, the handler will be called and it must detect whether this is the specific type of connection or not, do any setup for that connection type, and then call the done

routine passed (allowing this

in.

Note that the done routine may be

handler

to

send

messages

and

the

like)

called

later,

but it

*must*

be called.

Note that this has no cancellation handler.

It relies

t y on the lower levels returning responses for all the commands NULL connections. */ p e d e f v o i d ( * i p m i _ c o n n _ o e m _ c h e c k _ d o n e ) ( i p m i _ c o n _ t * c o n n ,

with

t void y p e d e f i n t ( * i p m i _ c o n n _ o e m _ c h e c k ) ( i p m i _ c o n _ t

* c b _ d a t a ) ; *conn,

213

Document info
Document views1025
Page views1025
Page last viewedThu Jan 19 07:53:32 UTC 2017
Pages238
Paragraphs8090
Words85809

Comments