summaryrefslogtreecommitdiffstats
path: root/zebra/interface.h
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Revised version if interface renaming"Stephen Hemminger2008-12-171-0/+1
| | | | | | | | This reverts commit 3b1779981cd67679dd4cddd70160859ca3d862d7. Conflicts: zebra/rt_netlink.c
* Revised version if interface renamingStephen Hemminger2008-12-161-1/+0
| | | | | | | | | | This resolves issue with static routes of multilink. In the multilink case, route is created before device exists. Later device is created as ppp0 and gets renamed to ml0. Zebra needed to orphan the old interface structure and create a new one to correctly match up the interface with the inactive route.
* Fix management of interface renamesStephen Hemminger2008-12-121-0/+1
| | | | | Need to delete then add since zebra has no clean way to pass around rename, and the configuration is based on name not ifindex.
* Do link detect in quagga, rather than kernelStephen Hemminger2008-07-281-17/+0
| | | | | | Don't use kernel support for linkdetect in quagga. This reverts commit 8d95ee9f88945ee49932b1a9f7af5abe6048e6e6.
* Revert "Backout all changes related to using kernel for linkdetect"Stephen Hemminger2008-06-201-0/+17
| | | | | This reverts commit a182091782d22218942466b062c5ef2406853491. More changes that should NOT go into hollywood
* Backout all changes related to using kernel for linkdetectStephen Hemminger2008-06-201-17/+0
| | | | | | | | Having kernel cleanup FIB was not ideal for a couple reasons: 1. It still generates lots of netlink events if there are lots of static routes. 2. Kernel changes were not accepted in mainline kernel "do it in userspace"
* Add ipv6 link detect hooksStephen Hemminger2008-05-281-0/+8
| | | | Enable ipv6 link detect in kernel if needed.
* Change how link-detect is configured in buildStephen Hemminger2008-05-271-2/+1
| | | | | Rather that looking for /proc/sys/net/ipv4/conf, use --enable-linkdetect flag to configure.
* Turn on kernel link-detectStephen Hemminger2008-05-221-0/+10
| | | | | If interface has link-detect enabled, try and turn on link-detect in the kernel.
* [zebra] fix inconsistencies in ifstat_update_* declarations and definitionspaul2006-08-061-1/+1
| | | | | | | | | | | 2006-08-06 Paul Jakma <paul.jakma@sun.com> * interface.h: (ifstat_update_proc) declaration should match ifstat_update_sysctl really, which is to not return status, as such status is not used anywhere. * if_{proc,sysctl}.c: Make ifstat_update_* definitions and return values consistent with each other and their declarations, ie: (void) (*) (void).
* [zebra/solaris] Interface state fixups for Solaris.paul2006-01-251-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-01-25 Paul Jakma <paul.jakma@sun.com> * (general) More solaris PF_ROUTE hacks. The IFF_UP mangling for solaris was incomplete on the PF_ROUTE side. fix it. This changeset generally uglifies things. For some future work I'd like to see the state changes seperated out from the details of the code. Differences between systems might then be slightly easier to implement without convoluted hacks. Changes should be specific to Solaris mostly, however also tested on FreeBSD 6. * if_ioctl_solaris.c: (interface_list_ioctl) ignore ~IFF_UP interfaces, we'll hear about them when/if interface goes up through NEWADDR. Update flags explicitely at end of it to kick mangling. * ioctl_solaris.c: (if_mangle_up) removed to interface.c, in kind. (lifreq_set_name) more convenient to take the string, than the ifp. (if_get_flags_direct) new convenience function, returns the actual flags. Used during bootstrap in if_ioctl_solaris.c to peek at flags of logical interfaces to see whether or not to ignore them. (if_get_flags) ENXIO means it's gone, poke out IFF_UP and kick flags update. (if_{un,}set_flags) flags argument should be 64bit. * ioctl.{c,h}: flags argument should be 64bit. * interface.h: Add a 'primary_state' flag to struct zebra_if on SUNOS_5. Export if_flags_update. * interface.c: (if_flags_mangle) moved over in kind from ioctl_solaris.c. Nasty kludge to try get IFF_UP right, as much as is possible. Also keep track of the actual IFF_UP value for the primary interface, so we can know when the ifp must be deleted. (if_flags_update) Take a new interface flags value, apply it to the interface, and take whatever actions are required due to flag transitions. (if_refresh) flag state change logic is moved out to previous. Just call if_get_flags, which will end up using previous to effect the update of flags. (if_flag_dump_vty) IFF_IPV{4,6} aren't interesting, VIRTUAL and NOXMIT are though. * kernel_socket.c: (ifm_read) Down->Down transitions shouldn't create ifp, for non-IFANNOUNCE systems. Use if_flags_update to update flags. flag transition logic is now handled automatically through if_flags_update. (ifam_read) Better to call if_refresh *after* adding connected addresses, as connected count affects IFF_UP on IFF_UP-mangled systems. On Solaris, Up->Down due to DELADDR means we need to delete the ifp - the IFINFO might already have been and gone. * rt.h: include other dependent headers.
* 2005-06-28 Paul Jakma <paul.jakma@sun.com>paul2005-06-281-12/+12
| | | | | | | * (global) Extern and static'ification, with related fixups of declarations, ensuring files include their own headers, etc. if_ioctl.c: (interface_info_ioctl) fix obvious arg mis-order in list loop
* 2005-03-25 Jean-Mickael Guerin <jean-mickael.guerin@6wind.com>vincent2005-03-251-7/+38
| | | | | * interface.c, interface.h, rtadv.c, rtadv.h: extensions to Neighbor discovery for Mobile IPv6.
* New way to handle secondary addresses from Gilad Arnold.hasso2004-10-031-0/+5
|
* Remove usage of evil list and listnode typedefs.hasso2004-09-231-2/+2
|
* 2004-07-23 Sowmini Varadhan <Sowmini.Varadhan@Sun.COM>paul2004-07-231-2/+7
| | | | | | | | | | | | * if_ioctl_solaris.c: HAVE_IPV6 ifdef fixups * zserv.c: ditto * ioctl_solaris.c: ditto. * interface.c: cast for LLADDR * interface.h: Add guards, include redistribute.h and remove extraneous definitions of zebra_interface_{up,down}_update * ioctl.h: Add AF_IOCTL define for non SOLARIS_IPV6 * redistribute.h: include dependent header, zserv.h * zserv.h: include dependent header, rib.h
* OK, here it is - irdp support. But don't expect me to fix any bugs in it.hasso2004-06-121-0/+9
|
* Last fixes from 6Wind patch.hasso2003-05-251-1/+3
|
* Initial revisionpaul2002-12-131-0/+180