#
f8d44979 |
| 03-Nov-2021 |
deraadt <deraadt@openbsd.org> |
use some sizeof, rather than INADDRSZ/IN6ADDRSZ; ok claudio
|
#
ac61aa8a |
| 19-Jan-2021 |
claudio <claudio@openbsd.org> |
Kill global eigrpd_process and instead pass the proc to merge_config() and config_clear(). Also set log_procname directly and remove the log_procnames array.
|
#
d0f844f1 |
| 05-Aug-2018 |
mestre <mestre@openbsd.org> |
Revert back previous and remove cpath pledge(2) promise entirely. We decided that not deleting the unix control sockets cause no harm and this way we close another attack surface by not allowing the
Revert back previous and remove cpath pledge(2) promise entirely. We decided that not deleting the unix control sockets cause no harm and this way we close another attack surface by not allowing the daemon to create/delete any more files.
tweak and OK florian@
show more ...
|
#
87d37a17 |
| 08-Feb-2018 |
claudio <claudio@openbsd.org> |
Bump the read sockbuf of the routing socket to 2MB, may help reduce some of the desync cases. OK benno@
|
#
06c7f8f8 |
| 22-Feb-2017 |
renato <renato@openbsd.org> |
No need to use SIOCGIFRDOMAIN anymore.
|
#
fcdf914b |
| 02-Sep-2016 |
benno <benno@openbsd.org> |
work on making log.c similar in all daemons:
move daemon-local functions into new logmsg.c, and reduce the (mostly whitespace) differences so that log.c's can be diffed easily.
ok claudio@
|
#
a7928e1e |
| 02-Sep-2016 |
renato <renato@openbsd.org> |
Minor tweaks
|
#
ab786365 |
| 02-Sep-2016 |
renato <renato@openbsd.org> |
Make functions and variables static whenever possible.
style(9) says: "Function prototypes for private functions (i.e., functions not used elsewhere) go at the top of the first source module. In use
Make functions and variables static whenever possible.
style(9) says: "Function prototypes for private functions (i.e., functions not used elsewhere) go at the top of the first source module. In userland, functions local to one source module should be declared 'static'".
The benefits of doing so include: * clean up of the eigrpd global namespace; * improved readability; * more hints to the compiler/linker to generate more efficient code.
Additional changes: * Declare all extern variables in header files; * Clean up the indentation of all function prototypes and global variables.
ok claudio@ benno@
show more ...
|
#
414c2f5b |
| 02-Sep-2016 |
renato <renato@openbsd.org> |
Merge the recv_packet_v[46] functions into one.
This reduces some code duplication and makes it easier to see the difference between the IPv4 and IPv6 raw sockets API.
tweak + ok claudio@, ok benno@
|
#
e14e95d7 |
| 02-Sep-2016 |
renato <renato@openbsd.org> |
Simplify handling of multicast addresses.
During the initialization of the eigrpe process, use inet_pton() to store the EIGRP multicast addresses in two global variables: * global.mcast_addr_v4 (in_
Simplify handling of multicast addresses.
During the initialization of the eigrpe process, use inet_pton() to store the EIGRP multicast addresses in two global variables: * global.mcast_addr_v4 (in_addr); * global.mcast_addr_v6 (in6_addr).
This way we don't need to create temporary in_addr/in6_addr variables everytime we need to use these multicast addresses for something.
"I like this" claudio@ ok benno@
show more ...
|
#
8072de9b |
| 02-Sep-2016 |
renato <renato@openbsd.org> |
Remove superfluous includes and follow style(9).
ok claudio@ benno@
|
#
a80b52f6 |
| 08-Aug-2016 |
renato <renato@openbsd.org> |
Simplify shutdown process
On shutdown, there's no need to use kill(2) to kill the child processes. Just closing the IPC sockets will make the children receive an EOF, break out from the event loop a
Simplify shutdown process
On shutdown, there's no need to use kill(2) to kill the child processes. Just closing the IPC sockets will make the children receive an EOF, break out from the event loop and then exit.
This "pipe teardown" removes a PID reuse race condition, makes the code simpler and allow us to remove "proc" from pledge.
OK and tweaks from claudio@
show more ...
|
#
ed7fd2c0 |
| 05-Jun-2016 |
renato <renato@openbsd.org> |
Improve security by calling exec after fork.
For each child process (rde and eigrpe), re-exec eigrpd with a special "per-role" getopt flag. This way we have seperate ASLR/cookies per process.
Based
Improve security by calling exec after fork.
For each child process (rde and eigrpe), re-exec eigrpd with a special "per-role" getopt flag. This way we have seperate ASLR/cookies per process.
Based on a similar patch for bgpd, from claudio@
ok deraadt
show more ...
|
#
c64c2ffc |
| 15-Apr-2016 |
renato <renato@openbsd.org> |
Check for subnet overlap between the configured summary-addresses.
|
#
02eb61ef |
| 15-Apr-2016 |
renato <renato@openbsd.org> |
Move several other variables out of eigrpd_conf.
Now eigrpd_conf contains only variables that can be modified via a config reload. The other variables were moved to a new struct called eigrpd_global
Move several other variables out of eigrpd_conf.
Now eigrpd_conf contains only variables that can be modified via a config reload. The other variables were moved to a new struct called eigrpd_global, which is now a central point for storing global variables.
show more ...
|
#
05785934 |
| 15-Apr-2016 |
renato <renato@openbsd.org> |
Move the command line options out of struct eigrpd_config into an own flag field since these can't be modified via a config reload.
Pulled from bgpd. Original author: claudio@
|
#
bce3b5b3 |
| 15-Apr-2016 |
renato <renato@openbsd.org> |
Minor fixes and code cleanup.
* whitespace cleanup; * copy in_addr structs directly; * add more malloc return value checks; * fix some log messages; * turn ifacecnt into a static variable; * use eig
Minor fixes and code cleanup.
* whitespace cleanup; * copy in_addr structs directly; * add more malloc return value checks; * fix some log messages; * turn ifacecnt into a static variable; * use eigrp_addrcmp() on if_deladdr() to avoid code duplication; * s/route_print_origin/log_route_origin/ * more smaller issues.
show more ...
|
#
6c428d2e |
| 21-Feb-2016 |
renato <renato@openbsd.org> |
Introduce the bad_addr() family of functions.
These functions improve code reusability as there's no more need to check for all possible "bad" addresses in several different places.
Besides that, t
Introduce the bad_addr() family of functions.
These functions improve code reusability as there's no more need to check for all possible "bad" addresses in several different places.
Besides that, this patch introduce additional checks in the code.
show more ...
|
#
44faa115 |
| 21-Feb-2016 |
renato <renato@openbsd.org> |
Several minor tweaks.
|
#
37212791 |
| 15-Jan-2016 |
renato <renato@openbsd.org> |
Minor tweaks.
|
#
0e96235e |
| 15-Jan-2016 |
renato <renato@openbsd.org> |
Add support for manually clearing neighbors.
|
#
dcfaa8d4 |
| 13-Dec-2015 |
renato <renato@openbsd.org> |
Introduce new command to show traffic statistics.
Can be useful as a troubleshooting tool.
|
#
bc6e1915 |
| 21-Oct-2015 |
renato <renato@openbsd.org> |
Add support for route summarization.
Working great but need more testing, especially with ipv6. For now we don't validate if one configured summary is inside another or the presence of duplicates. W
Add support for route summarization.
Working great but need more testing, especially with ipv6. For now we don't validate if one configured summary is inside another or the presence of duplicates. Will address these issues in a future commit.
show more ...
|
#
0cefb3ad |
| 21-Oct-2015 |
renato <renato@openbsd.org> |
Minor fixes and code cleanup.
|
#
9d6d4006 |
| 04-Oct-2015 |
renato <renato@openbsd.org> |
Add option to configure or disable the DUAL active timeout.
|