Project

General

Profile

OpenIPMI.patch

Craig Shiels, 05/05/2018 07:35 AM

View differences:

OpenIPMI-2.0.25linux/configure 2018-05-05 23:35:58.066476000 +1000
12824 12824

  
12825 12825
done
12826 12826

  
12827
for ac_header in net/ethernet.h
12828
do :
12829
  ac_fn_c_check_header_mongrel "$LINENO" "net/ethernet.h" "ac_cv_header_net_ethernet_h" "$ac_includes_default"
12830
if test "x$ac_cv_header_net_ethernet_h" = xyes; then :
12831
  cat >>confdefs.h <<_ACEOF
12832
#define HAVE_NET_ETHERNET_H 1
12833
_ACEOF
12834

  
12835
fi
12836

  
12837
done
12838

  
12827 12839

  
12828 12840
# Check whether we need -lrt added.
12829 12841
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
OpenIPMI-2.0.25linux/include/OpenIPMI/ipmi_addr.h 2018-05-05 23:49:13.876081000 +1000
65 65

  
66 66
/* The formats of these MUST match the formats for the kernel. */
67 67

  
68
#ifndef __LINUX_IPMI_H /* Don't include this if we are including the kernel */
68
/* Don't include this if we are including the kernel */
69
#if !defined(__LINUX_IPMI_H) && !defined(__SYS_IPMI_H__)
69 70

  
70 71
/* This is an overlay for all the address types, so it's easy to
71 72
   determine the actual address type.  This is kind of like addresses
OpenIPMI-2.0.25linux/include/OpenIPMI/ipmi_types.h 2018-05-05 23:56:10.375426000 +1000
111 111
/* This type holds the arguments for an IPMI connection. */
112 112
typedef struct ipmi_args_s ipmi_args_t;
113 113

  
114
#ifndef __LINUX_IPMI_H /* Don't include this is we are including the kernel */
114
/* Don't include this is we are including the kernel */
115
#if !defined(__LINUX_IPMI_H) && !defined(__SYS_IPMI_H__)
115 116

  
116 117
#define IPMI_MAX_MSG_LENGTH	256
117 118

  
......
134 135

  
135 136
#endif
136 137

  
138
#ifndef IPMI_MAX_MSG_LENGTH
139
# define IPMI_MAX_MSG_LENGTH	272
140
#endif
141

  
137 142
/* A structure used to hold messages that can be put into a linked
138 143
   list. */
139 144
typedef struct ipmi_msg_item_s
OpenIPMI-2.0.25linux/lanserv/Makefile.am 2018-05-05 23:43:45.916491000 +1000
35 35
libIPMIlanserv_la_SOURCES = lanserv_ipmi.c lanserv_asf.c priv_table.c \
36 36
	lanserv_oem_force.c lanserv_config.c config.c serv.c serial_ipmi.c \
37 37
	persist.c extcmd.c
38
libIPMIlanserv_la_LIBADD = $(OPENSSLLIBS) -ldl $(RT_LIB)
38
libIPMIlanserv_la_LIBADD = $(OPENSSLLIBS) $(RT_LIB)
39 39
libIPMIlanserv_la_LDFLAGS = -version-info $(LD_VERSION) \
40 40
	../utils/libOpenIPMIutils.la
41 41

  
......
43 43

  
44 44
if HAVE_OPENIPMI_SMI
45 45
ipmilan_SOURCES = lanserv.c
46
ipmilan_LDADD = $(POPTLIBS) libIPMIlanserv.la -ldl $(RT_LIB)
46
ipmilan_LDADD = $(POPTLIBS) libIPMIlanserv.la $(RT_LIB)
47 47
ipmilan_LDFLAGS = -rdynamic ../unix/libOpenIPMIposix.la \
48 48
	../utils/libOpenIPMIutils.la
49 49
endif
OpenIPMI-2.0.25linux/lanserv/Makefile.in 2018-05-05 23:43:57.014134000 +1000
493 493
	lanserv_oem_force.c lanserv_config.c config.c serv.c serial_ipmi.c \
494 494
	persist.c extcmd.c
495 495

  
496
libIPMIlanserv_la_LIBADD = $(OPENSSLLIBS) -ldl $(RT_LIB)
496
libIPMIlanserv_la_LIBADD = $(OPENSSLLIBS) $(RT_LIB)
497 497
libIPMIlanserv_la_LDFLAGS = -version-info $(LD_VERSION) \
498 498
	../utils/libOpenIPMIutils.la
