Lines Matching refs:cp

92 		  struct ip_vs_conn *cp, struct ip_vs_iphdr *iph)
99 if (cp->af == AF_INET6 && iph->fragoffs)
107 if (unlikely(cp->app != NULL)) {
111 if (!sctp_csum_check(cp->af, skb, pp))
115 ret = ip_vs_app_pkt_out(cp, skb, iph);
126 if (sctph->source != cp->vport || payload_csum ||
128 sctph->source = cp->vport;
140 struct ip_vs_conn *cp, struct ip_vs_iphdr *iph)
147 if (cp->af == AF_INET6 && iph->fragoffs)
155 if (unlikely(cp->app != NULL)) {
159 if (!sctp_csum_check(cp->af, skb, pp))
163 ret = ip_vs_app_pkt_in(cp, skb, iph);
174 if (sctph->dest != cp->dport || payload_csum ||
177 sctph->dest = cp->dport;
380 set_sctp_state(struct ip_vs_proto_data *pd, struct ip_vs_conn *cp,
389 ihl = cp->af == AF_INET ? ip_hdrlen(skb) : sizeof(struct ipv6hdr);
429 if (cp->flags & IP_VS_CONN_F_NOOUTPUT) {
431 cp->flags &= ~IP_VS_CONN_F_NOOUTPUT;
436 next_state = sctp_states[direction][event][cp->state];
438 if (next_state != cp->state) {
439 struct ip_vs_dest *dest = cp->dest;
446 IP_VS_DBG_ADDR(cp->daf, &cp->daddr),
447 ntohs(cp->dport),
448 IP_VS_DBG_ADDR(cp->af, &cp->caddr),
449 ntohs(cp->cport),
450 sctp_state_name(cp->state),
452 refcount_read(&cp->refcnt));
454 if (!(cp->flags & IP_VS_CONN_F_INACTIVE) &&
458 cp->flags |= IP_VS_CONN_F_INACTIVE;
459 } else if ((cp->flags & IP_VS_CONN_F_INACTIVE) &&
463 cp->flags &= ~IP_VS_CONN_F_INACTIVE;
467 ip_vs_control_assure_ct(cp);
470 cp->timeout = pd->timeout_table[cp->state = next_state];
472 cp->timeout = sctp_timeouts[cp->state = next_state];
476 sctp_state_transition(struct ip_vs_conn *cp, int direction,
479 spin_lock_bh(&cp->lock);
480 set_sctp_state(pd, cp, direction, skb);
481 spin_unlock_bh(&cp->lock);
521 static int sctp_app_conn_bind(struct ip_vs_conn *cp)
523 struct netns_ipvs *ipvs = cp->ipvs;
529 if (IP_VS_FWD_METHOD(cp) != IP_VS_CONN_F_MASQ)
532 hash = sctp_app_hashkey(cp->vport);
535 if (inc->port == cp->vport) {
542 IP_VS_DBG_ADDR(cp->af, &cp->caddr),
543 ntohs(cp->cport),
544 IP_VS_DBG_ADDR(cp->af, &cp->vaddr),
545 ntohs(cp->vport),
547 cp->app = inc;
549 result = inc->init_conn(inc, cp);