1a45056e35c1af2a0f0a6eed258fd5fdf4846a79fDaniel Drown/*
2a45056e35c1af2a0f0a6eed258fd5fdf4846a79fDaniel Drown * Copyright 2012 Daniel Drown <dan-android@drown.org>
3a45056e35c1af2a0f0a6eed258fd5fdf4846a79fDaniel Drown *
4a45056e35c1af2a0f0a6eed258fd5fdf4846a79fDaniel Drown * Licensed under the Apache License, Version 2.0 (the "License");
5a45056e35c1af2a0f0a6eed258fd5fdf4846a79fDaniel Drown * you may not use this file except in compliance with the License.
6a45056e35c1af2a0f0a6eed258fd5fdf4846a79fDaniel Drown * You may obtain a copy of the License at
7a45056e35c1af2a0f0a6eed258fd5fdf4846a79fDaniel Drown *
8a45056e35c1af2a0f0a6eed258fd5fdf4846a79fDaniel Drown * http://www.apache.org/licenses/LICENSE-2.0
9a45056e35c1af2a0f0a6eed258fd5fdf4846a79fDaniel Drown *
10a45056e35c1af2a0f0a6eed258fd5fdf4846a79fDaniel Drown * Unless required by applicable law or agreed to in writing, software
11a45056e35c1af2a0f0a6eed258fd5fdf4846a79fDaniel Drown * distributed under the License is distributed on an "AS IS" BASIS,
12a45056e35c1af2a0f0a6eed258fd5fdf4846a79fDaniel Drown * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13a45056e35c1af2a0f0a6eed258fd5fdf4846a79fDaniel Drown * See the License for the specific language governing permissions and
14a45056e35c1af2a0f0a6eed258fd5fdf4846a79fDaniel Drown * limitations under the License.
15a45056e35c1af2a0f0a6eed258fd5fdf4846a79fDaniel Drown *
16a45056e35c1af2a0f0a6eed258fd5fdf4846a79fDaniel Drown * setroute.h - network route configuration
17a45056e35c1af2a0f0a6eed258fd5fdf4846a79fDaniel Drown */
18a45056e35c1af2a0f0a6eed258fd5fdf4846a79fDaniel Drown
19a45056e35c1af2a0f0a6eed258fd5fdf4846a79fDaniel Drown#ifndef __SETROUTE_H__
20a45056e35c1af2a0f0a6eed258fd5fdf4846a79fDaniel Drown#define __SETROUTE_H__
21a45056e35c1af2a0f0a6eed258fd5fdf4846a79fDaniel Drown
22a45056e35c1af2a0f0a6eed258fd5fdf4846a79fDaniel Drown#define ROUTE_DELETE 0
23a45056e35c1af2a0f0a6eed258fd5fdf4846a79fDaniel Drown#define ROUTE_REPLACE 1
24a45056e35c1af2a0f0a6eed258fd5fdf4846a79fDaniel Drown#define ROUTE_CREATE 2
25a45056e35c1af2a0f0a6eed258fd5fdf4846a79fDaniel Drownint if_route(const char *ifname, int family, const void *destination, int cidr, const void *gateway, int metric, int mtu, int change_type);
26a45056e35c1af2a0f0a6eed258fd5fdf4846a79fDaniel Drown
27a45056e35c1af2a0f0a6eed258fd5fdf4846a79fDaniel Drown#endif
28