Added all Corey's sugestions: 1) Create an ipmb data structure and don't re-use the serial server data structures and code. 2) got rid of the ipmb_data structure which was adding unnecessary complexity.
The things that need to be kept: 1) the prim_ipmb_in_cfg_file. Without this variable the code will not work if we pass an ipmb channel number other than 0. 2) The ipmb_dev_int.c linux driver creates /dev/ipmb-<bus #> to exchange data with user space. So we need to keep the check in the ipmb_read_config function for the device file token. Asmaa Mnebhi (1): Support IPMB lanserv/Makefile.am | 2 +- lanserv/OpenIPMI/Makefile.am | 2 +- lanserv/OpenIPMI/ipmbserv.h | 83 ++++++++++++++++ lanserv/OpenIPMI/serv.h | 4 + lanserv/README.design | 6 +- lanserv/bmc.c | 4 + lanserv/config.c | 3 + lanserv/ipmb_ipmi.c | 219 +++++++++++++++++++++++++++++++++++++++++++ lanserv/ipmi_sim.c | 96 +++++++++++++++++++ lanserv/lan.conf | 13 +++ 10 files changed, 429 insertions(+), 3 deletions(-) create mode 100644 lanserv/OpenIPMI/ipmbserv.h create mode 100644 lanserv/ipmb_ipmi.c -- 2.1.2 _______________________________________________ Openipmi-developer mailing list Openipmi-developer@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openipmi-developer