]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - net/tipc/msg.c
migrate_mode.h is not exported to user mode
[karo-tx-linux.git] / net / tipc / msg.c
index 83d50967910c6a61bf276742aeee957959796406..3e4d3e29be61fd516a296553b035bee0bba85ca3 100644 (file)
@@ -333,11 +333,14 @@ void tipc_msg_dbg(struct print_buf *buf, struct tipc_msg *msg, const char *str)
        }
 
        if (msg_user(msg) ==  LINK_CONFIG) {
-               u32 *raw = (u32 *)msg;
-               struct tipc_media_addr *orig = (struct tipc_media_addr *)&raw[5];
+               struct tipc_media_addr orig;
+
                tipc_printf(buf, ":DDOM(%x):", msg_dest_domain(msg));
                tipc_printf(buf, ":NETID(%u):", msg_bc_netid(msg));
-               tipc_media_addr_printf(buf, orig);
+               memcpy(orig.value, msg_media_addr(msg), sizeof(orig.value));
+               orig.media_id = 0;
+               orig.broadcast = 0;
+               tipc_media_addr_printf(buf, &orig);
        }
        if (msg_user(msg) == BCAST_PROTOCOL) {
                tipc_printf(buf, "BCNACK:AFTER(%u):", msg_bcgap_after(msg));