/*
- * Copyright (c) 2010 Nicira Networks.
+ * Copyright (c) 2010, 2011 Nicira Networks.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
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);
rmp = xzalloc(sizeof *rmp);
rmp->mpid = ccm_mpid;
hmap_insert(&cfm->x_remote_mps, &rmp->node, hash_mpid(ccm_mpid));
+ cfm->fault = true;
}
rmp->recv_time = time_msec();