char-udp.c (de8ed1055c2ce18c95f597eb10df360dcb534f99) | char-udp.c (8de69efab1009d374c7f01d2536797ea009ee796) |
---|---|
1/* 2 * QEMU System Emulator 3 * 4 * Copyright (c) 2003-2008 Fabrice Bellard 5 * 6 * Permission is hereby granted, free of charge, to any person obtaining a copy 7 * of this software and associated documentation files (the "Software"), to deal 8 * in the Software without restriction, including without limitation the rights --- 164 unchanged lines hidden (view full) --- 173 .has_ipv4 = qemu_opt_get(opts, "ipv4"), 174 .ipv4 = qemu_opt_get_bool(opts, "ipv4", 0), 175 .has_ipv6 = qemu_opt_get(opts, "ipv6"), 176 .ipv6 = qemu_opt_get_bool(opts, "ipv6", 0), 177 }; 178 udp->remote = addr; 179 180 if (has_local) { | 1/* 2 * QEMU System Emulator 3 * 4 * Copyright (c) 2003-2008 Fabrice Bellard 5 * 6 * Permission is hereby granted, free of charge, to any person obtaining a copy 7 * of this software and associated documentation files (the "Software"), to deal 8 * in the Software without restriction, including without limitation the rights --- 164 unchanged lines hidden (view full) --- 173 .has_ipv4 = qemu_opt_get(opts, "ipv4"), 174 .ipv4 = qemu_opt_get_bool(opts, "ipv4", 0), 175 .has_ipv6 = qemu_opt_get(opts, "ipv6"), 176 .ipv6 = qemu_opt_get_bool(opts, "ipv6", 0), 177 }; 178 udp->remote = addr; 179 180 if (has_local) { |
181 udp->has_local = true; | |
182 addr = g_new0(SocketAddressLegacy, 1); 183 addr->type = SOCKET_ADDRESS_TYPE_INET; 184 addr->u.inet.data = g_new(InetSocketAddress, 1); 185 *addr->u.inet.data = (InetSocketAddress) { 186 .host = g_strdup(localaddr), 187 .port = g_strdup(localport), 188 }; 189 udp->local = addr; --- 57 unchanged lines hidden --- | 181 addr = g_new0(SocketAddressLegacy, 1); 182 addr->type = SOCKET_ADDRESS_TYPE_INET; 183 addr->u.inet.data = g_new(InetSocketAddress, 1); 184 *addr->u.inet.data = (InetSocketAddress) { 185 .host = g_strdup(localaddr), 186 .port = g_strdup(localport), 187 }; 188 udp->local = addr; --- 57 unchanged lines hidden --- |