CONFIG("bind_address_remotelns", bind_address_remotelns, IPv4),
CONFIG("bind_portremotelns", bind_portremotelns, SHORT),
#endif
- CONFIG("pppoe_if_name", pppoe_if_name, STRING),
+ CONFIG("pppoe_if_to_bind", pppoe_if_to_bind, STRING),
CONFIG("pppoe_service_name", pppoe_service_name, STRING),
CONFIG("pppoe_ac_name", pppoe_ac_name, STRING),
{ NULL, 0, 0, 0 },
inittun();
LOG(1, 0, 0, "Set up on interface %s\n", config->tundevicename);
- if (*config->pppoe_if_name)
+ if (*config->pppoe_if_to_bind)
{
init_pppoe();
- LOG(1, 0, 0, "Set up on pppoe interface %s\n", config->pppoe_if_name);
+ LOG(1, 0, 0, "Set up on pppoe interface %s\n", config->pppoe_if_to_bind);
}
initudp();
initrad();
exit(1);
}
- assert(strlen(ifr.ifr_name) < sizeof(config->pppoe_if_name) - 1);
- if (*config->pppoe_if_name)
- strncpy(ifr.ifr_name, config->pppoe_if_name, IFNAMSIZ);
+ assert(strlen(ifr.ifr_name) < sizeof(config->pppoe_if_to_bind) - 1);
+ if (*config->pppoe_if_to_bind)
+ strncpy(ifr.ifr_name, config->pppoe_if_to_bind, IFNAMSIZ);
if (ioctl(pppoediscfd, SIOCGIFHWADDR, &ifr))
{
if ((ifr.ifr_hwaddr.sa_data[0] & 1) != 0)
{
- LOG(0, 0, 0, "Error pppoe: interface %s has not unicast address\n", config->pppoe_if_name);
+ LOG(0, 0, 0, "Error pppoe: interface %s has not unicast address\n", config->pppoe_if_to_bind);
exit(1);
}
}
if (ifr.ifr_mtu < ETH_DATA_LEN)
- LOG(0, 0, 0, "Error pppoe: interface %s has MTU of %i, should be %i\n", config->pppoe_if_name, ifr.ifr_mtu, ETH_DATA_LEN);
+ LOG(0, 0, 0, "Error pppoe: interface %s has MTU of %i, should be %i\n", config->pppoe_if_to_bind, ifr.ifr_mtu, ETH_DATA_LEN);
if (ioctl(pppoediscfd, SIOCGIFINDEX, &ifr))
{
exit(1);
}
- assert(strlen(ifr.ifr_name) < sizeof(config->pppoe_if_name) - 1);
- if (*config->pppoe_if_name)
- strncpy(ifr.ifr_name, config->pppoe_if_name, IFNAMSIZ);
+ assert(strlen(ifr.ifr_name) < sizeof(config->pppoe_if_to_bind) - 1);
+ if (*config->pppoe_if_to_bind)
+ strncpy(ifr.ifr_name, config->pppoe_if_to_bind, IFNAMSIZ);
if (ioctl(pppoesessfd, SIOCGIFHWADDR, &ifr))
{
if ((ifr.ifr_hwaddr.sa_data[0] & 1) != 0)
{
- LOG(0, 0, 0, "Error pppoe: interface %s has not unicast address\n", config->pppoe_if_name);
+ LOG(0, 0, 0, "Error pppoe: interface %s has not unicast address\n", config->pppoe_if_to_bind);
exit(1);
}
}
if (ifr.ifr_mtu < ETH_DATA_LEN)
- LOG(0, 0, 0, "Error pppoe: interface %s has MTU of %i, should be %i\n", config->pppoe_if_name, ifr.ifr_mtu, ETH_DATA_LEN);
+ LOG(0, 0, 0, "Error pppoe: interface %s has MTU of %i, should be %i\n", config->pppoe_if_to_bind, ifr.ifr_mtu, ETH_DATA_LEN);
if (ioctl(pppoesessfd, SIOCGIFINDEX, &ifr))
{
struct ifreq ifr;
uint8_t mac[6];
- if (!*config->pppoe_if_name)
+ if (!*config->pppoe_if_to_bind)
return;
s = socket(PF_INET, SOCK_DGRAM, 0);
return;
}
memset(&ifr, 0, sizeof(ifr));
- strncpy(ifr.ifr_name, config->pppoe_if_name, sizeof(ifr.ifr_name) - 1);
+ strncpy(ifr.ifr_name, config->pppoe_if_to_bind, sizeof(ifr.ifr_name) - 1);
if (ioctl(s, SIOCGIFHWADDR, &ifr) < 0)
{
LOG(0, 0, 0, "Error getting eth0 hardware address for GARP: %s\n", strerror(errno));