lkml.org 
[lkml]   [1998]   [Sep]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: ISDN encaps
From
Date

Hi,

Gerard Paul Java <gerardj@cebu.mozcom.com> writes:

>
> Hello all,
>
> Sorry if this isn't strictly kernel-related, but I know you guys are the
> best equipped to answer this.
>
> (1) I'd like to know what the ioctl() calls are to determine the
> encapsulation
> for an ISDN interface (rawip, syncppp, cisco-h, etc) from a user-space
> program.

IIOCNETGCF (operates on /dev/isdnctrl*). Have a look at isdn_{common,net}.c
and the isdnctrl sources for further details.

> (2) I also know that sync ppp interfaces are ippp, but what of the other
> types of encapsulations?

The name is arbitrarily configurable. For other encapsulations they are
usually (but not necessarily) named isdn*.

>
> (3) How about the spkt_family field after a packet is read from a
> SOCK_PACKET socket? What values does it contain for other encapsulations.
> I know that sync PPP returns an ARPHRD_PPP, but what of the others.

isdn interfaces claim to be ethernet devices, unless they are configured
for encapsulation sync_ppp (ARPHRD_PPP) or x25iface (ARPHRD_X25).

Henner


-
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/

\
 
 \ /
  Last update: 2005-03-22 13:44    [W:0.022 / U:2.076 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site