blob: c6b9fe49176beb62e4a501fbc4d0d42d3e14cb67 [file] [log] [blame]
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -08001/*
2 * Copyright 2008, The Android Open Source Project
3 *
Erik Kline314d82c2015-03-04 17:13:10 +09004 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -08007 *
Erik Kline314d82c2015-03-04 17:13:10 +09008 * http://www.apache.org/licenses/LICENSE-2.0
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -08009 *
Erik Kline314d82c2015-03-04 17:13:10 +090010 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080014 * limitations under the License.
15 */
16
17/* Utilities for managing the dhcpcd DHCP client daemon */
18
19#include <stdio.h>
20#include <stdlib.h>
Olivier Baillyb93e5812010-11-17 11:47:23 -080021#include <string.h>
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080022#include <unistd.h>
23#include <arpa/inet.h>
24#include <netinet/in.h>
25
26#include <cutils/properties.h>
27
Dmitry Shmidt9363b7d2009-12-14 15:41:54 -080028static const char DAEMON_NAME[] = "dhcpcd";
29static const char DAEMON_PROP_NAME[] = "init.svc.dhcpcd";
30static const char HOSTNAME_PROP_NAME[] = "net.hostname";
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080031static const char DHCP_PROP_NAME_PREFIX[] = "dhcp";
Dmitry Shmidt62d6f742012-07-23 17:39:30 -070032static const char DHCP_CONFIG_PATH[] = "/system/etc/dhcpcd/dhcpcd.conf";
Irfan Sheriffb1723b62010-12-21 10:31:05 -080033static const int NAP_TIME = 200; /* wait for 200ms at a time */
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080034 /* when polling for property values */
TK MUN9d157872011-02-23 18:58:36 +090035static const char DAEMON_NAME_RENEW[] = "iprenew";
Erik Kline314d82c2015-03-04 17:13:10 +090036static char errmsg[100] = "\0";
Irfan Sheriff89f58cf2012-05-23 10:30:05 -070037/* interface length for dhcpcd daemon start (dhcpcd_<interface> as defined in init.rc file)
38 * or for filling up system properties dhcpcd.<interface>.ipaddress, dhcpcd.<interface>.dns1
39 * and other properties on a successful bind
40 */
41#define MAX_INTERFACE_LENGTH 25
42
43/*
44 * P2p interface names increase sequentially p2p-p2p0-1, p2p-p2p0-2.. after
45 * group formation. This does not work well with system properties which can quickly
46 * exhaust or for specifiying a dhcp start target in init which requires
47 * interface to be pre-defined in init.rc file.
48 *
49 * This function returns a common string p2p for all p2p interfaces.
50 */
51void get_p2p_interface_replacement(const char *interface, char *p2p_interface) {
52 /* Use p2p for any interface starting with p2p. */
53 if (strncmp(interface, "p2p",3) == 0) {
54 strncpy(p2p_interface, "p2p", MAX_INTERFACE_LENGTH);
55 } else {
56 strncpy(p2p_interface, interface, MAX_INTERFACE_LENGTH);
57 }
58}
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080059
60/*
61 * Wait for a system property to be assigned a specified value.
62 * If desired_value is NULL, then just wait for the property to
63 * be created with any value. maxwait is the maximum amount of
64 * time in seconds to wait before giving up.
65 */
66static int wait_for_property(const char *name, const char *desired_value, int maxwait)
67{
68 char value[PROPERTY_VALUE_MAX] = {'\0'};
Irfan Sheriffb1723b62010-12-21 10:31:05 -080069 int maxnaps = (maxwait * 1000) / NAP_TIME;
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080070
71 if (maxnaps < 1) {
72 maxnaps = 1;
73 }
74
daisuke niwac855bdd2015-02-27 09:49:39 +010075 while (maxnaps-- >= 0) {
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080076 if (property_get(name, value, NULL)) {
Erik Kline314d82c2015-03-04 17:13:10 +090077 if (desired_value == NULL ||
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080078 strcmp(value, desired_value) == 0) {
79 return 0;
80 }
81 }
daisuke niwac855bdd2015-02-27 09:49:39 +010082 if (maxnaps >= 0) {
83 usleep(NAP_TIME * 1000);
84 }
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080085 }
86 return -1; /* failure */
87}
88
Robert Greenwaltfaab26d2011-01-14 14:35:42 -080089static int fill_ip_info(const char *interface,
90 char *ipaddr,
91 char *gateway,
92 uint32_t *prefixLength,
Robert Greenwaltfdd57312013-01-09 16:22:12 -080093 char *dns[],
Robert Greenwaltfaab26d2011-01-14 14:35:42 -080094 char *server,
Jeff Sharkey0fb8ec82012-04-18 21:54:55 -070095 uint32_t *lease,
Robert Greenwalt6ecbdca2012-11-13 10:56:01 -080096 char *vendorInfo,
Dmitry Shmidtbe062102013-07-24 17:37:05 -070097 char *domain,
98 char *mtu)
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080099{
100 char prop_name[PROPERTY_KEY_MAX];
101 char prop_value[PROPERTY_VALUE_MAX];
Irfan Sheriff89f58cf2012-05-23 10:30:05 -0700102 /* Interface name after converting p2p0-p2p0-X to p2p to reuse system properties */
103 char p2p_interface[MAX_INTERFACE_LENGTH];
Robert Greenwaltfdd57312013-01-09 16:22:12 -0800104 int x;
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -0800105
Irfan Sheriff89f58cf2012-05-23 10:30:05 -0700106 get_p2p_interface_replacement(interface, p2p_interface);
107
108 snprintf(prop_name, sizeof(prop_name), "%s.%s.ipaddress", DHCP_PROP_NAME_PREFIX, p2p_interface);
Robert Greenwaltfaab26d2011-01-14 14:35:42 -0800109 property_get(prop_name, ipaddr, NULL);
110
Irfan Sheriff89f58cf2012-05-23 10:30:05 -0700111 snprintf(prop_name, sizeof(prop_name), "%s.%s.gateway", DHCP_PROP_NAME_PREFIX, p2p_interface);
Robert Greenwaltfaab26d2011-01-14 14:35:42 -0800112 property_get(prop_name, gateway, NULL);
113
Irfan Sheriff89f58cf2012-05-23 10:30:05 -0700114 snprintf(prop_name, sizeof(prop_name), "%s.%s.server", DHCP_PROP_NAME_PREFIX, p2p_interface);
Irfan Sheriffbdaaec12011-04-15 16:04:24 -0700115 property_get(prop_name, server, NULL);
116
117 //TODO: Handle IPv6 when we change system property usage
Irfan Sheriff94cecfc2012-12-07 10:36:29 -0800118 if (gateway[0] == '\0' || strncmp(gateway, "0.0.0.0", 7) == 0) {
Irfan Sheriffbdaaec12011-04-15 16:04:24 -0700119 //DHCP server is our best bet as gateway
120 strncpy(gateway, server, PROPERTY_VALUE_MAX);
121 }
122
Irfan Sheriff89f58cf2012-05-23 10:30:05 -0700123 snprintf(prop_name, sizeof(prop_name), "%s.%s.mask", DHCP_PROP_NAME_PREFIX, p2p_interface);
Robert Greenwaltfaab26d2011-01-14 14:35:42 -0800124 if (property_get(prop_name, prop_value, NULL)) {
125 int p;
126 // this conversion is v4 only, but this dhcp client is v4 only anyway
127 in_addr_t mask = ntohl(inet_addr(prop_value));
128 // Check netmask is a valid IP address. ntohl gives NONE response (all 1's) for
129 // non 255.255.255.255 inputs. if we get that value check if it is legit..
130 if (mask == INADDR_NONE && strcmp(prop_value, "255.255.255.255") != 0) {
131 snprintf(errmsg, sizeof(errmsg), "DHCP gave invalid net mask %s", prop_value);
132 return -1;
133 }
134 for (p = 0; p < 32; p++) {
135 if (mask == 0) break;
136 // check for non-contiguous netmask, e.g., 255.254.255.0
137 if ((mask & 0x80000000) == 0) {
138 snprintf(errmsg, sizeof(errmsg), "DHCP gave invalid net mask %s", prop_value);
139 return -1;
140 }
141 mask = mask << 1;
142 }
143 *prefixLength = p;
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -0800144 }
Robert Greenwaltfaab26d2011-01-14 14:35:42 -0800145
Robert Greenwaltfdd57312013-01-09 16:22:12 -0800146 for (x=0; dns[x] != NULL; x++) {
147 snprintf(prop_name, sizeof(prop_name), "%s.%s.dns%d", DHCP_PROP_NAME_PREFIX, p2p_interface, x+1);
148 property_get(prop_name, dns[x], NULL);
149 }
Robert Greenwaltfaab26d2011-01-14 14:35:42 -0800150
Irfan Sheriff89f58cf2012-05-23 10:30:05 -0700151 snprintf(prop_name, sizeof(prop_name), "%s.%s.leasetime", DHCP_PROP_NAME_PREFIX, p2p_interface);
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -0800152 if (property_get(prop_name, prop_value, NULL)) {
153 *lease = atol(prop_value);
154 }
Jeff Sharkey0fb8ec82012-04-18 21:54:55 -0700155
Irfan Sheriff89f58cf2012-05-23 10:30:05 -0700156 snprintf(prop_name, sizeof(prop_name), "%s.%s.vendorInfo", DHCP_PROP_NAME_PREFIX,
157 p2p_interface);
Jeff Sharkey0fb8ec82012-04-18 21:54:55 -0700158 property_get(prop_name, vendorInfo, NULL);
159
Robert Greenwalt6ecbdca2012-11-13 10:56:01 -0800160 snprintf(prop_name, sizeof(prop_name), "%s.%s.domain", DHCP_PROP_NAME_PREFIX,
161 p2p_interface);
162 property_get(prop_name, domain, NULL);
163
Dmitry Shmidtbe062102013-07-24 17:37:05 -0700164 snprintf(prop_name, sizeof(prop_name), "%s.%s.mtu", DHCP_PROP_NAME_PREFIX,
165 p2p_interface);
166 property_get(prop_name, mtu, NULL);
167
Robert Greenwaltfaab26d2011-01-14 14:35:42 -0800168 return 0;
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -0800169}
170
171/*
Erik Klinec2291a72015-02-19 19:15:34 +0900172 * Get any available DHCP results.
173 */
174int dhcp_get_results(const char *interface,
175 char *ipaddr,
176 char *gateway,
177 uint32_t *prefixLength,
178 char *dns[],
179 char *server,
180 uint32_t *lease,
181 char *vendorInfo,
182 char *domain,
183 char *mtu)
184{
185 char result_prop_name[PROPERTY_KEY_MAX];
186 char prop_value[PROPERTY_VALUE_MAX];
187
188 /* Interface name after converting p2p0-p2p0-X to p2p to reuse system properties */
189 char p2p_interface[MAX_INTERFACE_LENGTH];
190 get_p2p_interface_replacement(interface, p2p_interface);
191 snprintf(result_prop_name, sizeof(result_prop_name), "%s.%s.result",
192 DHCP_PROP_NAME_PREFIX,
193 p2p_interface);
194
195 memset(prop_value, '\0', PROPERTY_VALUE_MAX);
196 if (!property_get(result_prop_name, prop_value, NULL)) {
197 snprintf(errmsg, sizeof(errmsg), "%s", "DHCP result property was not set");
198 return -1;
199 }
200 if (strcmp(prop_value, "ok") == 0) {
201 if (fill_ip_info(interface, ipaddr, gateway, prefixLength, dns,
202 server, lease, vendorInfo, domain, mtu) == -1) {
203 return -1;
204 }
205 return 0;
206 } else {
207 snprintf(errmsg, sizeof(errmsg), "DHCP result was %s", prop_value);
208 return -1;
209 }
210}
211
212/*
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -0800213 * Start the dhcp client daemon, and wait for it to finish
214 * configuring the interface.
Irfan Sheriff35c28602011-11-09 11:10:50 -0800215 *
216 * The device init.rc file needs a corresponding entry for this work.
217 *
218 * Example:
Dmitry Shmidt62d6f742012-07-23 17:39:30 -0700219 * service dhcpcd_<interface> /system/bin/dhcpcd -ABKL -f dhcpcd.conf
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -0800220 */
Erik Klinec2291a72015-02-19 19:15:34 +0900221int dhcp_start(const char *interface)
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -0800222{
223 char result_prop_name[PROPERTY_KEY_MAX];
TK MUN9d157872011-02-23 18:58:36 +0900224 char daemon_prop_name[PROPERTY_KEY_MAX];
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -0800225 char prop_value[PROPERTY_VALUE_MAX] = {'\0'};
Dmitry Shmidt62d6f742012-07-23 17:39:30 -0700226 char daemon_cmd[PROPERTY_VALUE_MAX * 2 + sizeof(DHCP_CONFIG_PATH)];
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -0800227 const char *ctrl_prop = "ctl.start";
228 const char *desired_status = "running";
Irfan Sheriff89f58cf2012-05-23 10:30:05 -0700229 /* Interface name after converting p2p0-p2p0-X to p2p to reuse system properties */
230 char p2p_interface[MAX_INTERFACE_LENGTH];
repo synca329b422011-07-29 12:07:34 -0700231
Irfan Sheriff89f58cf2012-05-23 10:30:05 -0700232 get_p2p_interface_replacement(interface, p2p_interface);
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -0800233
234 snprintf(result_prop_name, sizeof(result_prop_name), "%s.%s.result",
235 DHCP_PROP_NAME_PREFIX,
Irfan Sheriff89f58cf2012-05-23 10:30:05 -0700236 p2p_interface);
TK MUN9d157872011-02-23 18:58:36 +0900237
238 snprintf(daemon_prop_name, sizeof(daemon_prop_name), "%s_%s",
239 DAEMON_PROP_NAME,
Irfan Sheriff89f58cf2012-05-23 10:30:05 -0700240 p2p_interface);
TK MUN9d157872011-02-23 18:58:36 +0900241
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -0800242 /* Erase any previous setting of the dhcp result property */
243 property_set(result_prop_name, "");
244
245 /* Start the daemon and wait until it's ready */
Dmitry Shmidt9363b7d2009-12-14 15:41:54 -0800246 if (property_get(HOSTNAME_PROP_NAME, prop_value, NULL) && (prop_value[0] != '\0'))
Dmitry Shmidt62d6f742012-07-23 17:39:30 -0700247 snprintf(daemon_cmd, sizeof(daemon_cmd), "%s_%s:-f %s -h %s %s", DAEMON_NAME,
248 p2p_interface, DHCP_CONFIG_PATH, prop_value, interface);
Dmitry Shmidt9363b7d2009-12-14 15:41:54 -0800249 else
Dmitry Shmidt62d6f742012-07-23 17:39:30 -0700250 snprintf(daemon_cmd, sizeof(daemon_cmd), "%s_%s:-f %s %s", DAEMON_NAME,
Matt Gumbelba2ba5c2013-01-04 09:53:42 -0800251 p2p_interface, DHCP_CONFIG_PATH, interface);
Dmitry Shmidt9363b7d2009-12-14 15:41:54 -0800252 memset(prop_value, '\0', PROPERTY_VALUE_MAX);
253 property_set(ctrl_prop, daemon_cmd);
TK MUN9d157872011-02-23 18:58:36 +0900254 if (wait_for_property(daemon_prop_name, desired_status, 10) < 0) {
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -0800255 snprintf(errmsg, sizeof(errmsg), "%s", "Timed out waiting for dhcpcd to start");
256 return -1;
257 }
258
259 /* Wait for the daemon to return a result */
260 if (wait_for_property(result_prop_name, NULL, 30) < 0) {
261 snprintf(errmsg, sizeof(errmsg), "%s", "Timed out waiting for DHCP to finish");
262 return -1;
263 }
264
Erik Klinec2291a72015-02-19 19:15:34 +0900265 return 0;
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -0800266}
267
268/**
269 * Stop the DHCP client daemon.
270 */
271int dhcp_stop(const char *interface)
272{
273 char result_prop_name[PROPERTY_KEY_MAX];
TK MUN9d157872011-02-23 18:58:36 +0900274 char daemon_prop_name[PROPERTY_KEY_MAX];
275 char daemon_cmd[PROPERTY_VALUE_MAX * 2];
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -0800276 const char *ctrl_prop = "ctl.stop";
277 const char *desired_status = "stopped";
278
Irfan Sheriff89f58cf2012-05-23 10:30:05 -0700279 char p2p_interface[MAX_INTERFACE_LENGTH];
repo synca329b422011-07-29 12:07:34 -0700280
Irfan Sheriff89f58cf2012-05-23 10:30:05 -0700281 get_p2p_interface_replacement(interface, p2p_interface);
repo synca329b422011-07-29 12:07:34 -0700282
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -0800283 snprintf(result_prop_name, sizeof(result_prop_name), "%s.%s.result",
284 DHCP_PROP_NAME_PREFIX,
Irfan Sheriff89f58cf2012-05-23 10:30:05 -0700285 p2p_interface);
TK MUN9d157872011-02-23 18:58:36 +0900286
287 snprintf(daemon_prop_name, sizeof(daemon_prop_name), "%s_%s",
288 DAEMON_PROP_NAME,
Irfan Sheriff89f58cf2012-05-23 10:30:05 -0700289 p2p_interface);
TK MUN9d157872011-02-23 18:58:36 +0900290
Irfan Sheriff89f58cf2012-05-23 10:30:05 -0700291 snprintf(daemon_cmd, sizeof(daemon_cmd), "%s_%s", DAEMON_NAME, p2p_interface);
TK MUN9d157872011-02-23 18:58:36 +0900292
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -0800293 /* Stop the daemon and wait until it's reported to be stopped */
TK MUN9d157872011-02-23 18:58:36 +0900294 property_set(ctrl_prop, daemon_cmd);
295 if (wait_for_property(daemon_prop_name, desired_status, 5) < 0) {
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -0800296 return -1;
297 }
298 property_set(result_prop_name, "failed");
299 return 0;
300}
301
302/**
303 * Release the current DHCP client lease.
304 */
305int dhcp_release_lease(const char *interface)
306{
TK MUN9d157872011-02-23 18:58:36 +0900307 char daemon_prop_name[PROPERTY_KEY_MAX];
308 char daemon_cmd[PROPERTY_VALUE_MAX * 2];
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -0800309 const char *ctrl_prop = "ctl.stop";
310 const char *desired_status = "stopped";
311
Irfan Sheriff89f58cf2012-05-23 10:30:05 -0700312 char p2p_interface[MAX_INTERFACE_LENGTH];
repo synca329b422011-07-29 12:07:34 -0700313
Irfan Sheriff89f58cf2012-05-23 10:30:05 -0700314 get_p2p_interface_replacement(interface, p2p_interface);
repo synca329b422011-07-29 12:07:34 -0700315
TK MUN9d157872011-02-23 18:58:36 +0900316 snprintf(daemon_prop_name, sizeof(daemon_prop_name), "%s_%s",
317 DAEMON_PROP_NAME,
Irfan Sheriff89f58cf2012-05-23 10:30:05 -0700318 p2p_interface);
TK MUN9d157872011-02-23 18:58:36 +0900319
Irfan Sheriff89f58cf2012-05-23 10:30:05 -0700320 snprintf(daemon_cmd, sizeof(daemon_cmd), "%s_%s", DAEMON_NAME, p2p_interface);
TK MUN9d157872011-02-23 18:58:36 +0900321
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -0800322 /* Stop the daemon and wait until it's reported to be stopped */
TK MUN9d157872011-02-23 18:58:36 +0900323 property_set(ctrl_prop, daemon_cmd);
324 if (wait_for_property(daemon_prop_name, desired_status, 5) < 0) {
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -0800325 return -1;
326 }
327 return 0;
328}
329
330char *dhcp_get_errmsg() {
331 return errmsg;
332}
TK MUN9d157872011-02-23 18:58:36 +0900333
334/**
Irfan Sheriff35c28602011-11-09 11:10:50 -0800335 * The device init.rc file needs a corresponding entry.
336 *
337 * Example:
338 * service iprenew_<interface> /system/bin/dhcpcd -n
339 *
TK MUN9d157872011-02-23 18:58:36 +0900340 */
Erik Klinec2291a72015-02-19 19:15:34 +0900341int dhcp_start_renew(const char *interface)
TK MUN9d157872011-02-23 18:58:36 +0900342{
343 char result_prop_name[PROPERTY_KEY_MAX];
344 char prop_value[PROPERTY_VALUE_MAX] = {'\0'};
345 char daemon_cmd[PROPERTY_VALUE_MAX * 2];
346 const char *ctrl_prop = "ctl.start";
347
Irfan Sheriff89f58cf2012-05-23 10:30:05 -0700348 char p2p_interface[MAX_INTERFACE_LENGTH];
repo synca329b422011-07-29 12:07:34 -0700349
Irfan Sheriff89f58cf2012-05-23 10:30:05 -0700350 get_p2p_interface_replacement(interface, p2p_interface);
repo synca329b422011-07-29 12:07:34 -0700351
TK MUN9d157872011-02-23 18:58:36 +0900352 snprintf(result_prop_name, sizeof(result_prop_name), "%s.%s.result",
353 DHCP_PROP_NAME_PREFIX,
Irfan Sheriff89f58cf2012-05-23 10:30:05 -0700354 p2p_interface);
TK MUN9d157872011-02-23 18:58:36 +0900355
356 /* Erase any previous setting of the dhcp result property */
357 property_set(result_prop_name, "");
358
359 /* Start the renew daemon and wait until it's ready */
repo synca329b422011-07-29 12:07:34 -0700360 snprintf(daemon_cmd, sizeof(daemon_cmd), "%s_%s:%s", DAEMON_NAME_RENEW,
Irfan Sheriff89f58cf2012-05-23 10:30:05 -0700361 p2p_interface, interface);
TK MUN9d157872011-02-23 18:58:36 +0900362 memset(prop_value, '\0', PROPERTY_VALUE_MAX);
363 property_set(ctrl_prop, daemon_cmd);
364
365 /* Wait for the daemon to return a result */
366 if (wait_for_property(result_prop_name, NULL, 30) < 0) {
367 snprintf(errmsg, sizeof(errmsg), "%s", "Timed out waiting for DHCP Renew to finish");
368 return -1;
369 }
370
Erik Klinec2291a72015-02-19 19:15:34 +0900371 return 0;
TK MUN9d157872011-02-23 18:58:36 +0900372}