summaryrefslogtreecommitdiff
path: root/usr.sbin/ospf6d/hello.c
AgeCommit message (Collapse)Author
2010-05-26Rename some imsg bits to make namespace collisions less likely buf toNicholas Marriott
ibuf, buf_read to ibuf_read, READ_BUF_SIZE to IBUF_READ_SIZE. ok henning gilles claudio jacekm deraadt
2010-02-01Fix logic error (&& vs. ||), found while looking for inspiration for smtpdJacek Masiulaniec
state machine needed by the features that are coming along. ok claudio@
2009-03-29For SPF calculation, we will need the source address specifiedStefan Sperling
in hello packets by next-hop neighbours. So when notifying the RDE of a new neighbour, send the source address, too. ok claudio@
2009-01-27Propagate the neighbour's interface ID, as received in hello packets,Stefan Sperling
to the RDE. ok claudio@
2009-01-26RFC5340 says neighbours are identified solely by their router ID in OSPFv3,Stefan Sperling
regardless of link type. So don't ever use source addresses from the IP header to match known neighbours when receiving hello packets. ok claudio@
2008-12-28area_ospf_options() should not return network byte order options. InsteadClaudio Jeker
the callers should take care of getting the byte order right. While there remove the opts[123] from the hello_hdr and use LSA_24_* to handle this nasty fields instead. Now router LSA have the correct flags set.
2008-12-28Send the interface index in the correct byte order and add iface_id toClaudio Jeker
struct nbr to identify the neighbors correclty. From Stefan Sperling stsp (at) stsp.name
2007-12-13Monster commit of stuff I did mostly last month. What it does:Claudio Jeker
* 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
2007-10-16Fix the neighbor election process.Esben Norby
ok claudio@
2007-10-11OSPFv3 runs on links not on networks so there is no need for a mask in theClaudio Jeker
hello protocol. Kill no longer needed code.
2007-10-11The person that came up with the glorious idea to define a 24bit field shouldClaudio Jeker
be hanged and shot. Add a ntohl() around the area_ospf_options() call.
2007-10-11From ospfd:Claudio Jeker
Bye bye global ospf options. OSPF options are per area (at least the one flag that we set). So introduce a area_ospf_options() function that will return the correct flags for each area. This makes stub area support a lot easier. Don't check for OSPF_OPTION_E in the parent. OSPF_OPTION_E is per area and so the parent process has no way to know if it should redistribute or not.
2007-10-10send_packet() now takes a struct in6_addr as destination instead of aClaudio Jeker
struct sockaddr_in6 and builds the struct sockaddr_in6 internaly adding scope if necessary. While there switch to sendto() we don't need any of the sendmsg() features here. OK norby@
2007-10-10Turn on the V6 and E bits in hello messages. This makes other OSPFv3 routersClaudio Jeker
a bit more happy. The E bit should be turned of in stub areas but there is no support for those at the moment. OK norby@
2007-10-09Remaining bit of last night work. Make packet reception use all the goodiesClaudio Jeker
introduced (checksumming is no longer needed, no IP header checking is needed, get a in6_pktinfo with the ifindex and dest addr, cleanup and remove a lot of other code). With this ospf6d is able to send and receive first hello packets. OK norby@
2007-10-08Welcome ospf6dEsben Norby
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@