* creating x25_prot * assigning sk_prot Signed-off-by: Aristeu Sergio Rozanski Filho Index: net/x25/x25_proto.c =================================================================== --- net/x25/x25_proto.c (revision 31) +++ net/x25/x25_proto.c (revision 32) @@ -11,3 +11,9 @@ * 2004-08-09 Aristeu S. Rozanski F. created */ +struct proto x25_prot = { + .name = "X25", +}; + +EXPORT_SYMBOL(x25_prot); + Index: net/x25/af_x25.c =================================================================== --- net/x25/af_x25.c (revision 31) +++ net/x25/af_x25.c (revision 32) @@ -73,6 +73,8 @@ static struct x25_address null_x25_address = {" "}; +extern struct proto x25_prot; + int x25_addr_ntoa(unsigned char *p, struct x25_address *called_addr, struct x25_address *calling_addr) { @@ -485,6 +487,7 @@ sock->ops = &x25_proto_ops; sk->sk_protocol = protocol; + sk->sk_prot = &x25_prot; sk->sk_backlog_rcv = x25_backlog_rcv; x25->t21 = sysctl_x25_call_request_timeout; @@ -528,6 +531,7 @@ sk->sk_sleep = osk->sk_sleep; sk->sk_zapped = osk->sk_zapped; sk->sk_backlog_rcv = osk->sk_backlog_rcv; + sk->sk_prot = osk->sk_prot; ox25 = x25_sk(osk); x25->t21 = ox25->t21;