ip_vs.h (28364a59f3dfe7fed3560ec7aff9b7aeb02824fb) | ip_vs.h (b3cdd2a73867d309dca288b8e820c09e3b7f1da1) |
---|---|
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 --- 841 unchanged lines hidden (view full) --- 850extern int ip_vs_tunnel_xmit 851(struct sk_buff *skb, struct ip_vs_conn *cp, struct ip_vs_protocol *pp); 852extern int ip_vs_dr_xmit 853(struct sk_buff *skb, struct ip_vs_conn *cp, struct ip_vs_protocol *pp); 854extern int ip_vs_icmp_xmit 855(struct sk_buff *skb, struct ip_vs_conn *cp, struct ip_vs_protocol *pp, int offset); 856extern void ip_vs_dst_reset(struct ip_vs_dest *dest); 857 | 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 --- 841 unchanged lines hidden (view full) --- 850extern int ip_vs_tunnel_xmit 851(struct sk_buff *skb, struct ip_vs_conn *cp, struct ip_vs_protocol *pp); 852extern int ip_vs_dr_xmit 853(struct sk_buff *skb, struct ip_vs_conn *cp, struct ip_vs_protocol *pp); 854extern int ip_vs_icmp_xmit 855(struct sk_buff *skb, struct ip_vs_conn *cp, struct ip_vs_protocol *pp, int offset); 856extern void ip_vs_dst_reset(struct ip_vs_dest *dest); 857 |
858#ifdef CONFIG_IP_VS_IPV6 859extern int ip_vs_bypass_xmit_v6 860(struct sk_buff *skb, struct ip_vs_conn *cp, struct ip_vs_protocol *pp); 861extern int ip_vs_nat_xmit_v6 862(struct sk_buff *skb, struct ip_vs_conn *cp, struct ip_vs_protocol *pp); 863extern int ip_vs_tunnel_xmit_v6 864(struct sk_buff *skb, struct ip_vs_conn *cp, struct ip_vs_protocol *pp); 865extern int ip_vs_dr_xmit_v6 866(struct sk_buff *skb, struct ip_vs_conn *cp, struct ip_vs_protocol *pp); 867extern int ip_vs_icmp_xmit_v6 868(struct sk_buff *skb, struct ip_vs_conn *cp, struct ip_vs_protocol *pp, 869 int offset); 870#endif |
|
858 859/* 860 * This is a simple mechanism to ignore packets when 861 * we are loaded. Just set ip_vs_drop_rate to 'n' and 862 * we start to drop 1/rate of the packets 863 */ 864extern int ip_vs_drop_rate; 865extern int ip_vs_drop_counter; --- 28 unchanged lines hidden (view full) --- 894 fwd = 'B'; break; 895 default: 896 fwd = '?'; break; 897 } 898 return fwd; 899} 900 901extern void ip_vs_nat_icmp(struct sk_buff *skb, struct ip_vs_protocol *pp, | 871 872/* 873 * This is a simple mechanism to ignore packets when 874 * we are loaded. Just set ip_vs_drop_rate to 'n' and 875 * we start to drop 1/rate of the packets 876 */ 877extern int ip_vs_drop_rate; 878extern int ip_vs_drop_counter; --- 28 unchanged lines hidden (view full) --- 907 fwd = 'B'; break; 908 default: 909 fwd = '?'; break; 910 } 911 return fwd; 912} 913 914extern void ip_vs_nat_icmp(struct sk_buff *skb, struct ip_vs_protocol *pp, |
902 struct ip_vs_conn *cp, int dir); | 915 struct ip_vs_conn *cp, int dir); |
903 | 916 |
917#ifdef CONFIG_IP_VS_IPV6 918extern void ip_vs_nat_icmp_v6(struct sk_buff *skb, struct ip_vs_protocol *pp, 919 struct ip_vs_conn *cp, int dir); 920#endif 921 |
|
904extern __sum16 ip_vs_checksum_complete(struct sk_buff *skb, int offset); 905 906static inline __wsum ip_vs_check_diff4(__be32 old, __be32 new, __wsum oldsum) 907{ 908 __be32 diff[2] = { ~old, new }; 909 910 return csum_partial((char *) diff, sizeof(diff), oldsum); 911} --- 22 unchanged lines hidden --- | 922extern __sum16 ip_vs_checksum_complete(struct sk_buff *skb, int offset); 923 924static inline __wsum ip_vs_check_diff4(__be32 old, __be32 new, __wsum oldsum) 925{ 926 __be32 diff[2] = { ~old, new }; 927 928 return csum_partial((char *) diff, sizeof(diff), oldsum); 929} --- 22 unchanged lines hidden --- |