mirror_frr/lib
Andrew J. Schorr e4529636b7 [PtP over ethernet] New peer flag allows much more addressing flexibility
2006-12-12 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

	* if.h: (struct connected) Add new ZEBRA_IFA_PEER flag indicating
	  whether a peer address has been configured.  Comment now shows
	  the new interpretation of the destination addr: if ZEBRA_IFA_PEER
	  is set, then it must contain the destination address, otherwise
	  it may contain the broadcast address or be NULL.
	  (CONNECTED_DEST_HOST,CONNECTED_POINTOPOINT_HOST) Remove obsolete
	  macros that were specific to IPv4 and not fully general.
	  (CONNECTED_PEER) New macro to check ZEBRA_IFA_PEER flag.
	  (CONNECTED_PREFIX) New macro giving the prefix to insert into
	  the RIB: if CONNECTED_PEER, then use the destination (peer) address,
	  else use the address field.
	  (CONNECTED_ID) New macro to come up with an identifying address
	  for the struct connected.
	* if.c: (if_lookup_address, connected_lookup_address) Streamline
	  logic with new CONNECTED_PREFIX macro.
	* prefix.h: (PREFIX_COPY_IPV4, PREFIX_COPY_IPV6) New macros
	  for better performance than the general prefix_copy function.
	* zclient.c: (zebra_interface_address_read) For non-null destination
	  addresses, set prefixlen to equal the address prefixlen.  This
	  is needed to get the new CONNECTED_PREFIX macro to work properly.
	* connected.c: (connected_up_ipv4, connected_down_ipv4,
	  connected_up_ipv6, connected_down_ipv6) Simplify logic using the
	  new CONNECTED_PREFIX macro.
	  (connected_add_ipv4) Set prefixlen in destination addresses (required
	  by the CONNECTED_PREFIX macro).  Use CONNECTED_PEER macro instead
	  of testing for IFF_POINTOPOINT.  Delete invalid warning message.
	  Warn about cases where the ZEBRA_IFA_PEER is set but no
	  destination address has been supplied (and turn off the flag).
	  (connected_add_ipv6) Add new flags argument so callers may set
	  the ZEBRA_IFA_PEER flag.  If peer/broadcast address satisfies
	  IN6_IS_ADDR_UNSPECIFIED, then reject it with a warning.
	  Set prefixlen in destination address so CONNECTED_PREFIX will work.
	* connected.h: (connected_add_ipv6) Add new flags argument so
	  callers may set the ZEBRA_IFA_PEER flag.
	* interface.c: (connected_dump_vty) Use CONNECTED_PEER macro
	  to decide whether the destination address is a peer or broadcast
	  address (instead of checking IFF_BROADCAST and IFF_POINTOPOINT).
	* if_ioctl.c: (if_getaddrs) Instead of setting a peer address
	  only when the IFF_POINTOPOINT is set, we now accept a peer
	  address whenever it is available and not the same as the local
	  address.  Otherwise (no peer address assigned), we check
	  for a broadcast address (regardless of the IFF_BROADCAST flag).
	  And must now pass a flags value of ZEBRA_IFA_PEER to
	  connected_add_ipv4 when a peer address is assigned.
	  The same new logic is used with the IPv6 code as well (and we
	  pass the new flags argument to connected_add_ipv6).
	  (if_get_addr) Do not bother to check IFF_POINTOPOINT: just
	  issue the SIOCGIFDSTADDR ioctl and see if we get back
	  a peer address not matching the local address (and set
	  the ZEBRA_IFA_PEER in that case).  If there's no peer address,
	  try to grab SIOCGIFBRDADDR regardless of whether IFF_BROADCAST is set.
	* if_ioctl_solaris.c: (if_get_addr) Just try the SIOCGLIFDSTADDR ioctl
	  without bothering to check the IFF_POINTOPOINT flag.  And if
	  no peer address was found, just try the SIOCGLIFBRDADDR ioctl
	  without checking the IFF_BROADCAST flag.  Call connected_add_ipv4
	  and connected_add_ipv6 with appropriate flags.
	* if_proc.c: (ifaddr_proc_ipv6) Must pass new flags argument to
	  connected_add_ipv6.
	* kernel_socket.c: (ifam_read) Must pass new flags argument to
	  connected_add_ipv6.
	* rt_netlink.c: (netlink_interface_addr) Copy logic from iproute2
	  to determine local and possible peer address (so there's no longer
	  a test for IFF_POINTOPOINT).  Set ZEBRA_IFA_PEER flag appropriately.
	  Pass new flags argument to connected_add_ipv6.
	  (netlink_address) Test !CONNECTED_PEER instead of if_is_broadcast
	  to determine whether the connected destination address is a
	  broadcast address.
	* bgp_nexthop.c: (bgp_connected_add, bgp_connected_delete)
	  Simplify logic by using new CONNECTED_PREFIX macro.
	* ospf_interface.c: (ospf_if_is_configured, ospf_if_lookup_by_prefix,
	  ospf_if_lookup_recv_if) Simplify logic using new CONNECTED_PREFIX
	  macro.
	* ospf_lsa.c: (lsa_link_ptop_set) Using the new CONNECTED_PREFIX
	  macro, both options collapse into the same code.
	* ospf_snmp.c: (ospf_snmp_if_update) Simplify logic using new
	  CONNECTED_ID macro.
	  (ospf_snmp_is_if_have_addr) Simplify logic using new CONNECTED_PREFIX
	  macro.
	* ospf_vty.c: (show_ip_ospf_interface_sub) Use new CONNECTED_PEER macro
	  instead of testing the IFF_POINTOPOINT flag.
	* ospfd.c: (ospf_network_match_iface) Use new CONNECTED_PEER macro
	  instead of testing with if_is_pointopoint.  And add commented-out
	  code to implement alternative (in my opinion) more elegant behavior
	  that has no special-case treatment for PtP addresses.
	  (ospf_network_run) Use new CONNECTED_ID macro to simplify logic.
	* rip_interface.c: (rip_interface_multicast_set) Use new CONNECTED_ID
	  macro to simplify logic.
	  (rip_request_interface_send) Fix minor bug: ipv4_broadcast_addr does
	  not give a useful result if prefixlen is 32 (we require a peer
	  address in such cases).
	* ripd.c: (rip_update_interface) Fix same bug as above.
