Lines Matching defs:ep
6033 struct pf_sctp_endpoint *ep;
6043 ep = RB_FIND(pf_sctp_endpoints, &V_pf_sctp_endpoints, &key);
6044 if (ep != NULL) {
6046 TAILQ_FOREACH_SAFE(i, &ep->sources, entry, tmp) {
6050 TAILQ_REMOVE(&ep->sources, i, entry);
6056 if (TAILQ_EMPTY(&ep->sources)) {
6057 RB_REMOVE(pf_sctp_endpoints, &V_pf_sctp_endpoints, ep);
6058 free(ep, M_PFTEMP);
6064 ep = RB_FIND(pf_sctp_endpoints, &V_pf_sctp_endpoints, &key);
6065 if (ep != NULL) {
6066 TAILQ_FOREACH_SAFE(i, &ep->sources, entry, tmp) {
6070 TAILQ_REMOVE(&ep->sources, i, entry);
6076 if (TAILQ_EMPTY(&ep->sources)) {
6077 RB_REMOVE(pf_sctp_endpoints, &V_pf_sctp_endpoints, ep);
6078 free(ep, M_PFTEMP);
6092 struct pf_sctp_endpoint *ep;
6096 ep = RB_FIND(pf_sctp_endpoints, &V_pf_sctp_endpoints, &key);
6097 if (ep == NULL) {
6098 ep = malloc(sizeof(struct pf_sctp_endpoint),
6100 if (ep == NULL) {
6105 ep->v_tag = v_tag;
6106 TAILQ_INIT(&ep->sources);
6107 RB_INSERT(pf_sctp_endpoints, &V_pf_sctp_endpoints, ep);
6111 TAILQ_FOREACH(i, &ep->sources, entry) {
6126 TAILQ_INSERT_TAIL(&ep->sources, i, entry);
6215 struct pf_sctp_endpoint *ep;
6218 ep = RB_FIND(pf_sctp_endpoints, &V_pf_sctp_endpoints, &key);
6219 if (ep == NULL) {
6223 MPASS(ep != NULL);
6225 TAILQ_FOREACH(i, &ep->sources, entry) {