Intercept.c 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545
  1. /*
  2. * ZeroTier One - Network Virtualization Everywhere
  3. * Copyright (C) 2011-2015 ZeroTier, Inc.
  4. *
  5. * This program is free software: you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation, either version 3 of the License, or
  8. * (at your option) any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. *
  18. * --
  19. *
  20. * ZeroTier may be used and distributed under the terms of the GPLv3, which
  21. * are available at: http://www.gnu.org/licenses/gpl-3.0.html
  22. *
  23. * If you would like to embed ZeroTier into a commercial application or
  24. * redistribute it in a modified binary form, please contact ZeroTier Networks
  25. * LLC. Start here: http://www.zerotier.com/
  26. */
  27. #ifdef USE_GNU_SOURCE
  28. #define _GNU_SOURCE
  29. #endif
  30. #include <unistd.h>
  31. #include <stdint.h>
  32. #include <stdio.h>
  33. #include <dlfcn.h>
  34. #include <strings.h>
  35. #include <netinet/in.h>
  36. #include <sys/time.h>
  37. #include <pwd.h>
  38. #include <errno.h>
  39. #include <linux/errno.h>
  40. #include <stdarg.h>
  41. #include <netdb.h>
  42. #include <string.h>
  43. #include <sys/syscall.h>
  44. #include <sys/types.h>
  45. #include <sys/socket.h>
  46. #include <sys/poll.h>
  47. #include <sys/un.h>
  48. #include <arpa/inet.h>
  49. #include <sys/resource.h>
  50. #include <linux/net.h> /* for NPROTO */
  51. #define SOCK_MAX (SOCK_PACKET + 1)
  52. #define SOCK_TYPE_MASK 0xf
  53. #include "Intercept.h"
  54. #include "RPC.h"
  55. #include "common.inc.c"
  56. /*------------------------------------------------------------------------------
  57. ------------------- Intercept<--->Service Comm mechanisms ----------------------
  58. ------------------------------------------------------------------------------*/
  59. static char *netpath = (char *)0;
  60. /* Check whether the socket is mapped to the service or not. We
  61. need to know if this is a regular AF_LOCAL socket or an end of a socketpair
  62. that the service uses. We don't want to keep state in the intercept, so
  63. we simply ask the service via an RPC */
  64. static int connected_to_service(int sockfd)
  65. {
  66. dwr(MSG_DEBUG,"connected_to_service():\n");
  67. socklen_t len;
  68. struct sockaddr_storage addr;
  69. len = sizeof addr;
  70. struct sockaddr_un * addr_un;
  71. getpeername(sockfd, (struct sockaddr*)&addr, &len);
  72. if (addr.ss_family == AF_LOCAL || addr.ss_family == AF_LOCAL) {
  73. addr_un = (struct sockaddr_un*)&addr;
  74. if(strcmp(addr_un->sun_path, netpath) == 0) {
  75. dwr(MSG_DEBUG,"connected_to_service(): Yes, %s\n", addr_un->sun_path);
  76. return 1;
  77. }
  78. }
  79. dwr(MSG_DEBUG,"connected_to_service(): Not connected to service\n");
  80. return 0;
  81. }
  82. /* get symbols and initialize mutexes */
  83. static int set_up_intercept()
  84. {
  85. if (!realconnect) {
  86. realconnect = dlsym(RTLD_NEXT, "connect");
  87. realbind = dlsym(RTLD_NEXT, "bind");
  88. realaccept = dlsym(RTLD_NEXT, "accept");
  89. reallisten = dlsym(RTLD_NEXT, "listen");
  90. realsocket = dlsym(RTLD_NEXT, "socket");
  91. realbind = dlsym(RTLD_NEXT, "bind");
  92. realsetsockopt = dlsym(RTLD_NEXT, "setsockopt");
  93. realgetsockopt = dlsym(RTLD_NEXT, "getsockopt");
  94. realaccept4 = dlsym(RTLD_NEXT, "accept4");
  95. realclose = dlsym(RTLD_NEXT, "close");
  96. realsyscall = dlsym(RTLD_NEXT, "syscall");
  97. realgetsockname = dlsym(RTLD_NEXT, "getsockname");
  98. }
  99. if (!netpath) {
  100. netpath = getenv("ZT_NC_NETWORK");
  101. if (!netpath)
  102. return 0;
  103. dwr(MSG_DEBUG,"Connecting to service at: %s\n", netpath);
  104. /* Hook/intercept Posix net API symbols */
  105. rpc_mutex_init();
  106. }
  107. return 1;
  108. }
  109. /*------------------------------------------------------------------------------
  110. --------------------------------- setsockopt() ---------------------------------
  111. ------------------------------------------------------------------------------*/
  112. /* int socket, int level, int option_name, const void *option_value, socklen_t option_len */
  113. int setsockopt(SETSOCKOPT_SIG)
  114. {
  115. if (!set_up_intercept())
  116. return realsetsockopt(socket, level, option_name, option_value, option_len);
  117. dwr(MSG_DEBUG,"setsockopt(%d)\n", socket);
  118. if(level == SOL_IPV6 && option_name == IPV6_V6ONLY)
  119. return 0;
  120. if(level == SOL_IP && (option_name == IP_TTL || option_name == IP_TOS))
  121. return 0;
  122. if(level == IPPROTO_TCP || (level == SOL_SOCKET && option_name == SO_KEEPALIVE))
  123. return 0;
  124. if(realsetsockopt(socket, level, option_name, option_value, option_len) < 0)
  125. perror("setsockopt():\n");
  126. return 0;
  127. }
  128. /*------------------------------------------------------------------------------
  129. --------------------------------- getsockopt() ---------------------------------
  130. ------------------------------------------------------------------------------*/
  131. /* int sockfd, int level, int optname, void *optval, socklen_t *optlen */
  132. int getsockopt(GETSOCKOPT_SIG)
  133. {
  134. dwr(MSG_DEBUG,"getsockopt(%d)\n", sockfd);
  135. if (!set_up_intercept() || !connected_to_service(sockfd))
  136. return realgetsockopt(sockfd, level, optname, optval, optlen);
  137. if(optname == SO_TYPE) {
  138. int* val = (int*)optval;
  139. *val = 2;
  140. optval = (void*)val;
  141. }
  142. return 0;
  143. }
  144. /*------------------------------------------------------------------------------
  145. ----------------------------------- socket() -----------------------------------
  146. ------------------------------------------------------------------------------*/
  147. /* int socket_family, int socket_type, int protocol
  148. socket() intercept function */
  149. int socket(SOCKET_SIG)
  150. {
  151. if (!set_up_intercept())
  152. return realsocket(socket_family, socket_type, protocol);
  153. dwr(MSG_DEBUG,"socket():\n");
  154. /* Check that type makes sense */
  155. int flags = socket_type & ~SOCK_TYPE_MASK;
  156. if (flags & ~(SOCK_CLOEXEC | SOCK_NONBLOCK)) {
  157. errno = EINVAL;
  158. return -1;
  159. }
  160. socket_type &= SOCK_TYPE_MASK;
  161. /* Check protocol is in range */
  162. if (socket_family < 0 || socket_family >= NPROTO){
  163. errno = EAFNOSUPPORT;
  164. return -1;
  165. }
  166. if (socket_type < 0 || socket_type >= SOCK_MAX) {
  167. errno = EINVAL;
  168. return -1;
  169. }
  170. /* TODO: detect ENFILE condition */
  171. if(socket_family == AF_LOCAL
  172. || socket_family == AF_NETLINK
  173. || socket_family == AF_UNIX) {
  174. int err = realsocket(socket_family, socket_type, protocol);
  175. dwr(MSG_DEBUG,"realsocket() = %d\n", err);
  176. return err;
  177. }
  178. /* Assemble and send RPC */
  179. struct socket_st rpc_st;
  180. rpc_st.socket_family = socket_family;
  181. rpc_st.socket_type = socket_type;
  182. rpc_st.protocol = protocol;
  183. rpc_st.__tid = syscall(SYS_gettid);
  184. /* -1 is passed since we we're generating the new socket in this call */
  185. return rpc_send_command(netpath, RPC_SOCKET, -1, &rpc_st, sizeof(struct socket_st));
  186. }
  187. /*------------------------------------------------------------------------------
  188. ---------------------------------- connect() -----------------------------------
  189. ------------------------------------------------------------------------------*/
  190. /* int __fd, const struct sockaddr * __addr, socklen_t __len
  191. connect() intercept function */
  192. int connect(CONNECT_SIG)
  193. {
  194. if (!set_up_intercept())
  195. return realconnect(__fd, __addr, __len);
  196. struct sockaddr_in *connaddr;
  197. connaddr = (struct sockaddr_in *)__addr;
  198. if(__addr->sa_family == AF_LOCAL || __addr->sa_family == AF_UNIX) {
  199. struct sockaddr_storage storage;
  200. memcpy(&storage, __addr, __len);
  201. struct sockaddr_un *s_un = (struct sockaddr_un*)&storage;
  202. dwr(MSG_DEBUG, "connect(): address = %s\n", s_un->sun_path);
  203. }
  204. int port = connaddr->sin_port;
  205. int ip = connaddr->sin_addr.s_addr;
  206. unsigned char d[4];
  207. d[0] = ip & 0xFF;
  208. d[1] = (ip >> 8) & 0xFF;
  209. d[2] = (ip >> 16) & 0xFF;
  210. d[3] = (ip >> 24) & 0xFF;
  211. dwr(MSG_DEBUG,"connect(): %d.%d.%d.%d: %d\n", d[0],d[1],d[2],d[3], ntohs(port));
  212. dwr(MSG_DEBUG,"connect(%d):\n", __fd);
  213. /* Check that this is a valid fd */
  214. if(fcntl(__fd, F_GETFD) < 0) {
  215. errno = EBADF;
  216. return -1;
  217. }
  218. /* Check that it is a socket */
  219. int sock_type;
  220. socklen_t sock_type_len = sizeof(sock_type);
  221. if(getsockopt(__fd, SOL_SOCKET, SO_TYPE, (void *) &sock_type, &sock_type_len) < 0) {
  222. errno = ENOTSOCK;
  223. return -1;
  224. }
  225. /* Check family */
  226. if (connaddr->sin_family < 0 || connaddr->sin_family >= NPROTO){
  227. errno = EAFNOSUPPORT;
  228. return -1;
  229. }
  230. /* make sure we don't touch any standard outputs */
  231. if(__fd == STDIN_FILENO || __fd == STDOUT_FILENO || __fd == STDERR_FILENO)
  232. return(realconnect(__fd, __addr, __len));
  233. if(__addr != NULL && (connaddr->sin_family == AF_LOCAL
  234. || connaddr->sin_family == PF_NETLINK
  235. || connaddr->sin_family == AF_NETLINK
  236. || connaddr->sin_family == AF_UNIX)) {
  237. return realconnect(__fd, __addr, __len);
  238. }
  239. /* Assemble and send RPC */
  240. struct connect_st rpc_st;
  241. rpc_st.__tid = syscall(SYS_gettid);
  242. rpc_st.__fd = __fd;
  243. memcpy(&rpc_st.__addr, __addr, sizeof(struct sockaddr_storage));
  244. memcpy(&rpc_st.__len, &__len, sizeof(socklen_t));
  245. return rpc_send_command(netpath, RPC_CONNECT, __fd, &rpc_st, sizeof(struct connect_st));
  246. }
  247. /*------------------------------------------------------------------------------
  248. ------------------------------------ bind() ------------------------------------
  249. ------------------------------------------------------------------------------*/
  250. /* int sockfd, const struct sockaddr *addr, socklen_t addrlen
  251. bind() intercept function */
  252. int bind(BIND_SIG)
  253. {
  254. if (!set_up_intercept())
  255. return realbind(sockfd, addr, addrlen);
  256. dwr(MSG_DEBUG,"bind(%d):\n", sockfd);
  257. /* Check that this is a valid fd */
  258. if(fcntl(sockfd, F_GETFD) < 0) {
  259. errno = EBADF;
  260. return -1;
  261. }
  262. /* Check that it is a socket */
  263. int opt = -1;
  264. socklen_t opt_len;
  265. if(getsockopt(sockfd, SOL_SOCKET, SO_TYPE, (void *) &opt, &opt_len) < 0) {
  266. errno = ENOTSOCK;
  267. return -1;
  268. }
  269. /* make sure we don't touch any standard outputs */
  270. if(sockfd == STDIN_FILENO || sockfd == STDOUT_FILENO || sockfd == STDERR_FILENO)
  271. return(realbind(sockfd, addr, addrlen));
  272. /* If local, just use normal syscall */
  273. struct sockaddr_in *connaddr;
  274. connaddr = (struct sockaddr_in *)addr;
  275. if(connaddr->sin_family == AF_LOCAL
  276. || connaddr->sin_family == AF_NETLINK
  277. || connaddr->sin_family == AF_UNIX) {
  278. int err = realbind(sockfd, addr, addrlen);
  279. dwr(MSG_DEBUG,"realbind, err = %d\n", err);
  280. return err;
  281. }
  282. int port = connaddr->sin_port;
  283. int ip = connaddr->sin_addr.s_addr;
  284. unsigned char d[4];
  285. d[0] = ip & 0xFF;
  286. d[1] = (ip >> 8) & 0xFF;
  287. d[2] = (ip >> 16) & 0xFF;
  288. d[3] = (ip >> 24) & 0xFF;
  289. dwr(MSG_DEBUG,"bind(): %d.%d.%d.%d: %d\n", d[0],d[1],d[2],d[3], ntohs(port));
  290. /* Assemble and send RPC */
  291. struct bind_st rpc_st;
  292. rpc_st.sockfd = sockfd;
  293. rpc_st.__tid = syscall(SYS_gettid);
  294. memcpy(&rpc_st.addr, addr, sizeof(struct sockaddr_storage));
  295. memcpy(&rpc_st.addrlen, &addrlen, sizeof(socklen_t));
  296. return rpc_send_command(netpath, RPC_BIND, sockfd, &rpc_st, sizeof(struct bind_st));
  297. }
  298. /*------------------------------------------------------------------------------
  299. ----------------------------------- accept4() ----------------------------------
  300. ------------------------------------------------------------------------------*/
  301. /* int sockfd, struct sockaddr *addr, socklen_t *addrlen, int flags */
  302. int accept4(ACCEPT4_SIG)
  303. {
  304. dwr(MSG_DEBUG,"accept4(%d):\n", sockfd);
  305. if ((flags & SOCK_CLOEXEC))
  306. fcntl(sockfd, F_SETFL, FD_CLOEXEC);
  307. if ((flags & SOCK_NONBLOCK))
  308. fcntl(sockfd, F_SETFL, O_NONBLOCK);
  309. return accept(sockfd, addr, addrlen);
  310. }
  311. /*------------------------------------------------------------------------------
  312. ----------------------------------- accept() -----------------------------------
  313. ------------------------------------------------------------------------------*/
  314. /* int sockfd struct sockaddr *addr, socklen_t *addrlen
  315. accept() intercept function */
  316. int accept(ACCEPT_SIG)
  317. {
  318. if (!set_up_intercept())
  319. return realaccept(sockfd, addr, addrlen);
  320. dwr(MSG_DEBUG,"accept(%d):\n", sockfd);
  321. /* Check that this is a valid fd */
  322. if(fcntl(sockfd, F_GETFD) < 0) {
  323. return -1;
  324. errno = EBADF;
  325. dwr(MSG_DEBUG,"EBADF\n");
  326. return -1;
  327. }
  328. /* Check that it is a socket */
  329. int opt;
  330. socklen_t opt_len;
  331. if(getsockopt(sockfd, SOL_SOCKET, SO_TYPE, (void *) &opt, &opt_len) < 0) {
  332. errno = ENOTSOCK;
  333. dwr(MSG_DEBUG,"ENOTSOCK\n");
  334. return -1;
  335. }
  336. /* Check that this socket supports accept() */
  337. if(!(opt && (SOCK_STREAM | SOCK_SEQPACKET))) {
  338. errno = EOPNOTSUPP;
  339. dwr(MSG_DEBUG,"EOPNOTSUPP\n");
  340. return -1;
  341. }
  342. /* Check that we haven't hit the soft-limit file descriptors allowed */
  343. struct rlimit rl;
  344. getrlimit(RLIMIT_NOFILE, &rl);
  345. if(sockfd >= rl.rlim_cur){
  346. errno = EMFILE;
  347. dwr(MSG_DEBUG,"EMFILE\n");
  348. return -1;
  349. }
  350. /* Check address length */
  351. if(addrlen < 0) {
  352. errno = EINVAL;
  353. dwr(MSG_DEBUG,"EINVAL\n");
  354. return -1;
  355. }
  356. /* redirect calls for standard I/O descriptors to kernel */
  357. if(sockfd == STDIN_FILENO || sockfd == STDOUT_FILENO || sockfd == STDERR_FILENO){
  358. dwr(MSG_DEBUG,"realaccept():\n");
  359. return(realaccept(sockfd, addr, addrlen));
  360. }
  361. if(addr)
  362. addr->sa_family = AF_INET;
  363. int new_fd = get_new_fd(sockfd);
  364. if(new_fd > 0) {
  365. errno = ERR_OK;
  366. return new_fd;
  367. }
  368. errno = EAGAIN;
  369. return -EAGAIN;
  370. }
  371. /*------------------------------------------------------------------------------
  372. ------------------------------------- listen()----------------------------------
  373. ------------------------------------------------------------------------------*/
  374. /* int sockfd, int backlog */
  375. int listen(LISTEN_SIG)
  376. {
  377. if (!set_up_intercept())
  378. return(reallisten(sockfd, backlog));
  379. dwr(MSG_DEBUG,"listen(%d):\n", sockfd);
  380. int sock_type;
  381. socklen_t sock_type_len = sizeof(sock_type);
  382. /* Check that this is a valid fd */
  383. if(fcntl(sockfd, F_GETFD) < 0) {
  384. errno = EBADF;
  385. return -1;
  386. }
  387. /* Check that it is a socket */
  388. if(getsockopt(sockfd, SOL_SOCKET, SO_TYPE, (void *) &sock_type, &sock_type_len) < 0) {
  389. errno = ENOTSOCK;
  390. return -1;
  391. }
  392. /* Check that this socket supports accept() */
  393. if(!(sock_type && (SOCK_STREAM | SOCK_SEQPACKET))) {
  394. errno = EOPNOTSUPP;
  395. return -1;
  396. }
  397. /* make sure we don't touch any standard outputs */
  398. if(sockfd == STDIN_FILENO || sockfd == STDOUT_FILENO || sockfd == STDERR_FILENO)
  399. return(reallisten(sockfd, backlog));
  400. if(!connected_to_service(sockfd)) {
  401. reallisten(sockfd, backlog);
  402. }
  403. /* Assemble and send RPC */
  404. struct listen_st rpc_st;
  405. rpc_st.sockfd = sockfd;
  406. rpc_st.backlog = backlog;
  407. rpc_st.__tid = syscall(SYS_gettid);
  408. return rpc_send_command(netpath, RPC_LISTEN, sockfd, &rpc_st, sizeof(struct listen_st));
  409. }
  410. /*------------------------------------------------------------------------------
  411. ------------------------------------- close() ----------------------------------
  412. ------------------------------------------------------------------------------*/
  413. /* int fd */
  414. int close(CLOSE_SIG)
  415. {
  416. dwr(MSG_DEBUG, "close(%d)\n", fd);
  417. set_up_intercept();
  418. return realclose(fd);
  419. }
  420. /*------------------------------------------------------------------------------
  421. -------------------------------- getsockname() ---------------------------------
  422. ------------------------------------------------------------------------------*/
  423. /* int sockfd, struct sockaddr *addr, socklen_t *addrlen */
  424. int getsockname(GETSOCKNAME_SIG)
  425. {
  426. if (!set_up_intercept())
  427. return realgetsockname(sockfd, addr, addrlen);
  428. dwr(MSG_DEBUG,"getsockname(%d)\n", sockfd);
  429. if(!connected_to_service(sockfd)) {
  430. dwr(MSG_DEBUG,"getsockname(): not used by service\n");
  431. return realgetsockname(sockfd, addr, addrlen);
  432. }
  433. /* This is kind of a hack as it stands -- assumes sockaddr is sockaddr_in
  434. * and is an IPv4 address. */
  435. /* assemble and send command */
  436. struct getsockname_st rpc_st;
  437. rpc_st.sockfd = sockfd;
  438. memcpy(&rpc_st.addr, addr, *addrlen);
  439. memcpy(&rpc_st.addrlen, &addrlen, sizeof(socklen_t));
  440. int rpcfd = rpc_send_command(netpath, RPC_GETSOCKNAME, sockfd, &rpc_st, sizeof(struct getsockname_st));
  441. /* read address info from service */
  442. char addrbuf[sizeof(struct sockaddr_storage)];
  443. memset(&addrbuf, 0, sizeof(struct sockaddr_storage));
  444. if(rpcfd > -1)
  445. if(read(rpcfd, &addrbuf, sizeof(struct sockaddr_storage)) > 0)
  446. close(rpcfd);
  447. struct sockaddr_storage sock_storage;
  448. memcpy(&sock_storage, addrbuf, sizeof(struct sockaddr_storage));
  449. *addrlen = sizeof(struct sockaddr_in);
  450. memcpy(addr, &sock_storage, (*addrlen > sizeof(sock_storage)) ? sizeof(sock_storage) : *addrlen);
  451. addr->sa_family = AF_INET;
  452. return 0;
  453. }
  454. /*------------------------------------------------------------------------------
  455. ------------------------------------ syscall() ---------------------------------
  456. ------------------------------------------------------------------------------*/
  457. long syscall(SYSCALL_SIG)
  458. {
  459. va_list ap;
  460. uintptr_t a,b,c,d,e,f;
  461. va_start(ap, number);
  462. a=va_arg(ap, uintptr_t);
  463. b=va_arg(ap, uintptr_t);
  464. c=va_arg(ap, uintptr_t);
  465. d=va_arg(ap, uintptr_t);
  466. e=va_arg(ap, uintptr_t);
  467. f=va_arg(ap, uintptr_t);
  468. va_end(ap);
  469. if (!set_up_intercept())
  470. return realsyscall(number,a,b,c,d,e,f);
  471. dwr(MSG_DEBUG_EXTRA,"syscall(%u, ...):\n", number);
  472. #if defined(__i386__)
  473. /* TODO: Implement for 32-bit systems: syscall(__NR_socketcall, 18, args);
  474. args[0] = (unsigned long) fd;
  475. args[1] = (unsigned long) addr;
  476. args[2] = (unsigned long) addrlen;
  477. args[3] = (unsigned long) flags;
  478. */
  479. #else
  480. if(number == __NR_accept4) {
  481. int sockfd = a;
  482. struct sockaddr * addr = (struct sockaddr*)b;
  483. socklen_t * addrlen = (socklen_t*)c;
  484. int flags = d;
  485. int old_errno = errno;
  486. int err = accept4(sockfd, addr, addrlen, flags);
  487. errno = old_errno;
  488. err = err == -EBADF ? -EAGAIN : err;
  489. return err;
  490. }
  491. #endif
  492. return realsyscall(number,a,b,c,d,e,f);
  493. }