Re: [RFC] Configuring synchronous interfaces in Linux

From: Francois romieu (romieu@cogenit.fr)
Date: Fri Dec 01 2000 - 04:01:24 EST


[netdev Cced]

The Thu, Nov 30, 2000 at 11:16:52AM -0800, Ivan Passos wrote :
[...]
> For synchronous network interfaces, besides configuring network parameters
> such as IP address, netmask, MTU, etc., the system should also configure
> parameters specific to these sync i/f's, such as media (e.g V.35, X.21,
> T1, E1), clock (internal or external, and value if int.), protocol (e.g
> PPP, HDLC, Frame Relay), etc.
> What I noticed was that each synchronous board in Linux provides a
> different way of doing this, and it would be good for users to have a
> single, standard interface (such as ifconfig) to do this type of
> configuration. Maybe even patch ifconfig itself, I don't know ...
>
> Questions:
> - Is there any existing _standard_ interface to do that??

No.

> - If not, is there any existing _standard_ infrastructure (e.g. ioctls and
> structures) so that I can write an application to do that over this
> standard structure?

x25 does things like this:
#define SIOCX25GSUBSCRIP (SIOCPROTOPRIVATE + 0)
#define SIOCX25SSUBSCRIP (SIOCPROTOPRIVATE + 1)
...
Thus one could use private ioctl behind SIOCDEVPRIVATE and SIOCPROTOPRIVATE as
defined in include/linux/sockios.h. Something under /proc(/sys ?) is
possible too but I would ask for the policy that applies to /proc before
coding.

> - If not, where would be the right place in the kernel to change in order
> to implement such infrastructure?

net/* for the protocol handler.
include/linux/if_arp.h
include/linux/if_ether.h

Some place may be updated too:
net/lapb/*
net/x25/*
net/wanrouter
drivers/char/n_hdlc.c
drivers/net/wan/*

> I'm interested in implementing this, but I don't want to reinvent the
> wheel (if such wheel exists ...).

Ditto.

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



This archive was generated by hypermail 2b29 : Thu Dec 07 2000 - 21:00:07 EST