summaryrefslogtreecommitdiff
path: root/usr.sbin
AgeCommit message (Collapse)Author
2007-10-14do not fallthroughTheo de Raadt
2007-10-14Switch log_sockaddr() to take a void * so it is not necessary to cast theClaudio Jeker
sockaddr_in6 or sockaddr_in to a sockaddr.
2007-10-14Missing spaceClaudio Jeker
2007-10-14'expresion' -> 'expression'. Reported by Jung on tech@.Kenneth R Westerback
2007-10-14'syncronize' -> 'synchronize'. From Diego Casati.Kenneth R Westerback
2007-10-14please lintTheo de Raadt
2007-10-13should not be in the treeTheo de Raadt
2007-10-13avoid errno trashing in signal handlerTheo de Raadt
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-13Funny typo, it is fib not fip so adjust function name.Claudio Jeker
2007-10-12Silence some lint(1) warningsBret Lambert
ok pyr@
2007-10-12Sanitize the output of "show interface detail".Esben Norby
2007-10-12Properly format the output of "show interface".Esben Norby
In order to make room for the longer IPv6 addresses in the output, the two collumns nc and ac must go. Neighbor and Adjacent Neighbor Count is still avalable in "show interface detail". ok claudio@
2007-10-12Controller for the recently imported ospf6d(8) daemon.Esben Norby
Currently simple stuff like show interface works. Not yet connected to the builds. ok claudio@
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-11Bye bye global ospf options. OSPF options are per area (at least the oneClaudio Jeker
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. OK norby@
2007-10-11Don't check for OSPF_OPTION_E in the parent. OSPF_OPTION_E is per area andClaudio Jeker
so the parent process has no way to know if it should redistribute or not. Let the RDE decide. OK norby@
2007-10-11Cleanup the way we display timers.Esben Norby
It does not make sense to display timer = 0 as "Stopped". When a timer is 0 it usually means that it is getting reset very soon. Display the string "00:00:00" instead. ok claudio@
2007-10-11Do not overload nbr->options with the dd exchange bits. nbr->options is usedClaudio Jeker
by the hello protocol. Instead add a dd_more flag that is used together with (the renamed) dd_master flag. Tested and OK norby@
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-09use macro argumentTheo de Raadt
2007-10-09missing newlines in printfsTheo de Raadt
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-09Do not notify twice about the same timeout in check_icmp, this previouslyPierre-Yves Ritschard
corrupted statistics. Found out by Piotr Sikora < piotr@sikora.nu >.
2007-10-09"Minimum IP MTU" means what it says. Ensure that packets returned byKenneth R Westerback
dhcpd are the minimum size or larger no matter what the client thinks the minimum allowable size is. Found by Nahuel Riva and Gera Richarte. Fix by millert@.
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@
2007-10-08attribute packed -> __packedGilles Chehade
OK millert
2007-10-07trash $Header goo which is just annoying; 5595Theo de Raadt
2007-10-07delete ugly $Header stuff; pr 5595Theo de Raadt
2007-10-06Allow the various pf table actions to operate independently. For example,Chris Kuethe
"-L leased" wouldn't work without "-A abandoned". testing help from merdely "i like" deraadt