<< | Thread Index | >> ]    [ << | Date Index | >> ]

Subject: cipe compiled under debian 2.2 linux 2.4 does not read options
From: "Peter T. Breuer" <ptb,AT,it,DOT,uc3m,DOT,es>
Date: Fri, 25 May 2001 21:52:14 +0200

I've compiled cipe 1.5.2 just now on two debian 2.2 systems (one
pure stable, one mostly testing, but also with glibc 2.1.3) with
lkernels 2.4.2 and 2.4.3, and the daemon seems not to read its option
file at startup. If I run it with just the "debug" parameter, I get:

    nbd:/usr/oboe/ptb/src/cipe-1.5.2% sudo /usr/local/sbin/ciped-cb
    debug
    CIPE daemon vers 1.5.2 (c) Olaf Titz 1996-2000
    device=(none)
    debug=yes
    ipaddr=
    ptpaddr=
    mask=
    bcast=
    mtu=0
    metric=0
    cttl=0
    me=
    peer=
    key=(none)
    nokey=no
    socks=
    tokxc=0
    tokey=0
    ipup=(none)
    ipdown=(none)
    arg=(none)
    maxerr=8
    tokxts=0
    ping=0
    toping=0
    dynip=no
    hwaddr=(none)
    ifconfig=no
    checksum=no
    missing argument: peer

By the way, CIPE needs a short succinct manual page. The info file is
incomprehensible. It doesn't give any examples of running the daemon
any where. The options that appear when I do ciped -h are not explained
anywhere either. And the source is fairly inscrutable.

If I add a -o /etc/cipe/options (yes, it does exist), I get no output
at all:

  nbd:/usr/oboe/ptb/src/cipe-1.5.2% sudo /usr/local/sbin/ciped-cb debug -o 
/etc/cipe/options
  nbd:/usr/oboe/ptb/src/cipe-1.5.2% 

The word "debug" does appear in the options file. Running the daemon
with no options also produces nothing on stderr. A strace -f -eopen
does not show the file being opened. Ldd shows it linked to libc and
not much else:

  nbd:/usr/oboe/ptb/src/cipe-1.5.2% ldd /usr/local/sbin/ciped-cb
  libc.so.6 => /lib/libc.so.6 (0x4001d000)
  /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

Adding mounds of command line options does the trick. 

Is there any help for reading the options file?

Peter





<< | Thread Index | >> ]    [ << | Date Index | >> ]