diff options
author | Pavel Machek <pavel@ucw.cz> | 2000-04-28 11:55:52 +0200 |
---|---|---|
committer | Pavel Machek <pavel@ucw.cz> | 2000-04-28 11:55:52 +0200 |
commit | 6c0a7174af459d62a52e97d15da29528169a68f9 (patch) | |
tree | 561ee524c0803a95aadbe67240a0a582d1f0bde2 /proto/rip/rip.c | |
parent | e83b42deb4405729d9f53448bdbcea05e7d15e8f (diff) | |
download | bird-6c0a7174af459d62a52e97d15da29528169a68f9.tar bird-6c0a7174af459d62a52e97d15da29528169a68f9.zip |
Add sample documentation to rip.
Diffstat (limited to 'proto/rip/rip.c')
-rw-r--r-- | proto/rip/rip.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/proto/rip/rip.c b/proto/rip/rip.c index b66de28..22223d3 100644 --- a/proto/rip/rip.c +++ b/proto/rip/rip.c @@ -548,8 +548,11 @@ kill_iface(struct proto *p, struct rip_interface *i) mb_free(i); } -/* - * new maybe null if we are creating initial send socket +/** + * new_iface - actually create struct interface and start listening to it + * @new: interface to be created or %NULL if we are creating magic + * socket. Magic socket is used for listening, and is also used for + * sending requested responses. */ static struct rip_interface * new_iface(struct proto *p, struct iface *new, unsigned long flags, struct iface_patt *patt ) @@ -655,7 +658,12 @@ rip_if_notify(struct proto *p, unsigned c, struct iface *iface) if (!k) return; /* We are not interested in this interface */ lock = olock_new( p->pool ); - lock->addr = ipa_from_u32(0xe0000009); + lock->addr = ipa_from_u32(0xe0000009); /* This is okay: we + may actually use + other address, but + we do not want two + rips at one time, + anyway. */ lock->port = P_CF->port; lock->iface = iface; lock->hook = rip_real_if_add; |