diff options
author | paul <paul> | 2005-05-07 02:22:51 +0000 |
---|---|---|
committer | paul <paul> | 2005-05-07 02:22:51 +0000 |
commit | 42c981994adcf7fb2e1c2bea170cc5f196d5a1d7 (patch) | |
tree | ba2bae75f527d0a034cb42ee3177db9f47802fda /ospfd | |
parent | 4dadc291e56195886fd047690ded9686f4e013fa (diff) |
2005-05-07 Yar Tikhiy <yar@comp.chem.msu.su>
* configure.ac: Check for OSes which support passing ifindex in
struct ip_mreq.
* lib/sockopt.c: Add support for BSD style ifindex in ip_mreq.
* ospfd/ospf_network.c: Log ifindex on multicast membership leave/join
events.
Diffstat (limited to 'ospfd')
-rw-r--r-- | ospfd/ChangeLog | 5 | ||||
-rw-r--r-- | ospfd/ospf_network.c | 16 |
2 files changed, 13 insertions, 8 deletions
diff --git a/ospfd/ChangeLog b/ospfd/ChangeLog index d8ec676f..209027e7 100644 --- a/ospfd/ChangeLog +++ b/ospfd/ChangeLog @@ -1,3 +1,8 @@ +2005-05-07 Yar Tikhiy <yar@comp.chem.msu.su> + + * ospf_network.c: Log ifindex on multicast membership leave/join + events. + 2005-05-06 Paul Jakma <paul.jakma@sun.com> * (general) extern and static qualifiers added. diff --git a/ospfd/ospf_network.c b/ospfd/ospf_network.c index c2c8b133..e8c98371 100644 --- a/ospfd/ospf_network.c +++ b/ospfd/ospf_network.c @@ -60,8 +60,8 @@ ospf_if_add_allspfrouters (struct ospf *top, struct prefix *p, "on # of multicast group memberships has been exceeded?", top->fd, inet_ntoa(p->u.prefix4), ifindex, safe_strerror(errno)); else - zlog_info ("interface %s join AllSPFRouters Multicast group.", - inet_ntoa (p->u.prefix4)); + zlog_info ("interface %s [%u] join AllSPFRouters Multicast group.", + inet_ntoa (p->u.prefix4), ifindex); return ret; } @@ -80,8 +80,8 @@ ospf_if_drop_allspfrouters (struct ospf *top, struct prefix *p, "ifindex %u, AllSPFRouters): %s", top->fd, inet_ntoa(p->u.prefix4), ifindex, safe_strerror(errno)); else - zlog_info ("interface %s leave AllSPFRouters Multicast group.", - inet_ntoa (p->u.prefix4)); + zlog_info ("interface %s [%u] leave AllSPFRouters Multicast group.", + inet_ntoa (p->u.prefix4), ifindex); return ret; } @@ -102,8 +102,8 @@ ospf_if_add_alldrouters (struct ospf *top, struct prefix *p, unsigned int "on # of multicast group memberships has been exceeded?", top->fd, inet_ntoa(p->u.prefix4), ifindex, safe_strerror(errno)); else - zlog_info ("interface %s join AllDRouters Multicast group.", - inet_ntoa (p->u.prefix4)); + zlog_info ("interface %s [%u] join AllDRouters Multicast group.", + inet_ntoa (p->u.prefix4), ifindex); return ret; } @@ -122,8 +122,8 @@ ospf_if_drop_alldrouters (struct ospf *top, struct prefix *p, unsigned int "ifindex %u, AllDRouters): %s", top->fd, inet_ntoa(p->u.prefix4), ifindex, safe_strerror(errno)); else - zlog_info ("interface %s leave AllDRouters Multicast group.", - inet_ntoa (p->u.prefix4)); + zlog_info ("interface %s [%u] leave AllDRouters Multicast group.", + inet_ntoa (p->u.prefix4), ifindex); return ret; } |