Lines Matching refs:ngc
90 int cs, int ds, int debug, struct ngm_connect *ngc)
215 snprintf(ngc->path, sizeof ngc->path, "%s%s", epath, NG_ETHER_HOOK_ORPHAN);
216 snprintf(ngc->ourhook, sizeof ngc->ourhook, "pppoe-%ld", (long)getpid());
217 memcpy(ngc->peerhook, ngc->ourhook, sizeof ngc->peerhook);
220 NGM_CONNECT, ngc, sizeof *ngc) < 0) {
228 snprintf(data->hook, sizeof data->hook, "%s", ngc->peerhook);
232 spath = (char *)alloca(strlen(ngc->peerhook) + 3);
234 strcpy(spath + 2, ngc->ourhook);
256 const char *exec, struct ngm_connect ngc, int cs, int ds, void *request,
295 snprintf(ngc.ourhook, sizeof ngc.ourhook, "exec-%ld", (long)getpid());
296 memcpy(ngc.peerhook, ngc.ourhook, sizeof ngc.peerhook);
300 ngc.ourhook, ngc.path, ngc.peerhook);
302 NGM_CONNECT, &ngc, sizeof ngc) < 0) {
322 snprintf(data->hook, sizeof data->hook, "%s", ngc.ourhook);
326 path = (char *)alloca(strlen(ngc.ourhook) + 3);
328 strcpy(path + 2, ngc.ourhook);
341 snprintf(data->hook, sizeof data->hook, "%s", ngc.ourhook);
367 if (NgSendData(ds, ngc.ourhook, request, sz) == -1) {
505 struct ngm_connect ngc;
605 /* Connect it up (and fill in `ngc') */
607 optd, &ngc)) != 0) {
676 Spawn(prog, acname, provider, exec, ngc, cs, ds, response, sz, optd);