]> git.puffer.fish Git - mirror/frr.git/commit
lib: simplify interface of setsockopt_multicast_ipv4().
authorDmitrij Tejblum <tejblum@yandex-team.ru>
Thu, 18 Aug 2011 16:22:17 +0000 (20:22 +0400)
committerDenis Ovsienko <infrastation@yandex.ru>
Tue, 27 Sep 2011 17:37:35 +0000 (21:37 +0400)
commit69bf3a39931ce61a92fb04d8888b4655fd5620a2
treee49dae20b1dbc0d1ee37121cd45c75d94290bdd1
parentea4021984f9eec3f2a85551ae0822e1dff0ed2bc
lib: simplify interface of setsockopt_multicast_ipv4().

* sockopt.[ch] (setsockopt_ipv4_multicast): ifindex is now mandatory (all
  non-ancient OSes can use it anyway), and if_addr parameter (the address
  of the interface) is now gone. (setsockopt_ipv4_multicast_if):
  IP_MULTICAST_IF processing moved to this new function

* ospf_network.c (ospf_if_add_allspfrouters, ospf_if_drop_allspfrouters,
  ospf_if_add_alldrouters, ospf_if_drop_alldrouters, ospf_if_ipmulticast),
  rip_interface.c (ipv4_multicast_join, ipv4_multicast_leave,
  rip_interface_new): adapt to the new interface
lib/sockopt.c
lib/sockopt.h
ospfd/ospf_network.c
ripd/rip_interface.c