Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Feb 1999 00:03:56 +0100 (MET)
From:      Martin Husemann <martin@rumolt.teuto.de>
To:        domi@saargate.de (Dominik Brettnacher)
Cc:        freebsd-isdn@FreeBSD.ORG
Subject:   Re: connectprog Parameters
Message-ID:  <199902232303.AAA07171@rumolt.teuto.de>
In-Reply-To: <Pine.BSF.4.10.9902222221240.8299-100000@dominik.saargate.de> from "Dominik Brettnacher" at Feb 22, 99 10:24:24 pm

next in thread | previous in thread | raw e-mail | index | archive | help
> I see some parameters that my "connectprog" script is given by isdnd. Can
> somebody explain what they mean? Where is that documented?

For the later I'll have to pass - though I think I added a comment to some
manpages when I wrote that code ;-)

Anyway: both connect and disconnect prog get the following parameters:

-d (device) -f (flag) [ -a (addr) ]

where

  device      name of device, e.g. "isp0"
  flag        "up" if connection just got up, or "down" if interface
              changed to down state
  addr        (optional, only if it can be figured by isdnd)
              the address that got assigned to the interface
              as a dotted-quad ip address

The "-a (addr)" parameter may be replaced by others for different protocols
later.

You can look up the details in isdnd/exec.c, function exec_connect_prog.



Martin


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-isdn" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199902232303.AAA07171>