Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | pingu_gateway: cleanup. split out gateway funcs | Natanael Copa | 2011-08-05 | 5 | -119/+145 | |
| | | | | | To make code cleaner we move all gateway functions to separate file and rename a few functions. | |||||
* | pingu_conf: cleanup. use a pingu_conf struct | Natanael Copa | 2011-08-05 | 3 | -32/+47 | |
| | ||||||
* | pingu_conf: fix lineno on error messages | Natanael Copa | 2011-08-05 | 1 | -9/+9 | |
| | | | | and some whitespace fixes | |||||
* | pingu: implement new config format | Natanael Copa | 2011-08-05 | 9 | -245/+323 | |
| | | | | | | | | | | | | | | | | | | | | | 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_iface: init the sockets when init instead of when create | Natanael Copa | 2011-08-02 | 2 | -6/+9 | |
| | ||||||
* | pingu: use source address for ip rule and copy scope link route | Natanael Copa | 2011-08-02 | 3 | -19/+42 | |
| | ||||||
* | pingu: use host label when logging instead of ip addr | Natanael Copa | 2011-07-29 | 2 | -7/+4 | |
| | ||||||
* | pingu: fix bug when storing addrinfo struct to sockaddr_any | Natanael Copa | 2011-07-29 | 3 | -11/+53 | |
| | ||||||
* | pingu: remove default gw from main route table when isp goes down | Natanael Copa | 2011-07-29 | 5 | -4/+31 | |
| | ||||||
* | pingu: delete gateway from our list | Natanael Copa | 2011-07-28 | 1 | -0/+49 | |
| | ||||||
* | pingu: clean up for ipv6 support in future | Natanael Copa | 2011-07-28 | 3 | -68/+121 | |
| | | | | | | | 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 | 5 | -15/+52 | |
| | | | | | | | | - 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: use sockaddr_any | Natanael Copa | 2011-07-28 | 8 | -37/+122 | |
| | | | | add common sockaddr utility functions | |||||
* | Use sockaddr_any for storing address and gateway | Natanael Copa | 2011-07-28 | 3 | -4/+18 | |
| | ||||||
* | 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 | 5 | -9/+105 | |
| | | | | | 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 | 3 | -10/+87 | |
| | ||||||
* | pingu_netlink: monitor link status of interfaces via netlink | Natanael Copa | 2011-07-13 | 7 | -6/+334 | |
| | ||||||
* | pingu_iface: implement pingu_iface_usable() | Natanael Copa | 2011-07-13 | 4 | -2/+10 | |
| | | | | To test if we can use socket. | |||||
* | pingu: try bind socket to interface every burst | Natanael Copa | 2011-07-13 | 7 | -21/+46 | |
| | | | | | | 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_iface: fix bug | Natanael Copa | 2011-07-13 | 1 | -1/+1 | |
| | ||||||
* | add gitignore | Natanael Copa | 2011-07-13 | 1 | -0/+3 | |
| | ||||||
* | pingu: run the route-script again | Natanael Copa | 2011-07-08 | 2 | -51/+50 | |
| | ||||||
* | pingu_ping: improve debug message for replies | Natanael Copa | 2011-07-08 | 1 | -1/+3 | |
| | ||||||
* | list.h: add missing file | Natanael Copa | 2011-07-08 | 1 | -0/+112 | |
| | ||||||
* | pingu: move config reading to pingu_host and make host_list global | Natanael Copa | 2011-07-08 | 3 | -147/+149 | |
| | ||||||
* | pingu: remove unused code | Natanael Copa | 2011-07-08 | 1 | -122/+0 | |
| | ||||||
* | pingu_host: execute the action | Natanael Copa | 2011-07-08 | 1 | -1/+25 | |
| | ||||||
* | pingu_ping: set status 'down' if we are not able to send the ping | Natanael Copa | 2011-07-08 | 1 | -1/+3 | |
| | ||||||
* | pingu: fix misc bugs | Natanael Copa | 2011-07-07 | 3 | -6/+9 | |
| | | | | fix some segfaults and some logic bugs | |||||
* | pingu: use new libev implementation and implent -v option | Natanael Copa | 2011-07-07 | 2 | -4/+18 | |
| | ||||||
* | pingu_host: initial implementation | Natanael Copa | 2011-07-07 | 1 | -0/+49 | |
| | ||||||
* | pingu_burst: initial implementation | Natanael Copa | 2011-07-07 | 1 | -0/+55 | |
| | ||||||
* | pingu_ping: initial implementation | Natanael Copa | 2011-07-07 | 1 | -0/+133 | |
| | ||||||
* | log: implement log_warning() | Natanael Copa | 2011-07-07 | 2 | -0/+10 | |
| | ||||||
* | iface: add initial implementation | Natanael Copa | 2011-07-07 | 1 | -0/+104 | |
| | ||||||
* | Add headers for libev based pingu | Natanael Copa | 2011-07-07 | 4 | -1/+71 | |
| | ||||||
* | misc clean up | Natanael Copa | 2011-07-01 | 5 | -30/+42 | |
| | | | | | | - rename ping_host to pingu_host - open log - fix compiler warning | |||||
* | pingu: initial use of libev | Natanael Copa | 2011-06-30 | 2 | -31/+50 | |
| | | | | For now we only use libev to generate the ping burst intervals. | |||||
* | pingu: remove dead code | Natanael Copa | 2011-06-30 | 1 | -12/+0 | |
| | ||||||
* | pingu: rename to max_retries | Natanael Copa | 2011-06-30 | 1 | -10/+15 | |
| | ||||||
* | pingu: use linux style lists and rename things | Natanael Copa | 2011-06-28 | 1 | -31/+29 | |
| | ||||||
* | pingu: rename dest_addr to ping_host | Natanael Copa | 2011-06-28 | 1 | -4/+4 | |
| | ||||||
* | pingu: rename name -> label and src_addr to source_ip | Natanael Copa | 2011-06-28 | 1 | -8/+8 | |
| | ||||||
* | pingu: make address family agnostic | Natanael Copa | 2011-06-22 | 2 | -37/+46 | |
| | | | | also, give user the possibility to do dns lookups for every ping burst. | |||||
* | release 0.5v0.5 | Natanael Copa | 2010-03-11 | 1 | -1/+1 | |
| | ||||||
* | pingu: support for setting source-ip | Natanael Copa | 2010-03-11 | 2 | -19/+34 | |
| | | | | | | | | | This is needed so ip source routing works with shorewall The problem is that when we change the default gw, removing a gateway that went down, we are not able to ping remote host via that interface ...unless we set the source ip and have an ip route table with source ip. Shorewall sets that up. | |||||
* | release 0.4.2v0.4.2 | Natanael Copa | 2010-03-11 | 1 | -1/+1 | |
| |