Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | pingu_netlink: keep track of the route via interface | Natanael Copa | 2011-12-08 | 4 | -31/+49 | |
| | | | | | This is so we later can copy more routes to alternate rotue table if needed. | |||||
* | pingu_conf: add optional rule-priority config option | Natanael Copa | 2011-12-08 | 5 | -3/+12 | |
| | | | | This will set the preference for the 'ip rule' | |||||
* | man: minor fixes | Natanael Copa | 2011-10-26 | 1 | -5/+6 | |
| | ||||||
* | ==== release 1.0 ====v1.0 | Natanael Copa | 2011-10-20 | 1 | -1/+1 | |
| | ||||||
* | build: fix install locations | Natanael Copa | 2011-10-20 | 1 | -3/+9 | |
| | ||||||
* | build: install in sbin dir instead of bin dir | Natanael Copa | 2011-10-20 | 1 | -3/+3 | |
| | ||||||
* | man: use variables for paths | Natanael Copa | 2011-10-19 | 1 | -6/+6 | |
| | ||||||
* | pingu: fix help text | Natanael Copa | 2011-10-19 | 1 | -2/+6 | |
| | ||||||
* | build: make and install man pages | Natanael Copa | 2011-10-19 | 2 | -5/+17 | |
| | ||||||
* | man: initial man pages | Natanael Copa | 2011-10-19 | 5 | -0/+226 | |
| | ||||||
* | pingu_adm: implement host-status and gateway-status | Natanael Copa | 2011-10-12 | 6 | -13/+62 | |
| | ||||||
* | pingu_host: use ONLINE/OFFLINE in log message | Natanael Copa | 2011-10-11 | 1 | -2/+4 | |
| | ||||||
* | pingu_host.c: wait a sec before we send first burst | Natanael Copa | 2011-10-11 | 1 | -1/+1 | |
| | | | | This is so we get time to detect routes from kernel | |||||
* | pingu.conf: add some new example config options | Natanael Copa | 2011-10-07 | 1 | -3/+21 | |
| | ||||||
* | pingu_iface: support binding multiple ping hosts to same iface | Natanael Copa | 2011-10-07 | 6 | -28/+78 | |
| | | | | | | | Add config option for executing actions when interface gateway goes up/down. Add config option for required hosts up per interface (defaults to 1) | |||||
* | pingu: rename pingu_gateway to pingu_route | Natanael Copa | 2011-10-07 | 9 | -185/+185 | |
| | ||||||
* | pingu_adm: log commands | Natanael Copa | 2011-09-23 | 1 | -2/+3 | |
| | | | | Only supported commadn so far is "status" | |||||
* | pingu_netlink: log route changes as info instead as debug | Natanael Copa | 2011-09-23 | 1 | -1/+1 | |
| | | | | Routing changes should not happen that often so we can log them as info | |||||
* | lua: added initial lua client | Natanael Copa | 2011-09-22 | 3 | -7/+141 | |
| | ||||||
* | pingu_host: end status dump with a '\n' instead of '\0' | Natanael Copa | 2011-09-21 | 1 | -1/+1 | |
| | ||||||
* | build: configure pingu rundir from Makefile | Natanael Copa | 2011-09-21 | 1 | -5/+11 | |
| | | | | So we can override the default rundir without patching things | |||||
* | pinguctl: initial admin client | Natanael Copa | 2011-09-21 | 3 | -2/+97 | |
| | ||||||
* | pingu_adm: implement initial admin socket | Natanael Copa | 2011-09-21 | 8 | -15/+182 | |
| | | | | only supported command so far is "status" | |||||
* | pingu_iface: only load-balance if 2 or more interfaces are configured for it | Natanael Copa | 2011-09-21 | 3 | -20/+22 | |
| | | | | | We should not try load-balance at all if there are only 1 or less interfaces configured with "load-balance" | |||||
* | pingu_netlink: delete multipath route if there are no paths | Natanael Copa | 2011-09-09 | 2 | -4/+6 | |
| | | | | | | The normal action is to replace but if all ISPs goes down we need to explicit delete the multipath route. Otherwise we will have the last default gw hanging around. | |||||
* | pingu_ping: cleanup. Use constant to indicate if we ignore error or not | Natanael Copa | 2011-09-09 | 3 | -2/+5 | |
| | | | | This makes code cleaner and easier to read. | |||||
* | pingu_host: cleanup. use constant to indicate host online/offline | Natanael Copa | 2011-09-09 | 5 | -7/+14 | |
| | | | | This is to make code cleaner and easier to read. | |||||
* | pingu_netlink: do not add dead routes to multipath | Natanael Copa | 2011-09-09 | 3 | -1/+14 | |
| | | | | | We don't was add a multipath via an interface that a pinghost has set as DOWN. | |||||
* | pingu_netlink: delete the exact multipath we created | Natanael Copa | 2011-09-09 | 2 | -7/+21 | |
| | | | | | We need to keep track how we created the multipath and delete the corresponding. | |||||
* | pingu_iface: only update default route in main route table | Natanael Copa | 2011-09-09 | 1 | -1/+2 | |
| | | | | | This is related the d3c9eca81e94978284e619aca58cee93977f30a7 fix where we save all the routes in list, not only default gateways. | |||||
* | pingu_netlink: do not try remove routes that kernel aready removed | Natanael Copa | 2011-09-09 | 1 | -4/+8 | |
| | | | | | | | When losing an address the kernel will remove the routes with it so we don't need to try remove it. This is only to avoid error messages in log. | |||||
* | pingu_netlink: update iface index even if we dont have link | Natanael Copa | 2011-09-08 | 1 | -11/+9 | |
| | | | | | We might have got a new interface but still not got a link. We need update the iface index in such case. | |||||
* | pingu_netlink: remove ip rule before we reset the address | Natanael Copa | 2011-09-08 | 1 | -1/+1 | |
| | | | | We use the address when removing the ip rule. | |||||
* | pingu_iface: only update multpath route when route is a default gw | Natanael Copa | 2011-09-08 | 1 | -3/+4 | |
| | | | | | We now save all routes in list but we don't need update multipath routes unless the changed route is a default gateway. | |||||
* | pingu_netlink: save all routes for cleaup later | Natanael Copa | 2011-09-08 | 1 | -28/+15 | |
| | | | | | Instead of only saving the default gateways we save all routes and use those when we clean up on exit. | |||||
* | pingu_gateway: implement pingu_gateway_first_default() | Natanael Copa | 2011-09-08 | 2 | -1/+10 | |
| | | | | Finds first default gateway in list. | |||||
* | pingu_netlink: flush route tables on exit | Natanael Copa | 2011-09-07 | 1 | -0/+26 | |
| | ||||||
* | pingu_iface: cleanup load-balance route on exit | Natanael Copa | 2011-09-07 | 1 | -2/+19 | |
| | ||||||
* | pingu_{iface,netlink}: only remove route rules that we actually created | Natanael Copa | 2011-09-07 | 4 | -4/+15 | |
| | ||||||
* | pingu_netlink: get errorcodes from route changes | Natanael Copa | 2011-09-07 | 1 | -37/+83 | |
| | | | | | We use netlink_talk() to get back the error code. This helps us to giver more accurate error messages in logs. | |||||
* | pingu_burst: try rebind every burst | Natanael Copa | 2011-09-06 | 1 | -0/+7 | |
| | | | | In case the bind failed on the got-address event. | |||||
* | pingu_iface: bind to interface too | Natanael Copa | 2011-09-06 | 1 | -0/+5 | |
| | | | | This is so we only see the pings for that interface | |||||
* | pingu: cleanup on exit | Natanael Copa | 2011-09-06 | 5 | -1/+29 | |
| | | | | We remove the ip rule, close the ping sockets and netlink sockets. | |||||
* | pingu: catch SIGINT so we can cleanup at exit | Natanael Copa | 2011-09-06 | 1 | -0/+10 | |
| | ||||||
* | pingu: only create/lose binding when we get/lose address | Natanael Copa | 2011-09-06 | 4 | -10/+7 | |
| | | | | | We don't need to rebind every burst. We only bind when we get an address and we only lose the binding when the address is lost. | |||||
* | pingu_iface: bind to address instead of oif | Natanael Copa | 2011-09-06 | 3 | -2/+17 | |
| | | | | | Seems like ip rule does not work with source address unless we bind to address | |||||
* | pingu_netlink: fix logging of routes | Natanael Copa | 2011-09-06 | 1 | -3/+5 | |
| | | | | Sometimes we have via a gateway and sometimes we don't. | |||||
* | pingu_netlink: create nexthop route even if its alone | Natanael Copa | 2011-08-18 | 1 | -3/+1 | |
| | | | | | Otherwise it will not adjust the default route if one of the ISPs goes down. | |||||
* | pingu: add config option 'load-balance' | Natanael Copa | 2011-08-16 | 3 | -4/+25 | |
| | | | | | Add a config option to tell pingu that we want the interface to be load balanced. We also have an optional value to tell the weight. | |||||
* | pingu_iface: fix for previous commit | Natanael Copa | 2011-08-16 | 1 | -1/+1 | |
| |