static void
interface_clear_errors(struct interface *iface)
{
- /* don't flush the errors in case the configured protocol handler matches the
+ /* don't flush the errors in case the configured protocol handler matches the
running protocol handler and is having the last error capability */
if (!(iface->proto &&
- (iface->proto->handler->flags & PROTO_FLAG_LASTERROR) &&
- (iface->proto->handler->name == iface->proto_handler->name)))
+ (iface->proto->handler->flags & PROTO_FLAG_LASTERROR) &&
+ (iface->proto->handler->name == iface->proto_handler->name)))
interface_error_flush(iface);
}
int *datalen = NULL;
char *dest, *d_subsys, *d_code;
- /* if the configured protocol handler has the last error support capability,
+ /* if the configured protocol handler has the last error support capability,
errors should only be added if the running protocol handler matches the
configured one */
if (iface->proto &&
- (iface->proto->handler->flags & PROTO_FLAG_LASTERROR) &&
- (iface->proto->handler->name != iface->proto_handler->name))
+ (iface->proto->handler->flags & PROTO_FLAG_LASTERROR) &&
+ (iface->proto->handler->name != iface->proto_handler->name))
return;
if (n_data) {
static void
iprule_update_rule(struct vlist_tree *tree,
- struct vlist_node *node_new, struct vlist_node *node_old)
+ struct vlist_node *node_new, struct vlist_node *node_old)
{
struct iprule *rule_old, *rule_new;
static bool
create_raw_event_socket(struct event_socket *ev, int protocol, int groups,
- uloop_fd_handler cb, int flags)
+ uloop_fd_handler cb, int flags)
{
ev->sock = create_socket(protocol, groups);
if (!ev->sock)
return -1;
if (!create_raw_event_socket(&hotplug_event, NETLINK_KOBJECT_UEVENT, 1,
- handle_hotplug_event, 0))
+ handle_hotplug_event, 0))
return -1;
// Receive network link events form kernel
nlmsg_append(msg, &iim, sizeof(iim), 0);
nla_put_string(msg, IFLA_IFNAME, vlandev->ifname);
nla_put_u32(msg, IFLA_LINK, dev->ifindex);
-
+
if (!(linkinfo = nla_nest_start(msg, IFLA_LINKINFO)))
goto nla_put_failure;
-
+
nla_put_string(msg, IFLA_INFO_KIND, "vlan");
if (!(data = nla_nest_start(msg, IFLA_INFO_DATA)))
else
tos = 1;
}
- }
+ }
if ((cur = tb[TUNNEL_ATTR_INFO]) && (blobmsg_type(cur) == BLOBMSG_TYPE_STRING)) {
uint8_t icsum, ocsum, iseqno, oseqno;
struct blob_attr *cur;
bool set_df = true;
struct ip_tunnel_parm p = {
- .link = link,
+ .link = link,
.iph = {
.version = 4,
.ihl = 5,
enum bridge_opt {
/* stp and forward delay always set */
- BRIDGE_OPT_AGEING_TIME = (1 << 0),
- BRIDGE_OPT_HELLO_TIME = (1 << 1),
- BRIDGE_OPT_MAX_AGE = (1 << 2),
- BRIDGE_OPT_ROBUSTNESS = (1 << 3),
- BRIDGE_OPT_QUERY_INTERVAL = (1 << 4),
- BRIDGE_OPT_QUERY_RESPONSE_INTERVAL = (1 << 5),
- BRIDGE_OPT_LAST_MEMBER_INTERVAL = (1 << 6),
+ BRIDGE_OPT_AGEING_TIME = (1 << 0),
+ BRIDGE_OPT_HELLO_TIME = (1 << 1),
+ BRIDGE_OPT_MAX_AGE = (1 << 2),
+ BRIDGE_OPT_ROBUSTNESS = (1 << 3),
+ BRIDGE_OPT_QUERY_INTERVAL = (1 << 4),
+ BRIDGE_OPT_QUERY_RESPONSE_INTERVAL = (1 << 5),
+ BRIDGE_OPT_LAST_MEMBER_INTERVAL = (1 << 6),
};
struct bridge_config {
}
static void
-interface_ip_dump_address_list(struct interface_ip_settings *ip, bool v6,
- bool enabled)
+interface_ip_dump_address_list(struct interface_ip_settings *ip, bool v6, bool enabled)
{
struct device_addr *addr;
char *buf;
}
static void
-interface_ip_dump_dns_server_list(struct interface_ip_settings *ip,
- bool enabled)
+interface_ip_dump_dns_server_list(struct interface_ip_settings *ip, bool enabled)
{
struct dns_server *dns;
int buflen = 128;
}
static void
-interface_ip_dump_dns_search_list(struct interface_ip_settings *ip,
- bool enabled)
+interface_ip_dump_dns_search_list(struct interface_ip_settings *ip, bool enabled)
{
struct dns_search_domain *dns;