zmap-freebsd/src/get_gateway.h

19 lines
553 B
C
Raw Permalink Normal View History

2013-08-16 15:12:47 +00:00
/*
* ZMap Copyright 2013 Regents of the University of Michigan
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICENSE-2.0
*/
2013-08-26 16:26:01 +00:00
#ifndef GET_GATEWAY_H
#define GET_GATEWAY_H
2013-08-16 15:12:47 +00:00
#include <netinet/in.h>
int get_hw_addr(struct in_addr *gw_ip, char *iface, unsigned char *hw_mac);
int get_default_gw(struct in_addr *gw, char *iface);
int get_iface_ip(char *iface, struct in_addr *ip);
#endif