X hits on this document

PDF document

February 10, 2006 - page 219 / 238

1139 views

0 shares

0 downloads

0 comments

219 / 238

non-zero, it’s an error number to report why the failure occurred. Since some connections support multiple ports into the system, this

is used to report partial failures as well as full failures.

port_num will be the nonzero) or has just means depends on the the system still has

port come

number up (if

that has failed (if

err

is

zero).

What

err is port_num

that

connection type.

any_port_up will be

true

if

connectivity

through

other

ports.

*/

t y p e d e f v o i d ( * i p m i _ l l _ c o n _ c h a n g e d _ c b ) ( i p m i _ c int o n _ t

*ipmi, err,

u n s i g n e d i n t p o r t _ n u m ,

int

any_port_up,

void

*cb_data);

/*

Used when fetching the IPMB address of the connection. The active parm tells if the interface is active or not, this callback is also

used to inform the upper layer when the connection becomes active

or so

inactive. Note that this allows an array

there can be one IPMB address per channel, of IPMBs to be passed, one per channel.

Set the IPMB to 0 if unknown. */ t y p e d e f v o i d ( * i p m i _ l l _ i p m b _ a d d r _ c b ) ( i p m i _ c o int n _ t

*ipmi, err,

c o n s t u n s i g n e d c h a r i p m b _ a d d r [ ] ,

unsigned

int

_ num_ipmb addr,

int

active,

unsigned int

hacks,

void

_ *cb data);

/* Used to handle knowing when the connection shutdown is complete. */ typedef void (*ipmi_ll_con_closed_cb)(ipmi_con_t *ipmi, void *cb_data);

/* Set this bit in the hacks if, even though the connection is to a device not at 0x20, the first part of a LAN command should always

use 0x20. */ #define IPMI CONN HACK 20 AS MAIN ADDR

0x00000001

_

_

_

_

_

_

/* Some systems (incorrectly, according to the spec) use only the bottom 4 bits or ROLE(m) for authentication in the RAKP3 message. The spec says to use all 8 bits, but enabling this hack makes

OpenIPMI only use the bottom 4 bits. */ #define IPMI_CONN_HACK_RAKP3_WRONG_ROLEM

0x00000002

/*

The spec is vague (perhaps wrong), but the default for RMCP+ seems

to of

be to use OpenIPMI,

K(1) as the integrity key. but this hack lets you use

That is thus the SIK as it says in

default one part

of the spec. */

#define IPMI CONN HACK RMCPP INTEG SIK

0x00000004

_

_

_

_

_

207

Document info
Document views1139
Page views1139
Page last viewedMon Jan 23 13:32:09 UTC 2017
Pages238
Paragraphs8090
Words85809

Comments