コード例 #1
0
static bool
static_proto_setup(struct static_proto_state *state)
{
	struct interface *iface = state->proto.iface;
	struct device *dev = iface->main_dev.dev;

	interface_set_l3_dev(iface, dev);
	return proto_apply_static_ip_settings(state->proto.iface, state->config) == 0;
}
コード例 #2
0
ファイル: proto-static.c プロジェクト: Honululu/netifd
static bool
static_proto_setup(struct static_proto_state *state)
{
	return proto_apply_static_ip_settings(state->proto.iface, state->config) == 0;
}