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,
1340 static inline bool __ip_vs_conn_get(struct ip_vs_conn *cp) in __ip_vs_conn_get() argument
1342 return refcount_inc_not_zero(&cp->refcnt); in __ip_vs_conn_get()
1346 static inline void __ip_vs_conn_put(struct ip_vs_conn *cp) in __ip_vs_conn_put() argument
1349 refcount_dec(&cp->refcnt); in __ip_vs_conn_put()
1351 void ip_vs_conn_put(struct ip_vs_conn *cp);
1352 void ip_vs_conn_fill_cport(struct ip_vs_conn *cp, __be16 cport);
1358 void ip_vs_conn_expire_now(struct ip_vs_conn *cp);
1360 const char *ip_vs_state_name(const struct ip_vs_conn *cp);
1362 void ip_vs_tcp_conn_listen(struct ip_vs_conn *cp);
1368 static inline void ip_vs_control_del(struct ip_vs_conn *cp) in ip_vs_control_del() argument
1370 struct ip_vs_conn *ctl_cp = cp->control; in ip_vs_control_del()
1374 IP_VS_DBG_ADDR(cp->af, &cp->caddr), in ip_vs_control_del()
1375 ntohs(cp->cport), in ip_vs_control_del()
1376 IP_VS_DBG_ADDR(cp->af, &cp->vaddr), in ip_vs_control_del()
1377 ntohs(cp->vport)); in ip_vs_control_del()
1384 IP_VS_DBG_ADDR(cp->af, &cp->caddr), in ip_vs_control_del()
1385 ntohs(cp->cport), in ip_vs_control_del()
1386 IP_VS_DBG_ADDR(cp->af, &ctl_cp->caddr), in ip_vs_control_del()
1389 cp->control = NULL; in ip_vs_control_del()
1393 IP_VS_DBG_ADDR(cp->af, &cp->caddr), in ip_vs_control_del()
1394 ntohs(cp->cport), in ip_vs_control_del()
1395 IP_VS_DBG_ADDR(cp->af, &cp->vaddr), in ip_vs_control_del()
1396 ntohs(cp->vport)); in ip_vs_control_del()
1404 ip_vs_control_add(struct ip_vs_conn *cp, struct ip_vs_conn *ctl_cp) in ip_vs_control_add() argument
1406 if (cp->control) { in ip_vs_control_add()
1409 IP_VS_DBG_ADDR(cp->af, &cp->caddr), in ip_vs_control_add()
1410 ntohs(cp->cport), in ip_vs_control_add()
1411 IP_VS_DBG_ADDR(cp->af, &cp->vaddr), in ip_vs_control_add()
1412 ntohs(cp->vport)); in ip_vs_control_add()
1414 ip_vs_control_del(cp); in ip_vs_control_add()
1419 IP_VS_DBG_ADDR(cp->af, &cp->caddr), in ip_vs_control_add()
1420 ntohs(cp->cport), in ip_vs_control_add()
1421 IP_VS_DBG_ADDR(cp->af, &ctl_cp->caddr), in ip_vs_control_add()
1424 cp->control = ctl_cp; in ip_vs_control_add()
1430 ip_vs_control_assure_ct(struct ip_vs_conn *cp) in ip_vs_control_assure_ct() argument
1432 struct ip_vs_conn *ct = cp->control; in ip_vs_control_assure_ct()
1460 int ip_vs_bind_app(struct ip_vs_conn *cp, struct ip_vs_protocol *pp);
1461 void ip_vs_unbind_app(struct ip_vs_conn *cp);
1551 void ip_vs_try_bind_dest(struct ip_vs_conn *cp);
1576 void ip_vs_sync_conn(struct netns_ipvs *ipvs, struct ip_vs_conn *cp, int pkts);
1616 int ip_vs_null_xmit(struct sk_buff *skb, struct ip_vs_conn *cp,
1618 int ip_vs_bypass_xmit(struct sk_buff *skb, struct ip_vs_conn *cp,
1620 int ip_vs_nat_xmit(struct sk_buff *skb, struct ip_vs_conn *cp,
1622 int ip_vs_tunnel_xmit(struct sk_buff *skb, struct ip_vs_conn *cp,
1624 int ip_vs_dr_xmit(struct sk_buff *skb, struct ip_vs_conn *cp,
1626 int ip_vs_icmp_xmit(struct sk_buff *skb, struct ip_vs_conn *cp,
1632 int ip_vs_bypass_xmit_v6(struct sk_buff *skb, struct ip_vs_conn *cp,
1634 int ip_vs_nat_xmit_v6(struct sk_buff *skb, struct ip_vs_conn *cp,
1636 int ip_vs_tunnel_xmit_v6(struct sk_buff *skb, struct ip_vs_conn *cp,
1638 int ip_vs_dr_xmit_v6(struct sk_buff *skb, struct ip_vs_conn *cp,
1640 int ip_vs_icmp_xmit_v6(struct sk_buff *skb, struct ip_vs_conn *cp,
1683 #define IP_VS_FWD_METHOD(cp) (cp->flags & IP_VS_CONN_F_FWD_MASK) argument
1685 static inline char ip_vs_fwd_tag(struct ip_vs_conn *cp) in ip_vs_fwd_tag() argument
1689 switch (IP_VS_FWD_METHOD(cp)) { in ip_vs_fwd_tag()
1707 struct ip_vs_conn *cp, int dir);
1711 struct ip_vs_conn *cp, int dir);
1768 void ip_vs_update_conntrack(struct sk_buff *skb, struct ip_vs_conn *cp,
1772 struct ip_vs_conn *cp, u_int8_t proto,
1774 void ip_vs_conn_drop_conntrack(struct ip_vs_conn *cp);
1784 struct ip_vs_conn *cp, int outin) in ip_vs_update_conntrack() argument
1793 static inline void ip_vs_conn_drop_conntrack(struct ip_vs_conn *cp) in ip_vs_conn_drop_conntrack() argument
1799 static inline bool ip_vs_conn_uses_old_conntrack(struct ip_vs_conn *cp, in ip_vs_conn_uses_old_conntrack() argument
1861 struct ip_vs_conn *cp, struct ip_vs_iphdr *iph));
1867 struct ip_vs_conn *cp, struct ip_vs_iphdr *iph));