diff options
Diffstat (limited to 'Semestr 4/sieci/pracownia2/router/router_addr.h')
-rw-r--r-- | Semestr 4/sieci/pracownia2/router/router_addr.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Semestr 4/sieci/pracownia2/router/router_addr.h b/Semestr 4/sieci/pracownia2/router/router_addr.h new file mode 100644 index 0000000..bebb0f5 --- /dev/null +++ b/Semestr 4/sieci/pracownia2/router/router_addr.h @@ -0,0 +1,19 @@ +#ifndef ROUTER_ADDR_H +#define ROUTER_ADDR_H + +#include <arpa/inet.h> +#include <stdint.h> + +struct router_addr { + struct in_addr addr; + uint16_t distance; + uint8_t netmask; +}; + +struct in_addr get_broadcast_address(struct router_addr ra); + +void pretty_print(struct router_addr ra); + +struct router_addr stora(char *str); + +#endif
\ No newline at end of file |