499 499

  
500 500
ipmi_checksum_SOURCES = ipmi_checksum.c
501 501
@HAVE_OPENIPMI_SMI_TRUE@ipmilan_SOURCES = lanserv.c
502
@HAVE_OPENIPMI_SMI_TRUE@ipmilan_LDADD = $(POPTLIBS) libIPMIlanserv.la -ldl $(RT_LIB)
502
@HAVE_OPENIPMI_SMI_TRUE@ipmilan_LDADD = $(POPTLIBS) libIPMIlanserv.la $(RT_LIB)
503 503
@HAVE_OPENIPMI_SMI_TRUE@ipmilan_LDFLAGS = -rdynamic ../unix/libOpenIPMIposix.la \
504 504
@HAVE_OPENIPMI_SMI_TRUE@	../utils/libOpenIPMIutils.la
505 505

  
OpenIPMI-2.0.25linux/lanserv/bmc_app.c 2018-05-05 23:38:49.296441000 +1000
50 50
#include "bmc.h"
51 51

  
52 52
#include <errno.h>
53
#include <malloc.h>
53
#include <stdlib.h>
54 54
#include <string.h>
55 55

  
56 56
#include <OpenIPMI/ipmi_err.h>
OpenIPMI-2.0.25linux/lanserv/bmc_picmg.c 2018-05-05 23:38:55.787970000 +1000
50 50
#include "bmc.h"
51 51

  
52 52
#include <errno.h>
53
#include <malloc.h>
53
#include <stdlib.h>
54 54
#include <string.h>
55 55

  
56 56
#include <OpenIPMI/ipmi_err.h>
OpenIPMI-2.0.25linux/lanserv/bmc_sensor.c 2018-05-05 23:38:58.603143000 +1000
53 53
#include <string.h>
54 54
#include <ctype.h>
55 55
#include <stdlib.h>
56
#include <malloc.h>
56
#include <stdlib.h>
57 57
#include <unistd.h>
58 58
#include <sys/types.h>
59 59
#include <sys/stat.h>
OpenIPMI-2.0.25linux/lanserv/bmc_storage.c 2018-05-05 23:39:01.643858000 +1000
50 50
#include "bmc.h"
51 51

  
52 52
#include <errno.h>
53
#include <malloc.h>
53
#include <stdlib.h>
54 54
#include <string.h>
55 55
#include <unistd.h>
56 56
#include <sys/types.h>
OpenIPMI-2.0.25linux/lanserv/extcmd.c 2018-05-05 23:40:50.220697000 +1000
58 58
#include <arpa/inet.h>
59 59
#ifdef HAVE_NETINET_ETHER_H
60 60
#include <netinet/ether.h>
61
#elif defined(HAVE_SYS_ETHERNET_H)
61
#endif
62
#ifdef HAVE_SYS_ETHERNET_H
62 63
#include <sys/ethernet.h>
63
#else
64
#error "either netinet/ether.h or sys/ethernet.h must exist."
64
#endif
65
#ifdef HAVE_NET_ETHERNET_H
66
#include <net/ethernet.h>
65 67
#endif
66 68
#include <ctype.h>
67 69
#include <string.h>
68 70
#include <errno.h>
69 71
#include <stdio.h>
70
#include <malloc.h>
72
#include <stdlib.h>
71 73
#include <stdlib.h>
72 74

  
73 75
#include <OpenIPMI/serv.h>
OpenIPMI-2.0.25linux/lanserv/sdrcomp/sdrcomp.c 2018-05-05 23:39:24.069181000 +1000
36 36
#include <ctype.h>
37 37
#include <unistd.h>
38 38
#include <stdlib.h>
39
#include <malloc.h>
39
#include <stdlib.h>
40 40
#include <math.h>
41 41
#include <time.h>
42 42

  
OpenIPMI-2.0.25linux/lib/ipmi_smi.c 2018-05-06 00:00:22.927205000 +1000
48 48
#include <stdlib.h>
49 49
#include <ctype.h>
50 50

  
51
#include <linux/ipmi.h>
51
#include <sys/ipmi.h>
52 52

  
53 53
#include <OpenIPMI/ipmi_conn.h>
54 54
#include <OpenIPMI/ipmi_msgbits.h>
......
476 476
		const unsigned char ipmb_addr[],
477 477
		unsigned int        num_ipmb_addr)
478 478
{
479
#if 1
480
    return;
481
#else
479 482
    struct ipmi_channel_lun_address_set channel_addr;
480 483
    int                                 rv;
481 484
    unsigned int                        i;
......
500 503
		 "Error setting IPMB address: 0x%x",
501 504
		 IPMI_CONN_NAME(smi->ipmi), errno);
502 505
    }
506
#endif
503 507
}
504 508

  
505 509
typedef struct call_ipmb_change_handler_s