summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ospf6d/interface.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Remove unneeded <stddef.h>denis2020-05-271-2/+1
|
* Rename orig_rtr_lsa_area() to orig_rtr_lsa()denis2020-01-021-5/+5
| | | | | | | | Now that area is part of iface, original orig_rtr_lsa() is useless. Also verifying that area != NULL is not needed in some cases (these are leftovers of the previous diff). OK remi@
* Area is now part of struct ifacedenis2019-12-231-2/+3
| | | | OK remi@
* Scale send buffer on socket.denis2019-12-221-3/+11
| | | | OK remi@
* When system calls indicate an error they return -1, not some arbitraryderaadt2019-06-281-7/+7
| | | | | | value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if this strictness helps us in the future.
* Add support for rdomains.remi2018-07-121-2/+3
| | | | | small quirk from tb@ ok phessler@
* Increase SO_RCVBUF of the ospf socket to 256k having this buffer can resultclaudio2018-03-111-2/+5
| | | | | in packet loss on busy and big networks and therefor to instability. From camield@
* As done for bgpd recently, rename if_mediatype to if_type in ospfd/ospf6d.stsp2015-09-271-4/+4
| | | | | And some ifmedia64 fixes. "move forward" deraadt@
* another annoying %ideraadt2013-11-011-2/+2
|
* Fix trailing whitespaces.bluhm2012-09-171-2/+2
|
* Rework the distribution of link state and iface FSM state changes.claudio2011-07-071-5/+5
| | | | | Link state changes are sent from the parent to both childs and iface FSM state changes are sent from the ospfe to the rde.
* LINK_STATE_IS_UP() cleanup userland part. There is no need to specialclaudio2011-07-041-4/+2
| | | | | | | | case carp(4) interfaces anymore. LINK_STATE_IS_UP() almost always does the right job. OK deraadt@ henning@ This needs a -current kernel or link state may be not reported correctly.
* Make sure that passive interfaces (like carp) are added to theclaudio2011-07-041-5/+5
| | | | | intra-area rtr LSA. Diff initialy made by Patrick Coleman but simplified by myself. Tested and OK dlg@
* Do not special case loopback interfaces on init. Instead force themclaudio2011-05-061-5/+9
| | | | | | to IF_STA_LOOPBACK in if_act_start() this way they will repsect IFF_UP on startup. Also mark the interfaces as passive. Initial diff provided by Patrick Coleman. OK dlg@
* if_new() would treat the new interface as a virtual link if the ifnamestsp2009-09-201-3/+8
| | | | | | | | | | | parameter was NULL. But it's easy enough to make ifname != NULL by accident, e.g. by passing a zeroed or even uninitialised array. This function should accept a 'virtual' flag of some kind instead. Since we don't even support virtual links yet, change the check to "if (virtual)", #if 0 the check, and code that depends on it (including a file-scope variable), and add comments marking this as TODO. ok claudio, who requested #if 0 instead of deletion.
* For SPF calculation, we will need the source address specifiedstsp2009-03-291-2/+3
| | | | | | | in hello packets by next-hop neighbours. So when notifying the RDE of a new neighbour, send the source address, too. ok claudio@
* Remove origination of Intra-Area-Prefix LSAs from ospfe.stsp2009-02-191-2/+1
| | | | | | Will soon be done in rde instead. "Sure but don't wait too long before readding the code in rde" claudio@
* Sync iface fsm state from ospfe to rde.stsp2009-02-191-1/+5
| | | | | | | | | Also syncs other fields the ospfe is syncing to when getting iface updates from parent process. None of these fields are used by the rde yet, but state will be important soon, for proper origination of Intra-Area-Prefix LSAs. ok claudio@
* Originate Intra-Area-Prefix LSAs which reference a router LSA.stsp2009-01-291-1/+2
| | | | | | | Routers can now advertise prefixes with global scope throughout an area. This paves the way towards doing SPF calculations to generate routing tables for a single area. ok claudio@
* Propagate the neighbour's interface ID, as received in hello packets,stsp2009-01-271-2/+2
| | | | | to the RDE. ok claudio@
* First try at originating Link (type-8) LSA. Code is wrong and the initialclaudio2008-12-301-2/+4
| | | | | | | LSA is lost in lsa_flood. Put this in because it goes in the right direction and ospf6d is work in progress. Add necessary framework so that we can print Link LSA in ospf6ctl. Diff mostly from stsp@ ospf6ctl part by myself
* Monster commit of stuff I did mostly last month. What it does:claudio2007-12-131-36/+76
| | | | | | | | | | | * removes kif and uses iface for everything interface related. This removes unneeded data redundancy which makes the code more complex. * adds the link local prefix to struct iface and attaches a list with the other prefixes to the struct iface. This is needed to generate the link LSA. * disconnects struct iface from struct area (the backpointer is gone) this will make the reload code a bit easier. norby@ agrees with the direction we're heading with this
* Monster diff to bring us a bit on track again.claudio2007-11-271-1/+2
| | | | | | | | | | | | a) implement all (or at least most) lsa_check() cases. b) classify the LSA scope correctly and add a per interface lsa_tree for the link local stuff. c) implement a function to parse a prefix. There is still a lot missing currently link local LSA are added to the interface tree but nothing can access them (lsa_find() and a few friends need some changes). OK norby@
* Print the neighbor ID instead of the neighbor address in if_act_elect().claudio2007-11-241-5/+5
| | | | | Neighbors are identified by ID in OSPF v3 and trying to print a IPv6 addr as AF_INET was wrong anyway.
* No need to store the interface mask. An interface represents a link and isclaudio2007-10-111-3/+1
| | | | | only addressed via its link local address. All networks on top of it are handled separately via type 8 Link-LSA.
* In OSPFv3 auth crypt is no longer (actually all the auth code is gone) soclaudio2007-10-111-3/+1
| | | | kill crypt_seq_num as well.
* Unneeded and to noisy debug outputclaudio2007-10-091-2/+1
|
* Instead of IP_RECVIF we use IPV6_RECVPKTINFO to get the ifindex and theclaudio2007-10-091-21/+20
| | | | | | | destination address of incomming packets. This also removes the need for IP_HDRINCL. Additionally use IPV6_CHECKSUM to let the kernel do the necessary packet checksumming, way easier than doing it in userland. OK norby@
* Welcome ospf6dnorby2007-10-081-0/+803
The new ospf6d daemon will support OSPFv3, basically OSPF for IPv6 networks. It is heavily based on ospfd(8), it is more or less a copy and paste of it. Currently some unneeded stuff has been removed and the trasition from IPv4 to IPv6 has begun. ospf6d is not very usefull at the moment, it is being imported to allow more people to work on it concurrently. Not yet connected to the builds. ok claudio@ dlg@