Lines Matching refs:af

68 ip_vs_fill_iph_skb_off(int af, const struct sk_buff *skb, int offset,
75 if (af == AF_INET6) {
112 ip_vs_fill_iph_skb_icmp(int af, const struct sk_buff *skb, int offset,
120 return ip_vs_fill_iph_skb_off(af, skb, offset, hdr_flags, iphdr);
124 ip_vs_fill_iph_skb(int af, const struct sk_buff *skb, bool inverse,
132 return ip_vs_fill_iph_skb_off(af, skb, skb_network_offset(skb),
148 static inline void ip_vs_addr_copy(int af, union nf_inet_addr *dst,
152 if (af == AF_INET6)
159 static inline void ip_vs_addr_set(int af, union nf_inet_addr *dst,
163 if (af == AF_INET6) {
174 static inline int ip_vs_addr_equal(int af, const union nf_inet_addr *a,
178 if (af == AF_INET6)
189 static inline const char *ip_vs_dbg_addr(int af, char *buf, size_t buf_len,
195 if (af == AF_INET6)
223 #define IP_VS_DBG_ADDR(af, addr) \
224 ip_vs_dbg_addr(af, ip_vs_dbg_buf, \
238 #define IP_VS_DBG_PKT(level, af, pp, skb, ofs, msg) \
241 pp->debug_packet(af, pp, skb, ofs, msg); \
243 #define IP_VS_DBG_RL_PKT(level, af, pp, skb, ofs, msg) \
247 pp->debug_packet(af, pp, skb, ofs, msg); \
254 #define IP_VS_DBG_PKT(level, af, pp, skb, ofs, msg) do {} while (0)
255 #define IP_VS_DBG_RL_PKT(level, af, pp, skb, ofs, msg) do {} while (0)
431 int af, struct sk_buff *skb,
438 int af,
444 int af,
466 void (*debug_packet)(int af, struct ip_vs_protocol *pp,
494 u16 af;
508 u16 af; /* address family */
573 u16 af;
602 u16 af;
619 u16 af; /* address family */
660 u16 af; /* address family */
1195 static inline void ip_vs_conn_fill_param(struct netns_ipvs *ipvs, int af, int protocol,
1203 p->af = af;
1216 struct ip_vs_conn * ip_vs_conn_in_get_proto(struct netns_ipvs *ipvs, int af,
1222 struct ip_vs_conn * ip_vs_conn_out_get_proto(struct netns_ipvs *ipvs, int af,
1264 IP_VS_DBG_ADDR(cp->af, &cp->caddr),
1266 IP_VS_DBG_ADDR(cp->af, &cp->vaddr),
1274 IP_VS_DBG_ADDR(cp->af, &cp->caddr),
1276 IP_VS_DBG_ADDR(cp->af, &ctl_cp->caddr),
1283 IP_VS_DBG_ADDR(cp->af, &cp->caddr),
1285 IP_VS_DBG_ADDR(cp->af, &cp->vaddr),
1299 IP_VS_DBG_ADDR(cp->af, &cp->caddr),
1301 IP_VS_DBG_ADDR(cp->af, &cp->vaddr),
1309 IP_VS_DBG_ADDR(cp->af, &cp->caddr),
1311 IP_VS_DBG_ADDR(cp->af, &ctl_cp->caddr),
1381 void ip_vs_tcpudp_debug_packet(int af, struct ip_vs_protocol *pp,
1417 ip_vs_service_find(struct netns_ipvs *ipvs, int af, __u32 fwmark, __u16 protocol,
1420 bool ip_vs_has_real_service(struct netns_ipvs *ipvs, int af, __u16 protocol,
1424 ip_vs_find_real_service(struct netns_ipvs *ipvs, int af, __u16 protocol,
1426 struct ip_vs_dest *ip_vs_find_tunnel(struct netns_ipvs *ipvs, int af,
1675 int afmask = (svc->af == AF_INET6) ? 2 : 1;
1679 ret = nf_ct_netns_get(svc->ipvs->net, svc->af);
1692 int afmask = (svc->af == AF_INET6) ? 2 : 1;
1695 nf_ct_netns_put(svc->ipvs->net, svc->af);
1701 int ip_vs_register_hooks(struct netns_ipvs *ipvs, unsigned int af);
1702 void ip_vs_unregister_hooks(struct netns_ipvs *ipvs, unsigned int af);