summaryrefslogtreecommitdiff
path: root/usr.sbin/ospf6d
AgeCommit message (Collapse)Author
2007-10-14'syncronize' -> 'synchronize'. From Diego Casati.Kenneth R Westerback
2007-10-13superceed -> supersede; from Tamas TEVESZJason McIntyre
2007-10-13in all these programs using the same pfctl-derived parse.y, re-unify theTheo de Raadt
yylex implementation and the code which interacts with yylex. this also brings the future potential for include support to all of the parsers. in the future please do not silly modifications to one of these files without checking if you are de-unifying the code. checked by developers in all these areas.
2007-10-13From ospfd: Funny typo, it is fib not fip so adjust function name.Claudio Jeker
2007-10-11There is no need to support interface em0:<IP> anymore. Remove most of theClaudio Jeker
code the rest will be reused somehow.
2007-10-11No need to store the interface mask. An interface represents a link and isClaudio Jeker
only addressed via its link local address. All networks on top of it are handled separately via type 8 Link-LSA.
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-11In OSPFv3 auth crypt is no longer (actually all the auth code is gone) soClaudio Jeker
kill crypt_seq_num as well.
2007-10-11Disable some code that is currently far from working and results in frequentClaudio Jeker
session resets because of bad packets. With this it seems we survive the hello and database exchange phases. A closer look at the DR and BDR calculation is still needed.
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-11Last commit added way to much stuff. Revert the readd of global options.Claudio Jeker
2007-10-11area_ospf_options() should return the options in network byte order.Claudio Jeker
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-11From ospfd:Claudio Jeker
Do not overload nbr->options with the dd exchange bits. nbr->options is used by the hello protocol. Instead add a dd_more flag that is used together with (the renamed) dd_master flag.
2007-10-11next step in the yylex unification: handle quoted strings in a nicer fashionTheo de Raadt
as found in hoststated, and make all the code diff as clean as possible. a few issues remain mostly surrounding include support, which will likely be added to more of the grammers soon. ok norby pyr, others
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-10Address scope was probably the most stupid idea comming out of IPv6.Claudio Jeker
Abusing the 3rd and 4th byte of a ff02::/32 address to store the scope is wrong wrong wrong. Depending on the calls it is not possible to compare addresses with IN6_ARE_ADDR_EQUAL(). Remove the scope hack when fetching interface addresses so that we never rely on that inside ospf6d. 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-09Unneeded and to noisy debug outputClaudio Jeker
2007-10-09Bye bye in_cksum.c, you're not needed here anymore.Claudio Jeker
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-09Instead of IP_RECVIF we use IPV6_RECVPKTINFO to get the ifindex and theClaudio Jeker
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@
2007-10-09The router dead_interval switched from 32bit to a 16bit value in OSPFv3.Claudio Jeker
OK norby@
2007-10-08Use a small cyclic buffer ring in log_in6addr() so that the function can beClaudio Jeker
used more then once per printf. The current limit is 4.
2007-10-08bad place for a stray space;Jason McIntyre
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@