Skip to content

Commit

Permalink
ipgre: rename new public API to avoid confusion
Browse files Browse the repository at this point in the history
Signed-off-by: Susant Sahani <susant@redhat.com>
Signed-off-by: Thomas Haller <thaller@redhat.com>
  • Loading branch information
Susant Sahani authored and thom311 committed May 6, 2014
1 parent 737d5f0 commit adb9f5d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
20 changes: 10 additions & 10 deletions include/netlink/route/link/ipgre.h
@@ -1,5 +1,5 @@
/*
* netlink/route/link/ip_gre.h IPIP interface
* netlink/route/link/ip_gre.h IPGRE interface
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
Expand All @@ -26,31 +26,31 @@ extern "C" {
extern uint32_t rtnl_link_ipgre_get_link(struct rtnl_link *link);

extern int rtnl_link_ipgre_set_iflags(struct rtnl_link *link, uint16_t iflags);
extern uint16_t rtnl_link_get_iflags(struct rtnl_link *link);
extern uint16_t rtnl_link_ipgre_get_iflags(struct rtnl_link *link);

extern int rtnl_link_ipgre_set_oflags(struct rtnl_link *link, uint16_t oflags);
extern uint16_t rtnl_link_get_oflags(struct rtnl_link *link);
extern uint16_t rtnl_link_ipgre_get_oflags(struct rtnl_link *link);

extern int rtnl_link_ipgre_set_ikey(struct rtnl_link *link, uint32_t ikey);
extern uint32_t rtnl_link_get_ikey(struct rtnl_link *link);
extern uint32_t rtnl_link_ipgre_get_ikey(struct rtnl_link *link);

extern int rtnl_link_ipgre_set_okey(struct rtnl_link *link, uint32_t okey);
extern uint32_t rtnl_link_get_okey(struct rtnl_link *link);
extern uint32_t rtnl_link_ipgre_get_okey(struct rtnl_link *link);

extern int rtnl_link_ipgre_set_local(struct rtnl_link *link, uint32_t addr);
extern uint32_t rtnl_link_get_local(struct rtnl_link *link);
extern uint32_t rtnl_link_ipgre_get_local(struct rtnl_link *link);

extern int rtnl_link_ipgre_set_remote(struct rtnl_link *link, uint32_t addr);
extern uint32_t rtnl_link_get_remote(struct rtnl_link *link);
extern uint32_t rtnl_link_ipgre_get_remote(struct rtnl_link *link);

extern int rtnl_link_ipgre_set_ttl(struct rtnl_link *link, uint8_t ttl);
extern uint8_t rtnl_link_get_ttl(struct rtnl_link *link);
extern uint8_t rtnl_link_ipgre_get_ttl(struct rtnl_link *link);

extern int rtnl_link_ipgre_set_tos(struct rtnl_link *link, uint8_t tos);
extern uint8_t rtnl_link_get_tos(struct rtnl_link *link);
extern uint8_t rtnl_link_ipgre_get_tos(struct rtnl_link *link);

extern int rtnl_link_ipgre_set_pmtudisc(struct rtnl_link *link, uint8_t pmtudisc);
extern uint8_t rtnl_link_get_pmtudisc(struct rtnl_link *link);
extern uint8_t rtnl_link_ipgre_get_pmtudisc(struct rtnl_link *link);

#ifdef __cplusplus
}
Expand Down
16 changes: 8 additions & 8 deletions lib/route/link/ipgre.c
Expand Up @@ -435,7 +435,7 @@ int rtnl_link_ipgre_set_iflags(struct rtnl_link *link, uint16_t iflags)
*
* @return iflags
*/
uint16_t rtnl_link_get_iflags(struct rtnl_link *link)
uint16_t rtnl_link_ipgre_get_iflags(struct rtnl_link *link)
{
struct ipgre_info *ipgre = link->l_info;

Expand Down Expand Up @@ -469,7 +469,7 @@ int rtnl_link_ipgre_set_oflags(struct rtnl_link *link, uint16_t oflags)
*
* @return oflags
*/
uint16_t rtnl_link_get_oflags(struct rtnl_link *link)
uint16_t rtnl_link_ipgre_get_oflags(struct rtnl_link *link)
{
struct ipgre_info *ipgre = link->l_info;

Expand Down Expand Up @@ -503,7 +503,7 @@ int rtnl_link_ipgre_set_ikey(struct rtnl_link *link, uint32_t ikey)
*
* @return ikey
*/
uint32_t rtnl_link_get_ikey(struct rtnl_link *link)
uint32_t rtnl_link_ipgre_get_ikey(struct rtnl_link *link)
{
struct ipgre_info *ipgre = link->l_info;

Expand Down Expand Up @@ -537,7 +537,7 @@ int rtnl_link_ipgre_set_okey(struct rtnl_link *link, uint32_t okey)
*
* @return okey value
*/
uint32_t rtnl_link_get_okey(struct rtnl_link *link)
uint32_t rtnl_link_ipgre_get_okey(struct rtnl_link *link)
{
struct ipgre_info *ipgre = link->l_info;

Expand Down Expand Up @@ -571,7 +571,7 @@ int rtnl_link_ipgre_set_local(struct rtnl_link *link, uint32_t addr)
*
* @return local address
*/
uint32_t rtnl_link_get_local(struct rtnl_link *link)
uint32_t rtnl_link_ipgre_get_local(struct rtnl_link *link)
{
struct ipgre_info *ipgre = link->l_info;

Expand Down Expand Up @@ -605,7 +605,7 @@ int rtnl_link_ipgre_set_remote(struct rtnl_link *link, uint32_t remote)
*
* @return remote address on success or a negative error code
*/
uint32_t rtnl_link_get_remote(struct rtnl_link *link)
uint32_t rtnl_link_ipgre_get_remote(struct rtnl_link *link)
{
struct ipgre_info *ipgre = link->l_info;

Expand Down Expand Up @@ -639,7 +639,7 @@ int rtnl_link_ipgre_set_ttl(struct rtnl_link *link, uint8_t ttl)
*
* @return ttl value
*/
uint8_t rtnl_link_get_ttl(struct rtnl_link *link)
uint8_t rtnl_link_ipgre_get_ttl(struct rtnl_link *link)
{
struct ipgre_info *ipgre = link->l_info;

Expand Down Expand Up @@ -673,7 +673,7 @@ int rtnl_link_ipgre_set_tos(struct rtnl_link *link, uint8_t tos)
*
* @return tos value
*/
uint8_t rtnl_link_get_tos(struct rtnl_link *link)
uint8_t rtnl_link_ipgre_get_tos(struct rtnl_link *link)
{
struct ipgre_info *ipgre = link->l_info;

Expand Down

0 comments on commit adb9f5d

Please sign in to comment.