~ubuntu-branches/debian/sid/ipmitool/sid

« back to all changes in this revision

Viewing changes to src/plugins/lan/rmcp.h

  • Committer: Package Import Robot
  • Author(s): Luk Claes
  • Date: 2013-05-07 18:12:12 UTC
  • mfrom: (5.1.11 raring-proposed)
  • Revision ID: package-import@ubuntu.com-20130507181212-fitwelheknk3tqnq
Tags: 1.8.12-1
Merge new upstream from Ubuntu (Closes: #692292).

Show diffs side-by-side

added added

removed removed

Lines of Context:
64
64
        { 0,                    NULL }
65
65
};
66
66
 
 
67
#ifdef HAVE_PRAGMA_PACK
 
68
#pragma pack(1)
 
69
#endif
67
70
/* RMCP message header */
68
71
struct rmcp_hdr {
69
72
        uint8_t ver;
70
73
        uint8_t __reserved;
71
74
        uint8_t seq;
72
75
        uint8_t class;
73
 
} __attribute__((packed));
 
76
} ATTRIBUTE_PACKING;
 
77
#ifdef HAVE_PRAGMA_PACK
 
78
#pragma pack(0)
 
79
#endif
74
80
 
 
81
#ifdef HAVE_PRAGMA_PACK
 
82
#pragma pack(1)
 
83
#endif
75
84
struct rmcp_pong {
76
85
        struct rmcp_hdr rmcp;
77
86
        struct asf_hdr asf;
80
89
        uint8_t sup_entities;
81
90
        uint8_t sup_interact;
82
91
        uint8_t reserved[6];
83
 
} __attribute__((packed));
 
92
} ATTRIBUTE_PACKING;
 
93
#ifdef HAVE_PRAGMA_PACK
 
94
#pragma pack(0)
 
95
#endif
84
96
 
85
97
int handle_rmcp(struct ipmi_intf * intf, uint8_t * data, int data_len);
86
98