mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
Implement SLIOCSUNIT (set slip unit number)
This commit is contained in:
parent
d9a50f903f
commit
d86851edf5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=8143
@ -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) {
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user