Lines Matching refs:prot
45 void inet6_add_protocol(struct inet6_protocol *prot) in inet6_add_protocol() argument
50 hash = prot->protocol & (MAX_INET_PROTOS - 1); in inet6_add_protocol()
52 prot->next = inet6_protos[hash]; in inet6_add_protocol()
53 inet6_protos[hash] = prot; in inet6_add_protocol()
54 prot->copy = 0; in inet6_add_protocol()
60 p2 = (struct inet6_protocol *) prot->next; in inet6_add_protocol()
62 if (p2->protocol == prot->protocol) { in inet6_add_protocol()
63 prot->copy = 1; in inet6_add_protocol()
75 int inet6_del_protocol(struct inet6_protocol *prot) in inet6_del_protocol() argument
81 hash = prot->protocol & (MAX_INET_PROTOS - 1); in inet6_del_protocol()
83 if (prot == inet6_protos[hash]) { in inet6_del_protocol()
91 if (p != NULL && p->protocol == prot->protocol) in inet6_del_protocol()
100 if (p->next != NULL && p->next == prot) { in inet6_del_protocol()
105 if (prot->copy == 0 && lp != NULL) in inet6_del_protocol()
107 p->next = prot->next; in inet6_del_protocol()
111 if (p->next != NULL && p->next->protocol == prot->protocol) in inet6_del_protocol()