Home
last modified time | relevance | path

Searched refs:slprintf (Results 1 – 19 of 19) sorted by relevance

/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/
H A Dmultilink.c128 p += slprintf(p, l-1, "BUNDLE=\"%q\"", peer_authname); in mp_join_bundle()
130 p += slprintf(p, bundle_id+l-p, "%s", epdisc_to_str(&ho->endpoint)); in mp_join_bundle()
132 p += slprintf(p, bundle_id+l-p, "/%v", bundle_name); in mp_join_bundle()
223 (void) slprintf(ifkey, sizeof(ifkey), "IFNAME=ppp%d", unit);
289 (void) slprintf(str, sizeof(str), "IP:%I", htonl(addr));
301 q += slprintf(q, sizeof(str)-1, "%s",
304 q += slprintf(q, sizeof(str)-1, "%d", ep->class);
311 q += slprintf(q, str + sizeof(str) - q, "%.2x", ep->value[i]);
H A Dutils.c106 slprintf __V((char *buf, int buflen, const char *fmt, ...)) in slprintf() function
331 (void) slprintf(num, sizeof(num), "%d.%d.%d.%d", (ip >> 24) & 0xff,
799 (void) slprintf(msgbuf, sizeof (msgbuf), "Code#%d", code); in code_name()
801 (void) slprintf(msgbuf, sizeof (msgbuf), "unknown code %d", code); in code_name()
860 (void) slprintf(lock_file, sizeof(lock_file), "%s/LK.%03d.%03d.%03d",
868 (void) slprintf(lock_file, sizeof(lock_file), "%s/LCK..%s", LOCK_DIR, dev);
923 (void) slprintf(lock_buffer, sizeof(lock_buffer), "%10d\n", pid);
965 (void) slprintf(lock_buffer, sizeof(lock_buffer), "%10d\n", pid);
H A Dmain.c335 (void) slprintf(numbuf, sizeof(numbuf), "%d", uid);
511 (void) slprintf(db_key, sizeof(db_key), "pppd%d", getpid());
543 (void) slprintf(numbuf, sizeof(numbuf), "%d", getpid());
824 (void) slprintf(numbuf, sizeof(numbuf), "%d", baud_rate);
1378 (void) slprintf(buf, sizeof (buf), "unknown %d", pval);
1583 (void) slprintf(numbuf, sizeof(numbuf), "%" PPP_COUNTER_F,
1586 (void) slprintf(numbuf, sizeof(numbuf), "%" PPP_COUNTER_F,
1589 (void) slprintf(numbuf, sizeof(numbuf), "%" PPP_COUNTER_F,
1592 (void) slprintf(numbuf, sizeof(numbuf), "%" PPP_COUNTER_F,
2283 (void) slprintf(newstring, vl, "%s=%s", var, value);
[all …]
H A Dchap.c122 (void) slprintf(buf, sizeof(buf), "#%d", clientstate); in chap_cstate()
135 (void) slprintf(buf, sizeof(buf), "#%d", serverstate); in chap_sstate()
829 (void) slprintf(msg, sizeof(msg), "Welcome to %s.", hostname);
831 (void) slprintf(msg, sizeof(msg), "I don't like you. Go 'way.");
H A Doptions.c573 (void) slprintf(path, pl, "%s/%s", user, file); in options_from_user()
600 (void) slprintf(path, pl, "%s%s", _PATH_TTYOPT, dev); in options_for_tty()
975 (void) slprintf(opt_str, sizeof(opt_str), "%s", opt->name); \
1126 i = slprintf(buf, sizeof(buf), "%s:%d", option_source, option_line); in option_error()
1450 (void) slprintf(buf, sizeof (buf), "%s:%d", info->source, info->line);
1527 (void) slprintf(fname, l, "%s%s", _PATH_PEERFILES, arg);
H A Dccp.c1177 (void) slprintf(result, sizeof(result), "Deflate%s (%d/%d)",
1181 (void) slprintf(result, sizeof(result), "Deflate%s (%d)",
1187 (void) slprintf(result, sizeof(result), "BSD-Compress (%d/%d)",
1190 (void) slprintf(result, sizeof(result), "BSD-Compress (%d)",
1206 (void) slprintf(result, sizeof(result), "Method %d", opt->method);
H A Dipcp.c241 (void) slprintf(b, sizeof(b), "%I", ipaddr);
1729 (void) slprintf(strspeed, sizeof(strspeed), "%d", baud_rate);
1730 (void) slprintf(strlocal, sizeof(strlocal), "%I",
1732 (void) slprintf(strremote, sizeof(strremote), "%I",
1958 (void) slprintf(buf, sizeof (buf), "IP proto %d", val);
H A Dupap.c110 (void) slprintf(buf, sizeof (buf), "Cli#%d", clientstate);
124 (void) slprintf(buf, sizeof (buf), "Srv#%d", serverstate);
H A Ddemand.c369 (void) slprintf(pbuf, sizeof (pbuf), "0x#X", proto);
H A Dauth.c1081 (void) slprintf(passwd, sizeof(passwd), "%.*v", passwdlen, apasswd);
1082 (void) slprintf(user, sizeof(user), "%.*v", userlen, auser);
2158 (void) slprintf(struid, sizeof(struid), "%d", getuid());
2161 (void) slprintf(strspeed, sizeof(strspeed), "%d", baud_rate);
H A Dsys-solaris.c256 (void) slprintf(ifname, sizeof (ifname), "%s%d", cp, ifunit); in sys_ifname()
1525 (void) slprintf(sbuf, sizeof (sbuf), "IP proto %d", in dump_packet()
1571 (void) slprintf(sbuf, sizeof (sbuf), "IPv6 proto %d", in dump_packet()
1591 (void) slprintf(sbuf, sizeof (sbuf), "0x#X", proto); in dump_packet()
2388 (void) slprintf(pname, sizeof (pname), "NP %04X", proto);
2395 (void) slprintf(mname, sizeof (mname), "mode %d", (int)mode);
H A Dchap_ms.c588 slprintf(cp, sizeof (status_message) - (cp-status_message),
H A Dpppd.h450 extern int slprintf __P((char *, int, const char *, ...)); /* sprintf++ */
H A Dfsm.c59 (void) slprintf(buf, sizeof (buf), "unknown#%d", statenum); in fsm_state()
H A Dipv6cp.c1392 (void) slprintf(strspeed, sizeof (strspeed), "%d", baud_rate);
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/
H A Dpppoe.c279 (void) slprintf(str, RTE_MSG_LEN, "%I %I %I %d", in handle_ip_route_add()
283 (void) slprintf(envname, sizeof (envname), RTE_STR, ++idx); in handle_ip_route_add()
386 (void) slprintf(envname, sizeof (envname), in handle_pppoe_input()
493 (void) slprintf(envname, sizeof (envname), in pppoe_device_pipe()
H A Dmapfile-passprompt28 slprintf { TYPE = FUNCTION; FLAGS = extern }; # " "
H A Dpassprompt.c78 (void) slprintf(fdstr, sizeof (fdstr), "%d", p[1]); in promptpass()
H A Dmapfile-pppoe47 slprintf { TYPE = FUNCTION; FLAGS = extern }; # " "