Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | pingu_{iface,netlink}: only remove route rules that we actually created | Natanael Copa | 2011-09-07 | 1 | -2/+11 |
| | |||||
* | 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: cleanup on exit | Natanael Copa | 2011-09-06 | 1 | -1/+14 |
| | | | | We remove the ip rule, close the ping sockets and netlink sockets. | ||||
* | pingu: only create/lose binding when we get/lose address | Natanael Copa | 2011-09-06 | 1 | -1/+1 |
| | | | | | 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_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 | 1 | -4/+12 |
| | | | | | 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: implement load balancing with nexthops | Natanael Copa | 2011-08-15 | 1 | -14/+132 |
| | | | | We do loadbalancing by creating a new default gw with nexthops | ||||
* | pingu_gateway: move is_default_gw | Natanael Copa | 2011-08-15 | 1 | -14/+0 |
| | | | | It belongs in pingu_gateway | ||||
* | pingu_netlink: log error responses | Natanael Copa | 2011-08-15 | 1 | -0/+13 |
| | |||||
* | pingu: use source address for ip rule and copy scope link route | Natanael Copa | 2011-08-02 | 1 | -14/+27 |
| | |||||
* | pingu: remove default gw from main route table when isp goes down | Natanael Copa | 2011-07-29 | 1 | -3/+10 |
| | |||||
* | pingu: clean up for ipv6 support in future | Natanael Copa | 2011-07-28 | 1 | -49/+89 |
| | | | | | | | make the pingu_gateway struct also hold a destination so the struct can be reused. use sockaddr_any as much as possible. | ||||
* | pingu: add gw to list and minor cleanup | Natanael Copa | 2011-07-28 | 1 | -2/+6 |
| | | | | | | | | - add default gateways to our gw list - use sockaddr_init to init our gw - implement sockaddr_to_string TODO: delete default gateways from list | ||||
* | pingu_netlink: remove duplicate routing code. | Natanael Copa | 2011-07-28 | 1 | -43/+16 |
| | |||||
* | pingu_netlink: add support for metric and sync deleted routes | Natanael Copa | 2011-07-22 | 1 | -19/+98 |
| | | | | | If a route is manually removed in main table we also remove it from our separate route table. | ||||
* | pingu: create or delete ip rule on link status change | Natanael Copa | 2011-07-21 | 1 | -7/+58 |
| | | | | | When we detect link on interface we create a route rule and we delete it when we lose the link. | ||||
* | pingu: add initial code to modify routing tables | Natanael Copa | 2011-07-21 | 1 | -5/+91 |
| | | | | | 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: pick up primary address for interfaces | Natanael Copa | 2011-07-15 | 1 | -7/+50 |
| | |||||
* | pingu_netlink: monitor link status of interfaces via netlink | Natanael Copa | 2011-07-13 | 1 | -0/+318 |