diff options
author | ache <ache@FreeBSD.org> | 1995-04-28 18:47:29 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1995-04-28 18:47:29 +0000 |
commit | cd052cdfd3cde0a4478a61850561b50a0046463d (patch) | |
tree | 018acde9e3279a0f9d607c43eefe0120449ac0ec /sys/net | |
parent | 4b3de059b50694fb6a7a007be6ec33e9216edfe6 (diff) | |
download | FreeBSD-src-cd052cdfd3cde0a4478a61850561b50a0046463d.zip FreeBSD-src-cd052cdfd3cde0a4478a61850561b50a0046463d.tar.gz |
Implement SLIOCSUNIT (set slip unit number)
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/if_sl.c | 6 | ||||
-rw-r--r-- | sys/net/slip.h | 3 |
2 files changed, 7 insertions, 2 deletions
diff --git a/sys/net/if_sl.c b/sys/net/if_sl.c index d345e19..1e1fa68 100644 --- a/sys/net/if_sl.c +++ b/sys/net/if_sl.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)if_sl.c 8.6 (Berkeley) 2/1/94 - * $Id: if_sl.c,v 1.17 1995/04/01 22:11:10 ache Exp $ + * $Id: if_sl.c,v 1.18 1995/04/02 00:11:48 bde Exp $ */ /* @@ -366,6 +366,10 @@ sltioctl(tp, cmd, data, flag, p) *(int *)data = sc->sc_if.if_unit; break; + case SLIOCSUNIT: + sc->sc_if.if_unit = *(u_int *)data; + break; + case SLIOCSKEEPAL: sc->sc_keepalive = *(u_int *)data * hz; if (sc->sc_keepalive) { diff --git a/sys/net/slip.h b/sys/net/slip.h index a9730b5..8d5463e 100644 --- a/sys/net/slip.h +++ b/sys/net/slip.h @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)slip.h 8.1 (Berkeley) 2/12/94 - * $Id: slip.h,v 1.3 1994/08/21 05:11:48 paul Exp $ + * $Id: slip.h,v 1.4 1995/03/30 20:43:32 ache Exp $ */ #ifndef _NET_SLIP_H_ @@ -43,6 +43,7 @@ #define SLIOCSOUTFILL _IOW('t', 83, int) /* set out fill time */ #define SLIOCGKEEPAL _IOR('t', 82, int) /* get keepalive time */ #define SLIOCGOUTFILL _IOR('t', 81, int) /* get out fill time */ +#define SLIOCSUNIT _IOW('t', 80, int) /* set slip unit number */ /* * Definitions of the pseudo-link-level header attached to slip |