| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
We should not try load-balance at all if there are only 1 or less
interfaces configured with "load-balance"
|
|
|
|
|
| |
We need to keep track how we created the multipath and delete the
corresponding.
|
| |
|
|
|
|
| |
We remove the ip rule, close the ping sockets and netlink sockets.
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
To make code cleaner we move all gateway functions to separate file
and rename a few functions.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
}
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
make the pingu_gateway struct also hold a destination so the struct can
be reused.
use sockaddr_any as much as possible.
|
|
|
|
|
|
|
|
| |
- add default gateways to our gw list
- use sockaddr_init to init our gw
- implement sockaddr_to_string
TODO: delete default gateways from list
|
|
|
|
| |
add common sockaddr utility functions
|
| |
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
| |
To test if we can use socket.
|
|
|
|
|
|
| |
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.
|
|
|