Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | move soures to src subdir | Natanael Copa | 2013-08-22 | 1 | -165/+0 |
| | |||||
* | pingu_host: bring interface down instantly if interface disapears | Natanael Copa | 2012-06-12 | 1 | -0/+8 |
| | | | | | | | | | We need execute the down hook in case interface goes down if we have gre tunnels bound to an interface. If for example ppp0 disapears (pppd restart) and comes back before pingu notices it, the gre interface will not be bound to anything. So we force the "down" event instantly if we detect that the iface is gone. | ||||
* | pingu: cleanup various structures on shutdown | Natanael Copa | 2012-03-06 | 1 | -0/+16 |
| | |||||
* | pingu_adm: implement host-status and gateway-status | Natanael Copa | 2011-10-12 | 1 | -1/+3 |
| | |||||
* | 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_iface: support binding multiple ping hosts to same iface | Natanael Copa | 2011-10-07 | 1 | -23/+23 |
| | | | | | | | 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_host: end status dump with a '\n' instead of '\0' | Natanael Copa | 2011-09-21 | 1 | -1/+1 |
| | |||||
* | pingu_adm: implement initial admin socket | Natanael Copa | 2011-09-21 | 1 | -0/+11 |
| | | | | only supported command so far is "status" | ||||
* | pingu_ping: cleanup. Use constant to indicate if we ignore error or not | Natanael Copa | 2011-09-09 | 1 | -1/+1 |
| | | | | This makes code cleaner and easier to read. | ||||
* | pingu_host: cleanup. use constant to indicate host online/offline | Natanael Copa | 2011-09-09 | 1 | -3/+3 |
| | | | | This is to make code cleaner and easier to read. | ||||
* | pingu_netlink: do not add dead routes to multipath | Natanael Copa | 2011-09-09 | 1 | -0/+9 |
| | | | | | We don't was add a multipath via an interface that a pinghost has set as DOWN. | ||||
* | pingu: implement new config format | Natanael Copa | 2011-08-05 | 1 | -191/+29 |
| | | | | | | | | | | | | | | | | | | | | | New format allows users to define interfaces and ping hosts separately. This means we can run pingu in routing-only mode to set up and manage route tables for multi-isp. We allow the user config a preferred alternate route table for each interface. If not configured, pingu will pick one. Example interface definition looks like: interface eth0 { route-table 10 } Example host definition looks like: host 192.168.0.1 { bind-interface eth0 } | ||||
* | pingu: use host label when logging instead of ip addr | Natanael Copa | 2011-07-29 | 1 | -4/+2 |
| | |||||
* | pingu: remove default gw from main route table when isp goes down | Natanael Copa | 2011-07-29 | 1 | -0/+7 |
| | |||||
* | Use sockaddr_any for storing address and gateway | Natanael Copa | 2011-07-28 | 1 | -2/+2 |
| | |||||
* | pingu: add initial code to modify routing tables | Natanael Copa | 2011-07-21 | 1 | -0/+5 |
| | | | | | For now we just create the alternate routing tables from table 10 and +1 for each new interface. First interface is 10, second is 11 etc. | ||||
* | pingu_netlink: monitor link status of interfaces via netlink | Natanael Copa | 2011-07-13 | 1 | -2/+0 |
| | |||||
* | pingu_iface: implement pingu_iface_usable() | Natanael Copa | 2011-07-13 | 1 | -1/+1 |
| | | | | To test if we can use socket. | ||||
* | pingu: try bind socket to interface every burst | Natanael Copa | 2011-07-13 | 1 | -5/+10 |
| | | | | | | It might be an interface that disappeared and came back, e.g ppp0. We also don't even try unless we have a successful binding. | ||||
* | pingu: run the route-script again | Natanael Copa | 2011-07-08 | 1 | -0/+50 |
| | |||||
* | pingu: move config reading to pingu_host and make host_list global | Natanael Copa | 2011-07-08 | 1 | -2/+144 |
| | |||||
* | pingu_host: execute the action | Natanael Copa | 2011-07-08 | 1 | -1/+25 |
| | |||||
* | pingu: fix misc bugs | Natanael Copa | 2011-07-07 | 1 | -2/+3 |
| | | | | fix some segfaults and some logic bugs | ||||
* | pingu_host: initial implementation | Natanael Copa | 2011-07-07 | 1 | -0/+49 |