[quagga-dev 4136] example libzebra zclient utility

Paul Jakma paul at clubi.ie
Sun May 14 14:09:05 BST 2006


FWIW,

knocked the following together to demonstrate libzebra zclient to 
someone:

 	http://hibernia.jakma.org/~paul/quagga.c

it might even be generally useful.. e.g.:

# quaggacli --interface=lo -4
1: lo  <UP,LOOPBACK,RUNNING>
     metric 1 mtu 16436 mtu6 16436
     inet 127.0.0.1/8 �5
# quaggacli --interface=lo
1: lo  <UP,LOOPBACK,RUNNING>
     metric 1 mtu 16436 mtu6 16436
     inet 127.0.0.1/8 �5
     inet6 ::1/128 �5
# quaggacli -r kernel -r con
    add: K> 0.0.0.0/0 via 212.17.55.49 ifindex 2, metric 0
    add: K> 169.254.0.0/16 via 0.0.0.0 ifindex 2, metric 0
    add: K> ff00::/8 via :: ifindex 2, metric 0
    add: C> 212.17.55.48/29 via 0.0.0.0 ifindex 2, metric 1
    add: C> 212.17.55.56/29 via 0.0.0.0 ifindex 5, metric 1
    add: C> 2001:770:105:1::/64 via :: ifindex 2, metric 1

Can anyone think of a good name? :)

regards,
-- 
Paul Jakma	paul at clubi.ie	paul at jakma.org	Key ID: 64A2FF6A
Fortune:
printk("Churning and Burning -");
         linux-2.6.6/drivers/char/lcd.c


More information about the Quagga-dev mailing list