VLOG_DEFINE_THIS_MODULE(cfm);
#define CCM_OPCODE 1 /* CFM message opcode meaning CCM. */
-#define DEST_ADDR 0x0180C2000030 /* Destination for MD level 0 CCMs. */
+#define DEST_ADDR UINT64_C(0x0180C2000030) /* MD level 0 CCM destination. */
struct cfm_internal {
struct cfm cfm;
struct ofpbuf *packet;
struct eth_header *eth;
- packet = xzalloc(sizeof *packet);
-
- ofpbuf_init(packet, ETH_HEADER_LEN + CCM_LEN + 2);
+ packet = ofpbuf_new(ETH_HEADER_LEN + CCM_LEN + 2);
ofpbuf_reserve(packet, 2);