Lines Matching defs:netspec

132 	char	*netspec = NULL;	/* set to the network specification */
138 FILE *fp; /* used for checking netspec */
200 if ( flag || svcptr || Quietflag || comptr || idptr || netspec )
250 if ( flag || svcptr || Quietflag || netspec || comptr
270 || netspec || svcptr || idptr || comptr )
276 || netspec || svcptr || idptr || comptr || addrptr
282 if ( netspec )
284 netspec = optarg;
288 || netspec || svcptr || idptr || comptr )
313 if ( flag || svcptr || Quietflag || comptr || netspec
324 if ((optind < argc) && ! netspec)
325 netspec = argv[optind++];
330 /* determine if this command requires a netspec */
332 /* if flag is CMDFLAG, more complicated checking of netspec
336 if (netspec)
339 else if (!netspec)
343 if (netspec && (flag != INIFLAG)) {
344 sprintf(buf, SAC_LSPM, netspec);
361 sprintf(mesg, "Network specification \"%s\" is not of type %s", netspec, LISTENTYPE);
390 exitcode = prt_nets(netspec);
395 exitcode = add_pm(netspec);
398 if ( svcptr || comptr || idptr || netspec ) {
401 if ((exitcode = old_addsvc(svcptr, "", cmdptr, comptr, moduleptr, idptr, NULL, netspec)) != NLS_OK)
412 if (netspec)
429 exitcode = disable_svc(svcptr, netspec);
434 exitcode = enable_svc(svcptr, netspec);
439 exitcode = kill_listener(netspec);
443 exitcode = setup_addr(lptr, tptr, netspec);
448 exitcode = remove_svc(svcptr, netspec, TRUE);
453 exitcode = start_listener(netspec);
456 exitcode = prt_svcs(NULL, netspec);
462 exitcode = prt_svcs(svcptr, netspec);
472 %s [ options ] netspec\n\
584 char *id, char *flags, char *netspec)
592 if (!svc || !cmd || !com || !netspec)
623 sprintf(buf, PM_ADDSVCF, netspec, svc, (id)?id:DEFAULTID, flags, mesgbuf, VERSION, com ? com : "");
625 sprintf(buf, PM_ADDSVC, netspec, svc, (id)?id:DEFAULTID, mesgbuf, VERSION, com ? com : "");
658 * prt_nets: print the status of one network, or all nets if netspec
662 prt_nets(char *netspec)
672 if (netspec == NULL)
675 sprintf(buf, SAC_LSPM, netspec);
710 if (netspec && !found) {
715 if (netspec)
724 * print info about service on netspec, or all services on netspec
729 prt_svcs(char *svc, char *netspec)
740 sprintf(buf, PM_LSALL, netspec);
742 sprintf(buf, PM_LSONE, netspec, svc);
796 sprintf(mesg, "Network specification \"%s\" is not of type %s", netspec, LISTENTYPE);
816 disable_svc(char *svc, char *netspec)
821 sprintf(buf, PM_DISABLE, netspec, svc);
856 enable_svc(char *svc, char *netspec)
861 sprintf(buf, PM_ENABLE, netspec, svc);
896 remove_svc(char *svc, char *netspec, int printerrors)
901 sprintf(buf, PM_REMSVC, netspec, svc);
937 kill_listener(char *netspec)
943 sprintf(buf, SAC_KILLPM, netspec);
965 sprintf(mesg, "No listener active on network \"%s\"", netspec);
985 add_pm(char *netspec)
991 sprintf(buf, SAC_ADDPM, netspec, LISTENTYPE, gencmdstr(netspec), VERSION);
1000 old_addsvc(NLPSSVCCODE, NULL, NLPSSRV, "NLPS server", "", "root", NULL, netspec);
1032 gencmdstr(char *netspec)
1037 if (!strcmp(netspec, "starlan"))
1040 (void) strcat(buf, netspec);
1050 start_listener(char *netspec)
1056 sprintf(buf, SAC_STARTPM, netspec);
1086 sprintf(buf, SAC_ENABLPM, netspec);
1128 setup_addr(char *laddr, char *taddr, char *netspec)
1146 sprintf(buf, PM_LSONE, netspec, NLPSSVCCODE);
1175 remove_svc(NLPSSVCCODE, netspec, FALSE);
1179 old_addsvc(NLPSSVCCODE, laddr, entry.command, entry.comment, entry.modules, entry.id, entry.flags, netspec);
1188 sprintf(buf, PM_LSONE, netspec, TTYSVCCODE);
1217 remove_svc(TTYSVCCODE, netspec, FALSE);
1221 old_addsvc(TTYSVCCODE, taddr, entry.command, entry.comment, entry.modules, entry.id, entry.flags, netspec);