summaryrefslogtreecommitdiff
path: root/src/get_eth_info.c
diff options
context:
space:
mode:
authorMichael Stapelberg <michael@stapelberg.de>2009-07-22 18:51:55 +0200
committerMichael Stapelberg <michael@stapelberg.de>2009-07-22 18:51:55 +0200
commit072cee2808b4615250dbc064f9fc0604f83f1b19 (patch)
tree652adedabdf1f38f03c46f2a72ab4d2c2551cfb2 /src/get_eth_info.c
parent329a8994f7ad5454f83d576ad2b826585560424b (diff)
little fixes for FreeBSD
Diffstat (limited to 'src/get_eth_info.c')
-rw-r--r--src/get_eth_info.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/get_eth_info.c b/src/get_eth_info.c
index 9172abb..6278b8c 100644
--- a/src/get_eth_info.c
+++ b/src/get_eth_info.c
@@ -74,7 +74,7 @@ const char *get_eth_info() {
#elif defined(__FreeBSD__)
struct ifmediareq ifm;
(void)memset(&ifm, 0, sizeof(ifm));
- (void)strncpy(ifm.ifm_name, ifaddr->ifa_name, sizeof(ifm.ifm_name));
+ (void)strncpy(ifm.ifm_name, eth_interface, sizeof(ifm.ifm_name));
int ret = ioctl(general_socket, SIOCGIFMEDIA, (caddr_t)&ifm);
/* Get the description of the media type, partially taken from