Lines Matching refs:szAdpCtl
49 char szAdpCtl[RTPATH_MAX];
50 int rc = RTPathExecDir(szAdpCtl, sizeof(szAdpCtl) - sizeof("/" VBOXNETADPCTL_NAME));
56 strcat(szAdpCtl, "/" VBOXNETADPCTL_NAME);
57 args[0] = szAdpCtl;
58 if (!RTPathExists(szAdpCtl))
61 szAdpCtl));
66 rc = RTProcCreate(szAdpCtl, args, RTENV_DEFAULT, 0, &pid);
78 szAdpCtl));
92 char szAdpCtl[RTPATH_MAX];
93 int rc = RTPathExecDir(szAdpCtl, sizeof(szAdpCtl) - sizeof("/" VBOXNETADPCTL_NAME " ") - strlen(pcszCmd));
99 strcat(szAdpCtl, "/" VBOXNETADPCTL_NAME " ");
100 if (pcszName && strlen(pcszName) <= RTPATH_MAX - strlen(szAdpCtl) - 1 - strlen(pcszCmd))
102 strcat(szAdpCtl, pcszName);
103 strcat(szAdpCtl, " ");
104 strcat(szAdpCtl, pcszCmd);
108 LogRel(("NetIfAdpCtlOut: Command line is too long: %s%s %s\n", szAdpCtl, pcszName, pcszCmd));
111 if (strlen(szAdpCtl) < RTPATH_MAX - sizeof(" 2>&1"))
112 strcat(szAdpCtl, " 2>&1");
113 FILE *fp = popen(szAdpCtl, "r");
204 char szAdpCtl[RTPATH_MAX];
205 int rc = RTPathExecDir(szAdpCtl, sizeof(szAdpCtl) - sizeof("/" VBOXNETADPCTL_NAME " add"));
214 strcat(szAdpCtl, "/" VBOXNETADPCTL_NAME " ");
215 if (pcszName && strlen(pcszName) <= RTPATH_MAX - strlen(szAdpCtl) - sizeof(" add"))
217 strcat(szAdpCtl, pcszName);
218 strcat(szAdpCtl, " add");
221 strcat(szAdpCtl, "add");
222 if (strlen(szAdpCtl) < RTPATH_MAX - sizeof(" 2>&1"))
223 strcat(szAdpCtl, " 2>&1");
224 FILE *fp = popen(szAdpCtl, "r");