Lines Matching refs:pp
48 static int register_ip_vs_protocol(struct ip_vs_protocol *pp)
50 unsigned hash = IP_VS_PROTO_HASH(pp->protocol);
52 pp->next = ip_vs_proto_table[hash];
53 ip_vs_proto_table[hash] = pp;
55 if (pp->init != NULL)
56 pp->init(pp);
65 static int unregister_ip_vs_protocol(struct ip_vs_protocol *pp)
68 unsigned hash = IP_VS_PROTO_HASH(pp->protocol);
72 if (*pp_p == pp) {
73 *pp_p = pp->next;
74 if (pp->exit != NULL)
75 pp->exit(pp);
89 struct ip_vs_protocol *pp;
92 for (pp = ip_vs_proto_table[hash]; pp; pp = pp->next) {
93 if (pp->protocol == proto)
94 return pp;
106 struct ip_vs_protocol *pp;
110 for (pp = ip_vs_proto_table[i]; pp; pp = pp->next) {
111 if (pp->timeout_change)
112 pp->timeout_change(pp, flags);
148 struct ip_vs_protocol *pp = ip_vs_proto_get(proto);
150 if (pp == NULL || pp->state_name == NULL)
152 return pp->state_name(state);
157 ip_vs_tcpudp_debug_packet(struct ip_vs_protocol *pp,
167 sprintf(buf, "%s TRUNCATED", pp->name);
170 pp->name, NIPQUAD(ih->saddr),
179 pp->name,
184 pp->name,
227 struct ip_vs_protocol *pp;
232 while ((pp = ip_vs_proto_table[i]) != NULL)
233 unregister_ip_vs_protocol(pp);