Lines Matching refs:af

71 ip_vs_fill_iph_skb_off(int af, const struct sk_buff *skb, int offset,
78 if (af == AF_INET6) {
115 ip_vs_fill_iph_skb_icmp(int af, const struct sk_buff *skb, int offset,
123 return ip_vs_fill_iph_skb_off(af, skb, offset, hdr_flags, iphdr);
127 ip_vs_fill_iph_skb(int af, const struct sk_buff *skb, bool inverse,
135 return ip_vs_fill_iph_skb_off(af, skb, skb_network_offset(skb),
151 static inline void ip_vs_addr_copy(int af, union nf_inet_addr *dst,
155 if (af == AF_INET6)
162 static inline void ip_vs_addr_set(int af, union nf_inet_addr *dst,
166 if (af == AF_INET6) {
177 static inline int ip_vs_addr_equal(int af, const union nf_inet_addr *a,
181 if (af == AF_INET6)
192 static inline const char *ip_vs_dbg_addr(int af, char *buf, size_t buf_len,
198 if (af == AF_INET6)
226 #define IP_VS_DBG_ADDR(af, addr) \
227 ip_vs_dbg_addr(af, ip_vs_dbg_buf, \
241 #define IP_VS_DBG_PKT(level, af, pp, skb, ofs, msg) \
244 pp->debug_packet(af, pp, skb, ofs, msg); \
246 #define IP_VS_DBG_RL_PKT(level, af, pp, skb, ofs, msg) \
250 pp->debug_packet(af, pp, skb, ofs, msg); \
257 #define IP_VS_DBG_PKT(level, af, pp, skb, ofs, msg) do {} while (0)
258 #define IP_VS_DBG_RL_PKT(level, af, pp, skb, ofs, msg) do {} while (0)
492 int af, struct sk_buff *skb,
499 int af,
505 int af,
527 void (*debug_packet)(int af, struct ip_vs_protocol *pp,
555 u16 af;
569 u16 af; /* address family */
634 u16 af;
663 u16 af;
680 u16 af; /* address family */
721 u16 af; /* address family */
1305 static inline void ip_vs_conn_fill_param(struct netns_ipvs *ipvs, int af, int protocol,
1313 p->af = af;
1326 struct ip_vs_conn * ip_vs_conn_in_get_proto(struct netns_ipvs *ipvs, int af,
1332 struct ip_vs_conn * ip_vs_conn_out_get_proto(struct netns_ipvs *ipvs, int af,
1374 IP_VS_DBG_ADDR(cp->af, &cp->caddr),
1376 IP_VS_DBG_ADDR(cp->af, &cp->vaddr),
1384 IP_VS_DBG_ADDR(cp->af, &cp->caddr),
1386 IP_VS_DBG_ADDR(cp->af, &ctl_cp->caddr),
1393 IP_VS_DBG_ADDR(cp->af, &cp->caddr),
1395 IP_VS_DBG_ADDR(cp->af, &cp->vaddr),
1409 IP_VS_DBG_ADDR(cp->af, &cp->caddr),
1411 IP_VS_DBG_ADDR(cp->af, &cp->vaddr),
1419 IP_VS_DBG_ADDR(cp->af, &cp->caddr),
1421 IP_VS_DBG_ADDR(cp->af, &ctl_cp->caddr),
1491 void ip_vs_tcpudp_debug_packet(int af, struct ip_vs_protocol *pp,
1527 ip_vs_service_find(struct netns_ipvs *ipvs, int af, __u32 fwmark, __u16 protocol,
1530 bool ip_vs_has_real_service(struct netns_ipvs *ipvs, int af, __u16 protocol,
1534 ip_vs_find_real_service(struct netns_ipvs *ipvs, int af, __u16 protocol,
1536 struct ip_vs_dest *ip_vs_find_tunnel(struct netns_ipvs *ipvs, int af,
1816 int afmask = (svc->af == AF_INET6) ? 2 : 1;
1820 ret = nf_ct_netns_get(svc->ipvs->net, svc->af);
1833 int afmask = (svc->af == AF_INET6) ? 2 : 1;
1836 nf_ct_netns_put(svc->ipvs->net, svc->af);
1842 int ip_vs_register_hooks(struct netns_ipvs *ipvs, unsigned int af);
1843 void ip_vs_unregister_hooks(struct netns_ipvs *ipvs, unsigned int af);