On Thu, 18 Jul 2002 08:57:33 -0500
"Brad Fritz" <[EMAIL PROTECTED]> wrote:
>
> On 18 Jul 2002 15:18:09 +0200 Ronny Aasen wrote:
>
> > ipsec_setup: unable to determine address of `ippp0'
> >
> > IANAC but i think some of the problem is in this passage in
> > /lib/ipsec/_startklips.
> >
> > eval `ip addr show $phys |
> > awk '$1 == "inet" && $3 == "brd" {
> > print "addr=" $2
> > other = $4
> > if ($3 == "brd")
> > print "type=broadcast"
> > else if ($3 == "peer")
> > print "type=pointopoint"
> > else if (NF == 5) {
> > print "type="
> > other = "" }
> > else
> > print "type=unknown"
> > print "otheraddr=" other
> > # print "mask=" $NF
> > gsub(/\//, " ", $0)
> > }'`
> >
> >
> >if test " $addr" = " "
> > then
> > echo "unable to determine address of \`$phys'"
> > exit 1
> > fi
> >
> >
> >
> >
> > 'ip addr show ippp0' on my system shows
> >
> > # ip addr show ippp0
> > 8: ippp0: <POINTOPOINT,NOARP,DYNAMIC,UP> mtu 1500 qdisc pfifo_fast
> > qlen 30
> > link/ppp
> > inet 130.67.214.178 peer 130.67.213.128/16 scope global ippp0
>
> I'm no shell or ipsec guru, but I think the line that reads:
>
> awk '$1 == "inet" && $3 == "brd" {
>
> should probably read:
>
> awk '$1 == "inet" {
>
> otherwise, the
>
> else if ($3 == "peer")
>
> case is unreachable and $type won't accurately be set to
> "pointopoint" for your connection.
Of course the biggest problem is that the code block will never be executed at all,
thus not setting $addr, which is supposed to contain your ip address. That is very
bad.
--
------------------------------------------------------------------------
Chad Carr [EMAIL PROTECTED]
------------------------------------------------------------------------
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
------------------------------------------------------------------------
leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html