summaryrefslogtreecommitdiffstats
path: root/ospfd/ospf_network.c
Commit message (Collapse)AuthorAgeFilesLines
* *: use an ifindex_t type, defined in lib/if.h, for ifindex valuesPaul Jakma2016-02-261-7/+5
|
* ospfd: compile warning cleanupsAndrew Certain2013-01-071-4/+4
| | | | | | | | | | | | | | A set of patches to clarify some comments as well as cleanup code that was causing warnings. After these patches, the code can be compiled with -Wall -Wsign-compare -Wpointer-arith -Wbad-function-cast -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wchar-subscripts -Wcast-qual -Wextra -Wno-unused-parameter -Wno-missing-field-initializers (what is current in trunk plus -Wextra -Wno-unused-parameter -Wno-missing-field-initializers). Signed-off-by: Scott Feldman <sfeldma@cumulusnetworks.com>
* lib: simplify interface of setsockopt_multicast_ipv4().Dmitrij Tejblum2011-09-271-10/+9
| | | | | | | | | | | | * 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
* ospfd: Lower level of some common messages from info to debugPaul Jakma2010-12-081-7/+7
| | | | | * ospf_{ism,network}.c: Certain oft-repeated but trivial messages should be debug log level, not info, to avoid spamming 'terminal monitor'
* [lib] mes_lookup string lookup table argument should be marked constStephen Hemminger2008-08-221-9/+2
| | | | | | | | | 2008-08-14 Stephen Hemminger <stephen.hemminger@vyatta.com> * lib/log.{c,h}: struct message argument should point to const * */*.c: adjust to suit, Signed-off-by: Paul Jakma <paul@quagga.net>
* + fix minor regression in OSPF sending buffer adjustment logicDenis Ovsienko2007-09-181-6/+6
|
* Bug #362 is fixed now.Denis Ovsienko2007-08-211-0/+35
|
* 2005-05-07 Yar Tikhiy <yar@comp.chem.msu.su>paul2005-05-071-8/+8
| | | | | | | | * 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.
* 2005-01-30 Andrew J. Schorr <ajschorr@alumni.princeton.edu>ajs2005-01-301-4/+9
| | | | | * ospf_network.c: (ospf_sock_init) Save errno before calling ospfd_privs.change.
* 2004-12-30 Andrew J. Schorr <ajschorr@alumni.princeton.edu>ajs2004-12-301-13/+23
| | | | | * ospf_network.c: Improve all setsockopt error messages to give detailed information on the arguments.
* add comments about warningsgdt2004-12-091-0/+4
|
* 2004-11-19 Andrew J. Schorr <ajschorr@alumni.princeton.edu>ajs2004-11-201-13/+13
| | | | | * global: Replace strerror with safe_strerror. And vtysh/vtysh.c needs to include "log.h" to pick up the declaration.
* 2004-10-22 Paul Jakma <paul@dishone.st>paul2004-10-221-1/+2
| | | | | | | * ospf_network.c: (ospf_sock_init) call neutral setsock_ifindex() function. * ospf_packet.c: (ospf_read) manually look up ifindex if system could not have returned one, eg openbsd.
* 2004-07-23 Paul Jakma <paul@dishone.st>paul2004-07-231-21/+3
| | | | | | | * ospf_network.c: Replace PKTINFO/RECVIF with call to setsockopt_pktinfo * ospf_packet.c: Use getsockopt_pktinfo_ifindex and SOPT_SIZE_CMSG_PKTINFO_IPV4.
* 2004-05-05 Paul Jakma <paul@dishone.st>paul2004-05-051-13/+17
| | | | | | * ospf_network.c: (ospf_sock_init) Check whether IP_HDRINCL is defined. Warn at compile and runtime. Use IPTOS_PREC_INTERNETCONTROL otherwise.
* 2003-10-24 sowmini.varadhan@sun.compaul2003-10-241-2/+2
| | | | | * ospfd/ospf_network.c: (ospf_sock_init) Exit if socket can not be created.
* 2003-06-04 Paul Jakma <paul@dishone.st>paul2003-06-041-3/+40
| | | | * Merge of zebra privileges
* Initial revisionpaul2002-12-131-0/+192