diff options
| author | Paul Jakma <paul.jakma@hpe.com> | 2016-01-18 10:12:10 +0000 | 
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetwroks.com> | 2016-08-18 07:35:38 -0400 | 
| commit | b892f1ddfe42a620d84b6c245d1997e4b560eea8 (patch) | |
| tree | acf13ca7ac43984b9215b0006d4d16fac2c281c3 /lib/sockopt.h | |
| parent | ac01cff9ec30b0bf28888a1bbedc34b74b40cd37 (diff) | |
*: use an ifindex_t type, defined in lib/if.h, for ifindex values
(cherry picked from commit 9099f9b2a66e86f8a90d7fe18f61bd2bb1bc6744)
Diffstat (limited to 'lib/sockopt.h')
| -rw-r--r-- | lib/sockopt.h | 8 | 
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/sockopt.h b/lib/sockopt.h index a597314c3d..d67b510b66 100644 --- a/lib/sockopt.h +++ b/lib/sockopt.h @@ -84,16 +84,16 @@ extern int setsockopt_ipv6_tclass (int, int);                      ? SOPT_SIZE_CMSG_PKTINFO_IPV6())  extern int setsockopt_ipv4_multicast_if(int sock, struct in_addr if_addr, -			             unsigned int ifindex); +					ifindex_t ifindex);  extern int setsockopt_ipv4_multicast(int sock, int optname,                                       struct in_addr if_addr,                                       unsigned int mcast_addr, -			             unsigned int ifindex); +			             ifindex_t ifindex);  extern int setsockopt_ipv4_tos(int sock, int tos);  /* Ask for, and get, ifindex, by whatever method is supported. */ -extern int setsockopt_ifindex (int, int, int); -extern int getsockopt_ifindex (int, struct msghdr *); +extern int setsockopt_ifindex (int, int, ifindex_t); +extern ifindex_t getsockopt_ifindex (int, struct msghdr *);  /* swab the fields in iph between the host order and system order expected    * for IP_HDRINCL.  | 
