Re: [patch] Fix for PPP/SLIP driver

From: Stanislav V. Voronyi (stas@esc.kharkov.com)
Date: Thu Feb 03 2000 - 10:09:35 EST


In message <00020310570102.04042@argo.linuxcare.com.au> Paul Mackerras
    writes:

>On Thu, 03 Feb 2000, Stanislav V. Voronyi wrote:
>[snip]
>> From other side if I would do ifconfig pppXX down or
>> ifconfig slXX down control programm (pppd or slcall) receive
>> no notification about it. If slip driver compiled with my

>What would you be expecting to achieve by configuring the interface down?
>It's not something that makes any sense to me.

        But it have sence for me. I work at the big ISP and I realy need
this possibility.

>> But since PPP driver in 2.3 kernel was changed I found only one
>> possible way to fix problem - save pgrp of control process when interface
>> going UP and send SIGHUP to this process group on interface closing.

>Which seems like rather a nasty hack to me. There must be a better way,
>given that we have an open instance of /dev/ppp associated with the
>device and a pppd listening to that instance.

        Using of /dev/ppp for this purposes need some support from the
pppd side. With my method (send SIGHUP to pppd) we need not to change
pppd at all. And I suppouse that there is no needings to make difficult
the job, that can be done in a simplier way. Also my patch fix this
problems not only in PPP but in SLIP driver too, where we have not /dev/slip.

-- 
Stanislav V. Voroniy                            |Tel. +380 (572) 128302
Head of System Administration Department        |                210901
Centre of Information Technologies "Vostok" Ltd.|Fax. +380 (572) 213117

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Feb 07 2000 - 21:00:09 EST