reconnect.c
imports <sys/socket.h>Network destination assigned from call
SHA-256017aeea433662662c92dee2b035118c523e4413b974f8c015a0f0935fcd59791
MaleculeH(Cm)Md(In)
Evidence
⋯5 lines
6 */
7
8#include <sys/dnv.h>
9#include <sys/nv.h>
10#include <sys/socket.h>
11#include <err.h>
12#include <libnvmf.h>
13#include <stdlib.h>
14#include <string.h>
15#include <sysexits.h>
16#include <unistd.h>
17
18#include "nvmecontrol.h"
19#include "fabrics.h"
20
21/*
⋯5 lines
134:34… "dle", NULL);
135
136 hostnqn = opt.hostnqn;
137 if (hostnqn == NULL)
138 hostnqn = nvmf_default_hostnqn();
139
140 /* Ensure subnqn is a terminated C string. */
141 subnqn = strndup(dle->subnqn, sizeof(dle->subnqn));
142
143 error = reconnect_nvm_ …
193:10… (EX_UNAVAILABLE);
194 }
195
196 /* Ensure address, port, and subnqn is a terminated C string. */
197 address = strndup(dle->traddr, sizeof(dle->traddr));
198 port …
276:47… ms);
277 if (error != 0)
278 exit(error);
279
280 /* Check for optional address. */
281 if (optind < argc)
282 error = reconnect_by_address(fd, rparams, argv[optin …