Lines Matching defs:unit
56 static int owns_unit __P((TDB_DATA pid, int unit));
95 int unit, pppd_pid;
154 unit = -1;
164 parse_num(rec.dptr, "IFNAME=ppp", &unit);
168 || !owns_unit(pid, unit))
169 unit = -1;
175 if (unit >= 0) {
176 /* attach to existing unit */
177 if (bundle_attach(unit)) {
218 * Check whether the pppd identified by `key' still owns ppp unit `unit'.
221 owns_unit(key, unit)
223 int unit;
229 (void) slprintf(ifkey, sizeof(ifkey), "IFNAME=ppp%d", unit);