117fdae73SDamjan Marion/*
217fdae73SDamjan Marion * Copyright (c) 2016 Cisco and/or its affiliates.
317fdae73SDamjan Marion * Licensed under the Apache License, Version 2.0 (the "License");
417fdae73SDamjan Marion * you may not use this file except in compliance with the License.
517fdae73SDamjan Marion * You may obtain a copy of the License at:
617fdae73SDamjan Marion *
717fdae73SDamjan Marion *     http://www.apache.org/licenses/LICENSE-2.0
817fdae73SDamjan Marion *
917fdae73SDamjan Marion * Unless required by applicable law or agreed to in writing, software
1017fdae73SDamjan Marion * distributed under the License is distributed on an "AS IS" BASIS,
1117fdae73SDamjan Marion * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1217fdae73SDamjan Marion * See the License for the specific language governing permissions and
1317fdae73SDamjan Marion * limitations under the License.
1417fdae73SDamjan Marion */
1517fdae73SDamjan Marion
1617fdae73SDamjan Marion#ifndef included_vnet_device_netlink_h
1717fdae73SDamjan Marion#define included_vnet_device_netlink_h
1817fdae73SDamjan Marion
192df39094SDamjan Marionclib_error_t *vnet_netlink_set_link_name (int ifindex, char *new_ifname);
202df39094SDamjan Marionclib_error_t *vnet_netlink_set_link_netns (int ifindex, int netns_fd,
212df39094SDamjan Marion					   char *new_ifname);
222df39094SDamjan Marionclib_error_t *vnet_netlink_set_link_master (int ifindex, char *master_ifname);
232df39094SDamjan Marionclib_error_t *vnet_netlink_set_link_addr (int ifindex, u8 * addr);
242df39094SDamjan Marionclib_error_t *vnet_netlink_set_link_state (int ifindex, int up);
2597d54ed4SMohsin Kazmiclib_error_t *vnet_netlink_set_link_mtu (int ifindex, int mtu);
2691c6ef7cSDamjan Marionclib_error_t *vnet_netlink_add_ip4_addr (int ifindex, void *addr,
2791c6ef7cSDamjan Marion					 int pfx_len);
2891c6ef7cSDamjan Marionclib_error_t *vnet_netlink_add_ip6_addr (int ifindex, void *addr,
2991c6ef7cSDamjan Marion					 int pfx_len);
307866c459SDamjan Marionclib_error_t *vnet_netlink_add_ip4_route (void *dst, u8 dst_len, void *gw);
317866c459SDamjan Marionclib_error_t *vnet_netlink_add_ip6_route (void *dst, u8 dst_len, void *gw);
3217fdae73SDamjan Marion
3317fdae73SDamjan Marion#endif /* included_vnet_device_netlink_h */
3417fdae73SDamjan Marion
3517fdae73SDamjan Marion/*
3617fdae73SDamjan Marion * fd.io coding-style-patch-verification: ON
3717fdae73SDamjan Marion *
3817fdae73SDamjan Marion * Local Variables:
3917fdae73SDamjan Marion * eval: (c-set-style "gnu")
4017fdae73SDamjan Marion * End:
4117fdae73SDamjan Marion */