2006-12-12 19:18:21 +00:00
..
.cvsignore [lib] remove autogenerated file, update .cvsignore 2006-07-27 22:52:17 +00:00
buffer.c [c99] change gcc zero-length array to C99 flexible array declaration 2005-11-26 09:21:43 +00:00
buffer.h 2005-05-06 Paul Jakma <paul@dishone.st> 2005-05-06 21:25:49 +00:00
ChangeLog [PtP over ethernet] New peer flag allows much more addressing flexibility 2006-12-12 19:18:21 +00:00
checksum.c 2005-11-03 Paul Jakma <paul.jakma@sun.com> 2005-11-03 09:00:23 +00:00
checksum.h 2005-11-03 Paul Jakma <paul.jakma@sun.com> 2005-11-03 09:00:23 +00:00
command.c [lib] Fix vector leak in error path in command.c, CID #38 2006-06-15 12:25:55 +00:00
command.h [lib] Centralise Zserv route type information, auto-generate redist strings 2006-06-27 07:52:03 +00:00
daemon.c 2005-01-30 Andrew J. Schorr <ajschorr@alumni.princeton.edu> 2005-01-30 18:49:28 +00:00
distribute.c 2005-05-06 Paul Jakma <paul@dishone.st> 2005-05-06 21:25:49 +00:00
distribute.h 2005-05-06 Paul Jakma <paul@dishone.st> 2005-05-06 21:25:49 +00:00
filter.c 2005-09-29 Alain Ritoux <alain.ritoux@6wind.com> 2005-09-29 11:25:50 +00:00
filter.h 2005-05-06 Paul Jakma <paul@dishone.st> 2005-05-06 21:25:49 +00:00
getopt1.c 2005-05-15 Paul Jakma <paul@dishone.st> 2005-05-15 14:25:08 +00:00
getopt.c 2005-08-10 Greg Troxel <gdt@fnord.ir.bbn.com> 2005-08-10 13:20:03 +00:00
getopt.h 2005-08-10 Greg Troxel <gdt@fnord.ir.bbn.com> 2005-08-10 13:20:03 +00:00
hash.c 2005-05-06 Paul Jakma <paul@dishone.st> 2005-05-06 21:25:49 +00:00
hash.h 2005-05-06 Paul Jakma <paul@dishone.st> 2005-05-06 21:25:49 +00:00
if_rmap.c 2005-10-26 Paul Jakma <paul.jakma@sun.com> 2005-10-26 05:05:16 +00:00
if_rmap.h 2005-05-06 Paul Jakma <paul@dishone.st> 2005-05-06 21:25:49 +00:00
if.c [PtP over ethernet] New peer flag allows much more addressing flexibility 2006-12-12 19:18:21 +00:00
if.h [PtP over ethernet] New peer flag allows much more addressing flexibility 2006-12-12 19:18:21 +00:00
jhash.c 2004-07-09 Paul Jakma <paul@dishone.st> 2004-07-09 14:05:47 +00:00
jhash.h 2005-05-06 Paul Jakma <paul@dishone.st> 2005-05-06 21:25:49 +00:00
keychain.c 2005-05-06 Paul Jakma <paul@dishone.st> 2005-05-06 21:25:49 +00:00
keychain.h 2005-05-06 Paul Jakma <paul@dishone.st> 2005-05-06 21:25:49 +00:00
linklist.c [lib] list_delete shouldn't duplicate list_delete_all_node 2006-06-15 12:43:09 +00:00
linklist.h 2005-05-06 Paul Jakma <paul@dishone.st> 2005-05-06 21:25:49 +00:00
log.c [lib] Add support for Sun libc printstack to zlog_backtrace_sigsafe 2006-05-28 08:26:15 +00:00
log.h 2005-05-06 Paul Jakma <paul@dishone.st> 2005-05-06 21:25:49 +00:00
Makefile.am [lib] Centralise Zserv route type information, auto-generate redist strings 2006-06-27 07:52:03 +00:00
md5.c 2006-01-17 Vincent Jardin <vincent.jardin@6wind.com> 2006-01-17 23:39:04 +00:00
md5.h [lib/md5] md5_loop should take void pointer for more useful caller warnings. 2006-01-17 17:40:45 +00:00
memory.c [lib] Fix typo in cpp conditional for malloc.h include 2006-06-30 16:49:02 +00:00
memory.h [lib] Experimental: have XFREE NULL out the freed pointer 2006-06-15 12:41:02 +00:00
memtypes.awk [lib] fix gensub call in memtypes.awk to pass "g", not g. 2006-03-30 14:30:19 +00:00
memtypes.c [bgpd] trivial: use a distinct memtype for struct bgp_synchronize 2006-03-30 14:09:38 +00:00
network.c 2005-02-16 Andrew J. Schorr <ajschorr@alumni.princeton.edu> 2005-02-16 16:25:39 +00:00
network.h 2005-05-06 Paul Jakma <paul@dishone.st> 2005-05-06 21:25:49 +00:00
pid_output.c 2004-12-17 Andrew J. Schorr <ajschorr@alumni.princeton.edu> 2004-12-17 20:50:00 +00:00
plist.c [lib] CID #3, fix forward-null errors in vty_prefix_list_uninstall 2006-05-12 23:17:38 +00:00
plist.h 2005-05-06 Paul Jakma <paul@dishone.st> 2005-05-06 21:25:49 +00:00
pqueue.c 2005-10-26 Paul Jakma <paul.jakma@sun.com> 2005-10-26 05:05:16 +00:00
pqueue.h 2005-05-06 Paul Jakma <paul@dishone.st> 2005-05-06 21:25:49 +00:00
prefix.c 2005-07-26 Andrew J. Schorr <ajschorr@alumni.princeton.edu> 2005-07-26 19:55:31 +00:00
prefix.h [PtP over ethernet] New peer flag allows much more addressing flexibility 2006-12-12 19:18:21 +00:00
privs.c [lib/privs] Changing user IDs should be done before dropping privileges 2006-03-30 13:25:52 +00:00
privs.h 2005-09-29 Paul Jakma <paul.jakma@sun.com> 2005-09-29 14:39:32 +00:00
regex-gnu.h Initial revision 2002-12-13 20:15:29 +00:00
regex.c 2006-01-17 Vincent Jardin <vincent.jardin@6wind.com> 2006-01-17 23:39:04 +00:00
route_types.awk [lib] Remove bare routes in route_types: fix mistake in commmit 2006-06-27 10:42:18 +00:00
route_types.txt [lib] Centralise Zserv route type information, auto-generate redist strings 2006-06-27 07:52:03 +00:00
routemap.c [lib] 'show route-map' should print call action seperate from exit policy 2005-11-12 22:36:41 +00:00
routemap.h 2005-05-06 Paul Jakma <paul@dishone.st> 2005-05-06 21:25:49 +00:00
sigevent.c 2005-05-06 Paul Jakma <paul@dishone.st> 2005-05-06 21:25:49 +00:00
sigevent.h 2005-05-06 Paul Jakma <paul@dishone.st> 2005-05-06 21:25:49 +00:00
smux.c [snmp] Fix asn_build calls to pass correct variable sizes (fixes 64-bit issues) 2006-09-26 15:30:43 +00:00
smux.h 2005-09-29 Alain Ritoux <alain.ritoux@6wind.com> 2005-09-29 16:34:30 +00:00
sockopt.c 2005-10-20 Andrew J. Schorr <ajschorr@alumni.princeton.edu> 2005-10-21 02:57:41 +00:00
sockopt.h 2005-05-06 Paul Jakma <paul@dishone.st> 2005-05-06 21:25:49 +00:00
sockunion.c [lib/sockunion] trivial: use XSTRDUP. 2006-02-21 01:37:14 +00:00
sockunion.h 2005-05-06 Paul Jakma <paul@dishone.st> 2005-05-06 21:25:49 +00:00
str.c * configure.ac: Test existance of strndup. 2005-09-19 09:53:21 +00:00
str.h * configure.ac: Test existance of strndup. 2005-09-19 09:53:21 +00:00
stream.c [lib/stream] small compile fix, use uint64_t, not u_int64_t. 2006-01-19 20:22:16 +00:00
stream.h [stream] Add quad-word support and stream_resize 2006-01-10 14:35:19 +00:00
table.c 2005-05-06 Paul Jakma <paul@dishone.st> 2005-05-06 21:25:49 +00:00
table.h 2005-05-06 Paul Jakma <paul@dishone.st> 2005-05-06 21:25:49 +00:00
thread.c [lib] Bug #134: threads should be more robust against backward time jumps 2006-08-27 06:44:02 +00:00
thread.h [lib] Bug #134: threads should be more robust against backward time jumps 2006-08-27 06:44:02 +00:00
vector.c 2005-03-14 Paul Jakma <paul.jakma@sun.com> 2005-03-14 20:19:01 +00:00
vector.h 2005-05-06 Paul Jakma <paul@dishone.st> 2005-05-06 21:25:49 +00:00
version.h.in Trying to finish previous commit ... 2005-03-26 14:13:40 +00:00
vty.c [lib] Do not call vty_close in vty_log_out to avoid possible free memory access 2006-07-11 00:06:49 +00:00
vty.h 2005-05-23 Paul Jakma <paul@dishone.st> 2005-05-23 12:43:34 +00:00
workqueue.c [lib] Trivial: fix line lengths of a comment in workqueu.c 2006-03-30 14:45:47 +00:00
workqueue.h [lib] status field/flags no longer used in struct workqueue 2006-03-30 14:25:24 +00:00
zassert.h Need RCS Id keyword. 2004-12-03 18:01:04 +00:00
zclient.c [PtP over ethernet] New peer flag allows much more addressing flexibility 2006-12-12 19:18:21 +00:00
zclient.h [lib/zclient] Export zclient_create_header 2006-01-17 17:43:18 +00:00
zebra.h [lib] include inttypes.h rather than stdint.h, provide defines where missing 2006-05-28 08:08:24 +00:00