Lines Matching refs:cp
510 struct ip_vs_conn *cp, struct ip_vs_iphdr *iph);
513 struct ip_vs_conn *cp, struct ip_vs_iphdr *iph);
517 void (*state_transition)(struct ip_vs_conn *cp, int direction,
525 int (*app_conn_bind)(struct ip_vs_conn *cp);
604 int (*packet_xmit)(struct sk_buff *skb, struct ip_vs_conn *cp,
796 int (*show_pe_data)(const struct ip_vs_conn *cp, char *buf);
863 int (*state_transition)(struct ip_vs_conn *cp, int direction,
1353 static inline bool __ip_vs_conn_get(struct ip_vs_conn *cp) in __ip_vs_conn_get() argument
1355 return refcount_inc_not_zero(&cp->refcnt); in __ip_vs_conn_get()
1359 static inline void __ip_vs_conn_put(struct ip_vs_conn *cp) in __ip_vs_conn_put() argument
1362 refcount_dec(&cp->refcnt); in __ip_vs_conn_put()
1364 void ip_vs_conn_put(struct ip_vs_conn *cp);
1365 void ip_vs_conn_fill_cport(struct ip_vs_conn *cp, __be16 cport);
1371 void ip_vs_conn_expire_now(struct ip_vs_conn *cp);
1373 const char *ip_vs_state_name(const struct ip_vs_conn *cp);
1375 void ip_vs_tcp_conn_listen(struct ip_vs_conn *cp);
1381 static inline void ip_vs_control_del(struct ip_vs_conn *cp) in ip_vs_control_del() argument
1383 struct ip_vs_conn *ctl_cp = cp->control; in ip_vs_control_del()
1387 IP_VS_DBG_ADDR(cp->af, &cp->caddr), in ip_vs_control_del()
1388 ntohs(cp->cport), in ip_vs_control_del()
1389 IP_VS_DBG_ADDR(cp->af, &cp->vaddr), in ip_vs_control_del()
1390 ntohs(cp->vport)); in ip_vs_control_del()
1397 IP_VS_DBG_ADDR(cp->af, &cp->caddr), in ip_vs_control_del()
1398 ntohs(cp->cport), in ip_vs_control_del()
1399 IP_VS_DBG_ADDR(cp->af, &ctl_cp->caddr), in ip_vs_control_del()
1402 cp->control = NULL; in ip_vs_control_del()
1406 IP_VS_DBG_ADDR(cp->af, &cp->caddr), in ip_vs_control_del()
1407 ntohs(cp->cport), in ip_vs_control_del()
1408 IP_VS_DBG_ADDR(cp->af, &cp->vaddr), in ip_vs_control_del()
1409 ntohs(cp->vport)); in ip_vs_control_del()
1417 ip_vs_control_add(struct ip_vs_conn *cp, struct ip_vs_conn *ctl_cp) in ip_vs_control_add() argument
1419 if (cp->control) { in ip_vs_control_add()
1422 IP_VS_DBG_ADDR(cp->af, &cp->caddr), in ip_vs_control_add()
1423 ntohs(cp->cport), in ip_vs_control_add()
1424 IP_VS_DBG_ADDR(cp->af, &cp->vaddr), in ip_vs_control_add()
1425 ntohs(cp->vport)); in ip_vs_control_add()
1427 ip_vs_control_del(cp); in ip_vs_control_add()
1432 IP_VS_DBG_ADDR(cp->af, &cp->caddr), in ip_vs_control_add()
1433 ntohs(cp->cport), in ip_vs_control_add()
1434 IP_VS_DBG_ADDR(cp->af, &ctl_cp->caddr), in ip_vs_control_add()
1437 cp->control = ctl_cp; in ip_vs_control_add()
1443 ip_vs_control_assure_ct(struct ip_vs_conn *cp) in ip_vs_control_assure_ct() argument
1445 struct ip_vs_conn *ct = cp->control; in ip_vs_control_assure_ct()
1473 int ip_vs_bind_app(struct ip_vs_conn *cp, struct ip_vs_protocol *pp);
1474 void ip_vs_unbind_app(struct ip_vs_conn *cp);
1564 void ip_vs_try_bind_dest(struct ip_vs_conn *cp);
1589 void ip_vs_sync_conn(struct netns_ipvs *ipvs, struct ip_vs_conn *cp, int pkts);
1629 int ip_vs_null_xmit(struct sk_buff *skb, struct ip_vs_conn *cp,
1631 int ip_vs_bypass_xmit(struct sk_buff *skb, struct ip_vs_conn *cp,
1633 int ip_vs_nat_xmit(struct sk_buff *skb, struct ip_vs_conn *cp,
1635 int ip_vs_tunnel_xmit(struct sk_buff *skb, struct ip_vs_conn *cp,
1637 int ip_vs_dr_xmit(struct sk_buff *skb, struct ip_vs_conn *cp,
1639 int ip_vs_icmp_xmit(struct sk_buff *skb, struct ip_vs_conn *cp,
1645 int ip_vs_bypass_xmit_v6(struct sk_buff *skb, struct ip_vs_conn *cp,
1647 int ip_vs_nat_xmit_v6(struct sk_buff *skb, struct ip_vs_conn *cp,
1649 int ip_vs_tunnel_xmit_v6(struct sk_buff *skb, struct ip_vs_conn *cp,
1651 int ip_vs_dr_xmit_v6(struct sk_buff *skb, struct ip_vs_conn *cp,
1653 int ip_vs_icmp_xmit_v6(struct sk_buff *skb, struct ip_vs_conn *cp,
1696 #define IP_VS_FWD_METHOD(cp) (cp->flags & IP_VS_CONN_F_FWD_MASK) argument
1698 static inline char ip_vs_fwd_tag(struct ip_vs_conn *cp) in ip_vs_fwd_tag() argument
1702 switch (IP_VS_FWD_METHOD(cp)) { in ip_vs_fwd_tag()
1720 struct ip_vs_conn *cp, int dir);
1724 struct ip_vs_conn *cp, int dir);
1781 void ip_vs_update_conntrack(struct sk_buff *skb, struct ip_vs_conn *cp,
1785 struct ip_vs_conn *cp, u_int8_t proto,
1787 void ip_vs_conn_drop_conntrack(struct ip_vs_conn *cp);
1797 struct ip_vs_conn *cp, int outin) in ip_vs_update_conntrack() argument
1806 static inline void ip_vs_conn_drop_conntrack(struct ip_vs_conn *cp) in ip_vs_conn_drop_conntrack() argument
1812 static inline bool ip_vs_conn_uses_old_conntrack(struct ip_vs_conn *cp, in ip_vs_conn_uses_old_conntrack() argument
1874 struct ip_vs_conn *cp, struct ip_vs_iphdr *iph));
1880 struct ip_vs_conn *cp, struct ip_vs_iphdr *iph));