Hi,
the script /etc/cipe/ip-up will be executed for each
device that comes up with some parameters, one of
them is the allocated device name.
Parameter list:
# $1 interface the CIPE interface <--------
# $2 myaddr our UDP address
# $3 daemon-pid the daemon's process ID
# $4 local IP address of our CIPE device
# $5 remote IP address of the remote CIPE device
# $6 arg argument supplied via options
retrieved from sample ip-up script.
Wolfgang
At 11:33 04.12.2002 -0800, R. Steve McKown wrote:
>Hi all,
>
>For my application, I wish ciped-cb to allocate a free
>cipe device without specifically providing one. I see
>the kernel module supports this. However, I need to
>be able to 'query' the ciped-cb process to determine
>the device name (or index) that was assigned, because
>there are other actions that must be taken which
>require the device name.
>
>Is there a way to do this?
>
>I've seen this handled before by having the daemon
>process rewrite its command line to the name of the
>device it handles. If done for cipe, a ciped-cb ps
>listing might look like:
>
>smckown 11208 26631 0 11:51 pts/10 00:00:00
>[cipcb0]
>
>If there already isn't a good method to get the
>allocated device, does the above approach have any
>merit? Are there a lot of existing management scripts
>that depend upon the command line as shown by ps? Is
>there a better alternative?
>
>Thx
>Steve
>
>
>__________________________________________________
>Do you Yahoo!?
>Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
>http://mailplus.yahoo.com
>
>--
>Message sent by the cipe-l,AT,inka,DOT,de mailing list.
>Unsubscribe: mail majordomo,AT,inka,DOT,de, "unsubscribe cipe-l" in body
>Other commands available with "help" in body to the same address.
>CIPE info and list archive:
><URL:http://sites.inka.de/~bigred/devel/cipe.html>
------------------------------------------
Ing. Wolfgang Ailec, ACP IT Solutions GmbH
(vormals INTAKT Telekommunikation GmbH)
Faerberberg 69 A-8330 Feldbach
email: ailec,AT,awe,DOT,at, wolfgang.ailec,AT,acp,DOT,at
Tel.No.: +43 3152 30300
Fax.No.: +43 2235 4362211
WWW : <http://www.intakt.at/>
<http://www.acp.at>
------------------------------------------