From: Francois romieu <romieu@cogenit.fr>
To: Ivan Passos <lists@cyclades.com>
Cc: linux-kernel@vger.kernel.org, netdev@oss.sgi.com
Subject: Re: [RFC] Configuring synchronous interfaces in Linux
Date: Fri, 1 Dec 2000 10:01:24 +0100 [thread overview]
Message-ID: <20001201100124.A4986@se1.cogenit.fr> (raw)
In-Reply-To: <Pine.LNX.4.10.10011301103320.4692-100000@main.cyclades.com>; from lists@cyclades.com on Thu, Nov 30, 2000 at 11:16:52AM -0800
[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/
next prev parent reply other threads:[~2000-12-01 9:32 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-11-30 19:16 [RFC] Configuring synchronous interfaces in Linux Ivan Passos
2000-12-01 9:01 ` Francois romieu [this message]
2000-12-01 10:32 ` Chris Wedgwood
2000-12-01 11:00 ` Christoph Hellwig
2000-12-01 12:30 ` Xavier Bestel
2000-12-01 12:07 ` Russell King
2000-12-01 13:00 ` Francois Romieu
2000-12-02 16:09 ` Donald Becker
2000-12-02 18:59 ` Chris Wedgwood
2000-12-02 19:07 ` Jeff Garzik
2000-12-02 19:46 ` Russell King
2000-12-02 20:02 ` Philip Blundell
2000-12-03 5:47 ` Chris Wedgwood
2000-12-03 11:10 ` Philip Blundell
2000-12-03 11:27 ` Russell King
2000-12-03 0:20 ` Keith Owens
2000-12-03 13:43 ` Jeff Garzik
2000-12-03 20:29 ` Keith Owens
2000-12-03 20:41 ` Keith Owens
2000-12-02 19:48 ` Donald Becker
2000-12-07 8:44 ` Chris Wedgwood
2000-12-01 13:44 ` Philip Blundell
2000-12-01 12:15 ` Francois Romieu
2000-12-01 13:14 ` Bogdan Costescu
2000-12-01 16:26 ` Francois Desloges
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20001201100124.A4986@se1.cogenit.fr \
--to=romieu@cogenit.fr \
--cc=linux-kernel@vger.kernel.org \
--cc=lists@cyclades.com \
--cc=netdev@oss.sgi.com \
--cc=romieu@ensta.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox