Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Mar 1996 14:57:42 +0200 (UKR)
From:      Yury Pshenychny <yura@rd.zgik.zaporizhzhe.ua>
To:        hackers@freebsd.org
Subject:   Bug in serial line IP implementation
Message-ID:  <Pine.SCO.3.91.960306142401.2762A-100000@rd.zgik.zaporizhzhe.ua>

next in thread | raw e-mail | index | archive | help

	Hi!

2.1.0R and, AFAIK, -current slip implementation buggy.
Slip discipline ioctl SLIOCSUNIT not work properly.
Code from 2.1.0R:
(file /sys/net/if_sl.c, lines 371-373)
	case SLIOCSUNIT:
		sc->sc_if.if_unit = *(u_int *)data;
		break;

This code is dangerous. This code change unit number of current slip 
interface. There absolutely no warranty, but if you running slattach -S 1
you may have two or more interfaces named sl1 in system.
Some times this hangs all net-related activity, some times not.
Any suggestions?
Do not respond with 'not use slattach -S' please, fixed unit feature in slip
implementation still important for me.

--
  Yura




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SCO.3.91.960306142401.2762A-100000>