Author: viethen Date: Tue Apr 5 02:12:17 2011 New Revision: 2515 Log: uncrustify the original source Modified: trunk/tools/dhcp/mac2ip.h Modified: trunk/tools/dhcp/mac2ip.h ============================================================================== --- trunk/tools/dhcp/mac2ip.h Tue Apr 5 01:22:17 2011 (r2514) +++ trunk/tools/dhcp/mac2ip.h Tue Apr 5 02:12:17 2011 (r2515) @@ -1,60 +1,52 @@ /** - * Author: Max Gelmroth + * Author: Max Gelmroth * - * NOTE: for mac2ip to work properly you - * need to create a mac2ip.conf file - * and store it in /etc + * NOTE: for mac2ip to work properly you + * need to create a mac2ip.conf file + * and store it in /etc * - * by now it only has to contain two - * lines that define the ip bounds the - * hashed ip will be adjusted to + * by now it only has to contain two + * lines that define the ip bounds the + * hashed ip will be adjusted to * - * the file should look like: - * lower_client_ip_bound=xxx.xxx.xxx.xxx - * upper_client_ip_bound=xxx.xxx.xxx.xxx - * lower_service_ip_bound=xxx.xxx.xxx.xxx - * upper_service_ip_bound=xxx.xxx.xxx.xxx + * the file should look like: * + * lower_client_ip_bound=xxx.xxx.xxx.xxx + * upper_client_ip_bound=xxx.xxx.xxx.xxx + * lower_service_ip_bound=xxx.xxx.xxx.xxx + * upper_service_ip_bound=xxx.xxx.xxx.xxx */ - #ifndef __MAC2IP_H__ #define __MAC2IP_H__ - #include <stdint.h> - typedef struct mac2ip_ipv4_t{ - uint8_t x[4]; + uint8_t x[4]; } mac2ip_ipv4_t; typedef struct mac2ip_mac_t{ - uint8_t x[6]; + uint8_t x[6]; } mac2ip_mac_t; - typedef struct ip_bounds { - - /* - * lower client's ip bound := 0 - * upper client's ip bound := 1 - * lower service's ip bound := 2 - * upper service's ip bound := 3 - */ - mac2ip_ipv4_t bound[4]; - + /* + * lower client's ip bound := 0 + * upper client's ip bound := 1 + * lower service's ip bound := 2 + * upper service's ip bound := 3 + */ + mac2ip_ipv4_t bound[4]; } ip_bounds; /* * hash mac random ip that is adjusted to the ip-bounds * configured in /etc/mac2ip.conf * result will be stored in 'ip' - * -*/ + */ int mac_to_ip(const mac2ip_mac_t *, mac2ip_ipv4_t *); int read_ip_bounds(ip_bounds *); - -#endif /* __MAC2IP_H__ */ +#endif /* __MAC2IP_H__ */ -- This is the pisa developer mailing list. Please also subscribe to the main pisa list at: //www.freelists.org/list/pisa