Lines Matching defs: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)
1342 return refcount_inc_not_zero(&cp->refcnt);
1346 static inline void __ip_vs_conn_put(struct ip_vs_conn *cp)
1349 refcount_dec(&cp->refcnt);
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)
1370 struct ip_vs_conn *ctl_cp = cp->control;
1374 IP_VS_DBG_ADDR(cp->af, &cp->caddr),
1375 ntohs(cp->cport),
1376 IP_VS_DBG_ADDR(cp->af, &cp->vaddr),
1377 ntohs(cp->vport));
1383 "cp.dst=%s:%d ctl_cp.dst=%s:%d\n",
1384 IP_VS_DBG_ADDR(cp->af, &cp->caddr),
1385 ntohs(cp->cport),
1386 IP_VS_DBG_ADDR(cp->af, &ctl_cp->caddr),
1389 cp->control = NULL;
1393 IP_VS_DBG_ADDR(cp->af, &cp->caddr),
1394 ntohs(cp->cport),
1395 IP_VS_DBG_ADDR(cp->af, &cp->vaddr),
1396 ntohs(cp->vport));
1404 ip_vs_control_add(struct ip_vs_conn *cp, struct ip_vs_conn *ctl_cp)
1406 if (cp->control) {
1409 IP_VS_DBG_ADDR(cp->af, &cp->caddr),
1410 ntohs(cp->cport),
1411 IP_VS_DBG_ADDR(cp->af, &cp->vaddr),
1412 ntohs(cp->vport));
1414 ip_vs_control_del(cp);
1418 "cp.dst=%s:%d ctl_cp.dst=%s:%d\n",
1419 IP_VS_DBG_ADDR(cp->af, &cp->caddr),
1420 ntohs(cp->cport),
1421 IP_VS_DBG_ADDR(cp->af, &ctl_cp->caddr),
1424 cp->control = ctl_cp;
1430 ip_vs_control_assure_ct(struct ip_vs_conn *cp)
1432 struct ip_vs_conn *ct = cp->control;
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)
1685 static inline char ip_vs_fwd_tag(struct ip_vs_conn *cp)
1689 switch (IP_VS_FWD_METHOD(cp)) {
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)
1793 static inline void ip_vs_conn_drop_conntrack(struct ip_vs_conn *cp)
1799 static inline bool ip_vs_conn_uses_old_conntrack(struct ip_vs_conn *cp,
1861 struct ip_vs_conn *cp, struct ip_vs_iphdr *iph));
1867 struct ip_vs_conn *cp, struct ip_vs_iphdr *iph));