ip_vs.h (6b6df46663e7aa6f7b1d82435a3488f9b81316b3) ip_vs.h (fca9c20ae1e510525f8a2aaa25861789fd721193)
1/*
2 * IP Virtual Server
3 * data structure and functionality definitions
4 */
5
6#ifndef _NET_IP_VS_H
7#define _NET_IP_VS_H
8

--- 1413 unchanged lines hidden (view full) ---

1422extern int ip_vs_control_init(void);
1423extern void ip_vs_control_cleanup(void);
1424extern struct ip_vs_dest *
1425ip_vs_find_dest(struct net *net, int af, const union nf_inet_addr *daddr,
1426 __be16 dport, const union nf_inet_addr *vaddr, __be16 vport,
1427 __u16 protocol, __u32 fwmark, __u32 flags);
1428extern struct ip_vs_dest *ip_vs_try_bind_dest(struct ip_vs_conn *cp);
1429
1/*
2 * IP Virtual Server
3 * data structure and functionality definitions
4 */
5
6#ifndef _NET_IP_VS_H
7#define _NET_IP_VS_H
8

--- 1413 unchanged lines hidden (view full) ---

1422extern int ip_vs_control_init(void);
1423extern void ip_vs_control_cleanup(void);
1424extern struct ip_vs_dest *
1425ip_vs_find_dest(struct net *net, int af, const union nf_inet_addr *daddr,
1426 __be16 dport, const union nf_inet_addr *vaddr, __be16 vport,
1427 __u16 protocol, __u32 fwmark, __u32 flags);
1428extern struct ip_vs_dest *ip_vs_try_bind_dest(struct ip_vs_conn *cp);
1429
1430static inline void ip_vs_dest_hold(struct ip_vs_dest *dest)
1431{
1432 atomic_inc(&dest->refcnt);
1433}
1430
1434
1435static inline void ip_vs_dest_put(struct ip_vs_dest *dest)
1436{
1437 smp_mb__before_atomic_dec();
1438 atomic_dec(&dest->refcnt);
1439}
1440
1431/*
1432 * IPVS sync daemon data and function prototypes
1433 * (from ip_vs_sync.c)
1434 */
1435extern int start_sync_thread(struct net *net, int state, char *mcast_ifn,
1436 __u8 syncid);
1437extern int stop_sync_thread(struct net *net, int state);
1438extern void ip_vs_sync_conn(struct net *net, struct ip_vs_conn *cp, int pkts);

--- 207 unchanged lines hidden ---
1441/*
1442 * IPVS sync daemon data and function prototypes
1443 * (from ip_vs_sync.c)
1444 */
1445extern int start_sync_thread(struct net *net, int state, char *mcast_ifn,
1446 __u8 syncid);
1447extern int stop_sync_thread(struct net *net, int state);
1448extern void ip_vs_sync_conn(struct net *net, struct ip_vs_conn *cp, int pkts);

--- 207 unchanged lines hidden ---