diff options
| author | YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> | 2007-02-09 09:25:27 -0500 |
|---|---|---|
| committer | David S. Miller <davem@sunset.davemloft.net> | 2007-02-11 02:20:22 -0500 |
| commit | f8e1d20183bf56f889d60edadd48f54912b9277f (patch) | |
| tree | aecc63517c0345e1fb57acd693bb1117247a1e3c /net/x25 | |
| parent | 4ba6122b4e0537858e8579716896f01acf55f745 (diff) | |
[NET] X25: Fix whitespace errors.
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/x25')
| -rw-r--r-- | net/x25/af_x25.c | 64 | ||||
| -rw-r--r-- | net/x25/sysctl_net_x25.c | 10 | ||||
| -rw-r--r-- | net/x25/x25_dev.c | 6 | ||||
| -rw-r--r-- | net/x25/x25_facilities.c | 10 | ||||
| -rw-r--r-- | net/x25/x25_in.c | 8 | ||||
| -rw-r--r-- | net/x25/x25_link.c | 6 | ||||
| -rw-r--r-- | net/x25/x25_out.c | 10 | ||||
| -rw-r--r-- | net/x25/x25_proc.c | 8 | ||||
| -rw-r--r-- | net/x25/x25_route.c | 2 | ||||
| -rw-r--r-- | net/x25/x25_timer.c | 6 |
10 files changed, 65 insertions, 65 deletions
diff --git a/net/x25/af_x25.c b/net/x25/af_x25.c index b37d894358ec..e62ba41b05c5 100644 --- a/net/x25/af_x25.c +++ b/net/x25/af_x25.c | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | * | 3 | * |
| 4 | * This is ALPHA test software. This code may break your machine, | 4 | * This is ALPHA test software. This code may break your machine, |
| 5 | * randomly fail to work with new releases, misbehave and/or generally | 5 | * randomly fail to work with new releases, misbehave and/or generally |
| 6 | * screw up. It might even work. | 6 | * screw up. It might even work. |
| 7 | * | 7 | * |
| 8 | * This code REQUIRES 2.1.15 or higher | 8 | * This code REQUIRES 2.1.15 or higher |
| 9 | * | 9 | * |
| @@ -18,11 +18,11 @@ | |||
| 18 | * X.25 002 Jonathan Naylor Centralised disconnect handling. | 18 | * X.25 002 Jonathan Naylor Centralised disconnect handling. |
| 19 | * New timer architecture. | 19 | * New timer architecture. |
| 20 | * 2000-03-11 Henner Eisen MSG_EOR handling more POSIX compliant. | 20 | * 2000-03-11 Henner Eisen MSG_EOR handling more POSIX compliant. |
| 21 | * 2000-03-22 Daniela Squassoni Allowed disabling/enabling of | 21 | * 2000-03-22 Daniela Squassoni Allowed disabling/enabling of |
| 22 | * facilities negotiation and increased | 22 | * facilities negotiation and increased |
| 23 | * the throughput upper limit. | 23 | * the throughput upper limit. |
| 24 | * 2000-08-27 Arnaldo C. Melo s/suser/capable/ + micro cleanups | 24 | * 2000-08-27 Arnaldo C. Melo s/suser/capable/ + micro cleanups |
| 25 | * 2000-09-04 Henner Eisen Set sock->state in x25_accept(). | 25 | * 2000-09-04 Henner Eisen Set sock->state in x25_accept(). |
| 26 | * Fixed x25_output() related skb leakage. | 26 | * Fixed x25_output() related skb leakage. |
| 27 | * 2000-10-02 Henner Eisen Made x25_kick() single threaded per socket. | 27 | * 2000-10-02 Henner Eisen Made x25_kick() single threaded per socket. |
| 28 | * 2000-10-27 Henner Eisen MSG_DONTWAIT for fragment allocation. | 28 | * 2000-10-27 Henner Eisen MSG_DONTWAIT for fragment allocation. |
| @@ -256,8 +256,8 @@ static struct sock *x25_find_listener(struct x25_address *addr, | |||
| 256 | * call user data vs this sockets call user data | 256 | * call user data vs this sockets call user data |
| 257 | */ | 257 | */ |
| 258 | if(skb->len > 0 && x25_sk(s)->cudmatchlength > 0) { | 258 | if(skb->len > 0 && x25_sk(s)->cudmatchlength > 0) { |
| 259 | if((memcmp(x25_sk(s)->calluserdata.cuddata, | 259 | if((memcmp(x25_sk(s)->calluserdata.cuddata, |
| 260 | skb->data, | 260 | skb->data, |
| 261 | x25_sk(s)->cudmatchlength)) == 0) { | 261 | x25_sk(s)->cudmatchlength)) == 0) { |
| 262 | sock_hold(s); | 262 | sock_hold(s); |
| 263 | goto found; | 263 | goto found; |
| @@ -421,7 +421,7 @@ static int x25_getsockopt(struct socket *sock, int level, int optname, | |||
| 421 | { | 421 | { |
| 422 | struct sock *sk = sock->sk; | 422 | struct sock *sk = sock->sk; |
| 423 | int val, len, rc = -ENOPROTOOPT; | 423 | int val, len, rc = -ENOPROTOOPT; |
| 424 | 424 | ||
| 425 | if (level != SOL_X25 || optname != X25_QBITINCL) | 425 | if (level != SOL_X25 || optname != X25_QBITINCL) |
| 426 | goto out; | 426 | goto out; |
| 427 | 427 | ||
| @@ -434,7 +434,7 @@ static int x25_getsockopt(struct socket *sock, int level, int optname, | |||
| 434 | rc = -EINVAL; | 434 | rc = -EINVAL; |
| 435 | if (len < 0) | 435 | if (len < 0) |
| 436 | goto out; | 436 | goto out; |
| 437 | 437 | ||
| 438 | rc = -EFAULT; | 438 | rc = -EFAULT; |
| 439 | if (put_user(len, optlen)) | 439 | if (put_user(len, optlen)) |
| 440 | goto out; | 440 | goto out; |
| @@ -523,12 +523,12 @@ static int x25_create(struct socket *sock, int protocol) | |||
| 523 | x25->facilities.pacsize_out = X25_DEFAULT_PACKET_SIZE; | 523 | x25->facilities.pacsize_out = X25_DEFAULT_PACKET_SIZE; |
| 524 | x25->facilities.throughput = X25_DEFAULT_THROUGHPUT; | 524 | x25->facilities.throughput = X25_DEFAULT_THROUGHPUT; |
| 525 | x25->facilities.reverse = X25_DEFAULT_REVERSE; | 525 | x25->facilities.reverse = X25_DEFAULT_REVERSE; |
| 526 | x25->dte_facilities.calling_len = 0; | 526 | x25->dte_facilities.calling_len = 0; |
| 527 | x25->dte_facilities.called_len = 0; | 527 | x25->dte_facilities.called_len = 0; |
| 528 | memset(x25->dte_facilities.called_ae, '\0', | 528 | memset(x25->dte_facilities.called_ae, '\0', |
| 529 | sizeof(x25->dte_facilities.called_ae)); | 529 | sizeof(x25->dte_facilities.called_ae)); |
| 530 | memset(x25->dte_facilities.calling_ae, '\0', | 530 | memset(x25->dte_facilities.calling_ae, '\0', |
| 531 | sizeof(x25->dte_facilities.calling_ae)); | 531 | sizeof(x25->dte_facilities.calling_ae)); |
| 532 | 532 | ||
| 533 | rc = 0; | 533 | rc = 0; |
| 534 | out: | 534 | out: |
| @@ -608,7 +608,7 @@ static int x25_release(struct socket *sock) | |||
| 608 | break; | 608 | break; |
| 609 | } | 609 | } |
| 610 | 610 | ||
| 611 | sock->sk = NULL; | 611 | sock->sk = NULL; |
| 612 | sk->sk_socket = NULL; /* Not used, but we should do this */ | 612 | sk->sk_socket = NULL; /* Not used, but we should do this */ |
| 613 | out: | 613 | out: |
| 614 | return 0; | 614 | return 0; |
| @@ -635,7 +635,7 @@ static int x25_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len) | |||
| 635 | static int x25_wait_for_connection_establishment(struct sock *sk) | 635 | static int x25_wait_for_connection_establishment(struct sock *sk) |
| 636 | { | 636 | { |
| 637 | DECLARE_WAITQUEUE(wait, current); | 637 | DECLARE_WAITQUEUE(wait, current); |
| 638 | int rc; | 638 | int rc; |
| 639 | 639 | ||
| 640 | add_wait_queue_exclusive(sk->sk_sleep, &wait); | 640 | add_wait_queue_exclusive(sk->sk_sleep, &wait); |
| 641 | for (;;) { | 641 | for (;;) { |
| @@ -686,7 +686,7 @@ static int x25_connect(struct socket *sock, struct sockaddr *uaddr, | |||
| 686 | if (sk->sk_state == TCP_ESTABLISHED) | 686 | if (sk->sk_state == TCP_ESTABLISHED) |
| 687 | goto out; | 687 | goto out; |
| 688 | 688 | ||
| 689 | sk->sk_state = TCP_CLOSE; | 689 | sk->sk_state = TCP_CLOSE; |
| 690 | sock->state = SS_UNCONNECTED; | 690 | sock->state = SS_UNCONNECTED; |
| 691 | 691 | ||
| 692 | rc = -EINVAL; | 692 | rc = -EINVAL; |
| @@ -778,7 +778,7 @@ static int x25_wait_for_data(struct sock *sk, long timeout) | |||
| 778 | remove_wait_queue(sk->sk_sleep, &wait); | 778 | remove_wait_queue(sk->sk_sleep, &wait); |
| 779 | return rc; | 779 | return rc; |
| 780 | } | 780 | } |
| 781 | 781 | ||
| 782 | static int x25_accept(struct socket *sock, struct socket *newsock, int flags) | 782 | static int x25_accept(struct socket *sock, struct socket *newsock, int flags) |
| 783 | { | 783 | { |
| 784 | struct sock *sk = sock->sk; | 784 | struct sock *sk = sock->sk; |
| @@ -837,7 +837,7 @@ static int x25_getname(struct socket *sock, struct sockaddr *uaddr, | |||
| 837 | 837 | ||
| 838 | return 0; | 838 | return 0; |
| 839 | } | 839 | } |
| 840 | 840 | ||
| 841 | int x25_rx_call_request(struct sk_buff *skb, struct x25_neigh *nb, | 841 | int x25_rx_call_request(struct sk_buff *skb, struct x25_neigh *nb, |
| 842 | unsigned int lci) | 842 | unsigned int lci) |
| 843 | { | 843 | { |
| @@ -1120,7 +1120,7 @@ static int x25_sendmsg(struct kiocb *iocb, struct socket *sock, | |||
| 1120 | if (msg->msg_flags & MSG_OOB) | 1120 | if (msg->msg_flags & MSG_OOB) |
| 1121 | skb_queue_tail(&x25->interrupt_out_queue, skb); | 1121 | skb_queue_tail(&x25->interrupt_out_queue, skb); |
| 1122 | else { | 1122 | else { |
| 1123 | len = x25_output(sk, skb); | 1123 | len = x25_output(sk, skb); |
| 1124 | if (len < 0) | 1124 | if (len < 0) |
| 1125 | kfree_skb(skb); | 1125 | kfree_skb(skb); |
| 1126 | else if (x25->qbitincl) | 1126 | else if (x25->qbitincl) |
| @@ -1219,7 +1219,7 @@ static int x25_recvmsg(struct kiocb *iocb, struct socket *sock, | |||
| 1219 | msg->msg_flags |= MSG_TRUNC; | 1219 | msg->msg_flags |= MSG_TRUNC; |
| 1220 | } | 1220 | } |
| 1221 | 1221 | ||
| 1222 | /* Currently, each datagram always contains a complete record */ | 1222 | /* Currently, each datagram always contains a complete record */ |
| 1223 | msg->msg_flags |= MSG_EOR; | 1223 | msg->msg_flags |= MSG_EOR; |
| 1224 | 1224 | ||
| 1225 | rc = skb_copy_datagram_iovec(skb, 0, msg->msg_iov, copied); | 1225 | rc = skb_copy_datagram_iovec(skb, 0, msg->msg_iov, copied); |
| @@ -1277,8 +1277,8 @@ static int x25_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) | |||
| 1277 | case SIOCGSTAMP: | 1277 | case SIOCGSTAMP: |
| 1278 | rc = -EINVAL; | 1278 | rc = -EINVAL; |
| 1279 | if (sk) | 1279 | if (sk) |
| 1280 | rc = sock_get_timestamp(sk, | 1280 | rc = sock_get_timestamp(sk, |
| 1281 | (struct timeval __user *)argp); | 1281 | (struct timeval __user *)argp); |
| 1282 | break; | 1282 | break; |
| 1283 | case SIOCGIFADDR: | 1283 | case SIOCGIFADDR: |
| 1284 | case SIOCSIFADDR: | 1284 | case SIOCSIFADDR: |
| @@ -1346,17 +1346,17 @@ static int x25_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) | |||
| 1346 | } | 1346 | } |
| 1347 | 1347 | ||
| 1348 | case SIOCX25GDTEFACILITIES: { | 1348 | case SIOCX25GDTEFACILITIES: { |
| 1349 | rc = copy_to_user(argp, &x25->dte_facilities, | 1349 | rc = copy_to_user(argp, &x25->dte_facilities, |
| 1350 | sizeof(x25->dte_facilities)); | 1350 | sizeof(x25->dte_facilities)); |
| 1351 | if (rc) | 1351 | if (rc) |
| 1352 | rc = -EFAULT; | 1352 | rc = -EFAULT; |
| 1353 | break; | 1353 | break; |
| 1354 | } | 1354 | } |
| 1355 | 1355 | ||
| 1356 | case SIOCX25SDTEFACILITIES: { | 1356 | case SIOCX25SDTEFACILITIES: { |
| 1357 | struct x25_dte_facilities dtefacs; | 1357 | struct x25_dte_facilities dtefacs; |
| 1358 | rc = -EFAULT; | 1358 | rc = -EFAULT; |
| 1359 | if (copy_from_user(&dtefacs, argp, sizeof(dtefacs))) | 1359 | if (copy_from_user(&dtefacs, argp, sizeof(dtefacs))) |
| 1360 | break; | 1360 | break; |
| 1361 | rc = -EINVAL; | 1361 | rc = -EINVAL; |
| 1362 | if (sk->sk_state != TCP_LISTEN && | 1362 | if (sk->sk_state != TCP_LISTEN && |
| @@ -1414,7 +1414,7 @@ static int x25_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) | |||
| 1414 | if (copy_from_user(&sub_addr, argp, | 1414 | if (copy_from_user(&sub_addr, argp, |
| 1415 | sizeof(sub_addr))) | 1415 | sizeof(sub_addr))) |
| 1416 | break; | 1416 | break; |
| 1417 | rc = -EINVAL; | 1417 | rc = -EINVAL; |
| 1418 | if(sub_addr.cudmatchlength > X25_MAX_CUD_LEN) | 1418 | if(sub_addr.cudmatchlength > X25_MAX_CUD_LEN) |
| 1419 | break; | 1419 | break; |
| 1420 | x25->cudmatchlength = sub_addr.cudmatchlength; | 1420 | x25->cudmatchlength = sub_addr.cudmatchlength; |
| @@ -1443,7 +1443,7 @@ static int x25_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) | |||
| 1443 | break; | 1443 | break; |
| 1444 | } | 1444 | } |
| 1445 | 1445 | ||
| 1446 | default: | 1446 | default: |
| 1447 | rc = -ENOIOCTLCMD; | 1447 | rc = -ENOIOCTLCMD; |
| 1448 | break; | 1448 | break; |
| 1449 | } | 1449 | } |
diff --git a/net/x25/sysctl_net_x25.c b/net/x25/sysctl_net_x25.c index 2b2e7fd689f3..5f631061c229 100644 --- a/net/x25/sysctl_net_x25.c +++ b/net/x25/sysctl_net_x25.c | |||
| @@ -18,7 +18,7 @@ static int max_timer[] = { 300 * HZ }; | |||
| 18 | static struct ctl_table_header *x25_table_header; | 18 | static struct ctl_table_header *x25_table_header; |
| 19 | 19 | ||
| 20 | static struct ctl_table x25_table[] = { | 20 | static struct ctl_table x25_table[] = { |
| 21 | { | 21 | { |
| 22 | .ctl_name = NET_X25_RESTART_REQUEST_TIMEOUT, | 22 | .ctl_name = NET_X25_RESTART_REQUEST_TIMEOUT, |
| 23 | .procname = "restart_request_timeout", | 23 | .procname = "restart_request_timeout", |
| 24 | .data = &sysctl_x25_restart_request_timeout, | 24 | .data = &sysctl_x25_restart_request_timeout, |
| @@ -29,7 +29,7 @@ static struct ctl_table x25_table[] = { | |||
| 29 | .extra1 = &min_timer, | 29 | .extra1 = &min_timer, |
| 30 | .extra2 = &max_timer, | 30 | .extra2 = &max_timer, |
| 31 | }, | 31 | }, |
| 32 | { | 32 | { |
| 33 | .ctl_name = NET_X25_CALL_REQUEST_TIMEOUT, | 33 | .ctl_name = NET_X25_CALL_REQUEST_TIMEOUT, |
| 34 | .procname = "call_request_timeout", | 34 | .procname = "call_request_timeout", |
| 35 | .data = &sysctl_x25_call_request_timeout, | 35 | .data = &sysctl_x25_call_request_timeout, |
| @@ -40,7 +40,7 @@ static struct ctl_table x25_table[] = { | |||
| 40 | .extra1 = &min_timer, | 40 | .extra1 = &min_timer, |
| 41 | .extra2 = &max_timer, | 41 | .extra2 = &max_timer, |
| 42 | }, | 42 | }, |
| 43 | { | 43 | { |
| 44 | .ctl_name = NET_X25_RESET_REQUEST_TIMEOUT, | 44 | .ctl_name = NET_X25_RESET_REQUEST_TIMEOUT, |
| 45 | .procname = "reset_request_timeout", | 45 | .procname = "reset_request_timeout", |
| 46 | .data = &sysctl_x25_reset_request_timeout, | 46 | .data = &sysctl_x25_reset_request_timeout, |
| @@ -51,7 +51,7 @@ static struct ctl_table x25_table[] = { | |||
| 51 | .extra1 = &min_timer, | 51 | .extra1 = &min_timer, |
| 52 | .extra2 = &max_timer, | 52 | .extra2 = &max_timer, |
| 53 | }, | 53 | }, |
| 54 | { | 54 | { |
| 55 | .ctl_name = NET_X25_CLEAR_REQUEST_TIMEOUT, | 55 | .ctl_name = NET_X25_CLEAR_REQUEST_TIMEOUT, |
| 56 | .procname = "clear_request_timeout", | 56 | .procname = "clear_request_timeout", |
| 57 | .data = &sysctl_x25_clear_request_timeout, | 57 | .data = &sysctl_x25_clear_request_timeout, |
| @@ -62,7 +62,7 @@ static struct ctl_table x25_table[] = { | |||
| 62 | .extra1 = &min_timer, | 62 | .extra1 = &min_timer, |
| 63 | .extra2 = &max_timer, | 63 | .extra2 = &max_timer, |
| 64 | }, | 64 | }, |
| 65 | { | 65 | { |
| 66 | .ctl_name = NET_X25_ACK_HOLD_BACK_TIMEOUT, | 66 | .ctl_name = NET_X25_ACK_HOLD_BACK_TIMEOUT, |
| 67 | .procname = "acknowledgement_hold_back_timeout", | 67 | .procname = "acknowledgement_hold_back_timeout", |
| 68 | .data = &sysctl_x25_ack_holdback_timeout, | 68 | .data = &sysctl_x25_ack_holdback_timeout, |
diff --git a/net/x25/x25_dev.c b/net/x25/x25_dev.c index f099fd6a7c0e..c7221de98a95 100644 --- a/net/x25/x25_dev.c +++ b/net/x25/x25_dev.c | |||
| @@ -1,8 +1,8 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * X.25 Packet Layer release 002 | 2 | * X.25 Packet Layer release 002 |
| 3 | * | 3 | * |
| 4 | * This is ALPHA test software. This code may break your machine, randomly fail to work with new | 4 | * This is ALPHA test software. This code may break your machine, randomly fail to work with new |
| 5 | * releases, misbehave and/or generally screw up. It might even work. | 5 | * releases, misbehave and/or generally screw up. It might even work. |
| 6 | * | 6 | * |
| 7 | * This code REQUIRES 2.1.15 or higher | 7 | * This code REQUIRES 2.1.15 or higher |
| 8 | * | 8 | * |
| @@ -31,7 +31,7 @@ static int x25_receive_data(struct sk_buff *skb, struct x25_neigh *nb) | |||
| 31 | unsigned int lci; | 31 | unsigned int lci; |
| 32 | 32 | ||
| 33 | frametype = skb->data[2]; | 33 | frametype = skb->data[2]; |
| 34 | lci = ((skb->data[0] << 8) & 0xF00) + ((skb->data[1] << 0) & 0x0FF); | 34 | lci = ((skb->data[0] << 8) & 0xF00) + ((skb->data[1] << 0) & 0x0FF); |
| 35 | 35 | ||
| 36 | /* | 36 | /* |
| 37 | * LCI of zero is always for us, and its always a link control | 37 | * LCI of zero is always for us, and its always a link control |
diff --git a/net/x25/x25_facilities.c b/net/x25/x25_facilities.c index 27f5cc7966f6..dec404afa113 100644 --- a/net/x25/x25_facilities.c +++ b/net/x25/x25_facilities.c | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | * | 3 | * |
| 4 | * This is ALPHA test software. This code may break your machine, | 4 | * This is ALPHA test software. This code may break your machine, |
| 5 | * randomly fail to work with new releases, misbehave and/or generally | 5 | * randomly fail to work with new releases, misbehave and/or generally |
| 6 | * screw up. It might even work. | 6 | * screw up. It might even work. |
| 7 | * | 7 | * |
| 8 | * This code REQUIRES 2.1.15 or higher | 8 | * This code REQUIRES 2.1.15 or higher |
| 9 | * | 9 | * |
| @@ -15,7 +15,7 @@ | |||
| 15 | * | 15 | * |
| 16 | * History | 16 | * History |
| 17 | * X.25 001 Split from x25_subr.c | 17 | * X.25 001 Split from x25_subr.c |
| 18 | * mar/20/00 Daniela Squassoni Disabling/enabling of facilities | 18 | * mar/20/00 Daniela Squassoni Disabling/enabling of facilities |
| 19 | * negotiation. | 19 | * negotiation. |
| 20 | * apr/14/05 Shaun Pereira - Allow fast select with no restriction | 20 | * apr/14/05 Shaun Pereira - Allow fast select with no restriction |
| 21 | * on response. | 21 | * on response. |
| @@ -125,8 +125,8 @@ int x25_parse_facilities(struct sk_buff *skb, struct x25_facilities *facilities, | |||
| 125 | break; | 125 | break; |
| 126 | case X25_FAC_CLASS_D: | 126 | case X25_FAC_CLASS_D: |
| 127 | switch (*p) { | 127 | switch (*p) { |
| 128 | case X25_FAC_CALLING_AE: | 128 | case X25_FAC_CALLING_AE: |
| 129 | if (p[1] > X25_MAX_DTE_FACIL_LEN) | 129 | if (p[1] > X25_MAX_DTE_FACIL_LEN) |
| 130 | break; | 130 | break; |
| 131 | dte_facs->calling_len = p[2]; | 131 | dte_facs->calling_len = p[2]; |
| 132 | memcpy(dte_facs->calling_ae, &p[3], p[1] - 1); | 132 | memcpy(dte_facs->calling_ae, &p[3], p[1] - 1); |
| @@ -293,7 +293,7 @@ int x25_negotiate_facilities(struct sk_buff *skb, struct sock *sk, | |||
| 293 | } | 293 | } |
| 294 | 294 | ||
| 295 | /* | 295 | /* |
| 296 | * Limit values of certain facilities according to the capability of the | 296 | * Limit values of certain facilities according to the capability of the |
| 297 | * currently attached x25 link. | 297 | * currently attached x25 link. |
| 298 | */ | 298 | */ |
| 299 | void x25_limit_facilities(struct x25_facilities *facilities, | 299 | void x25_limit_facilities(struct x25_facilities *facilities, |
diff --git a/net/x25/x25_in.c b/net/x25/x25_in.c index eed50e10f09b..c5239fcdefa0 100644 --- a/net/x25/x25_in.c +++ b/net/x25/x25_in.c | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | * | 3 | * |
| 4 | * This is ALPHA test software. This code may break your machine, | 4 | * This is ALPHA test software. This code may break your machine, |
| 5 | * randomly fail to work with new releases, misbehave and/or generally | 5 | * randomly fail to work with new releases, misbehave and/or generally |
| 6 | * screw up. It might even work. | 6 | * screw up. It might even work. |
| 7 | * | 7 | * |
| 8 | * This code REQUIRES 2.1.15 or higher | 8 | * This code REQUIRES 2.1.15 or higher |
| 9 | * | 9 | * |
| @@ -17,7 +17,7 @@ | |||
| 17 | * X.25 001 Jonathan Naylor Started coding. | 17 | * X.25 001 Jonathan Naylor Started coding. |
| 18 | * X.25 002 Jonathan Naylor Centralised disconnection code. | 18 | * X.25 002 Jonathan Naylor Centralised disconnection code. |
| 19 | * New timer architecture. | 19 | * New timer architecture. |
| 20 | * 2000-03-20 Daniela Squassoni Disabling/enabling of facilities | 20 | * 2000-03-20 Daniela Squassoni Disabling/enabling of facilities |
| 21 | * negotiation. | 21 | * negotiation. |
| 22 | * 2000-11-10 Henner Eisen Check and reset for out-of-sequence | 22 | * 2000-11-10 Henner Eisen Check and reset for out-of-sequence |
| 23 | * i-frames. | 23 | * i-frames. |
| @@ -67,7 +67,7 @@ static int x25_queue_rx_frame(struct sock *sk, struct sk_buff *skb, int more) | |||
| 67 | kfree_skb(skbo); | 67 | kfree_skb(skbo); |
| 68 | } | 68 | } |
| 69 | 69 | ||
| 70 | x25->fraglen = 0; | 70 | x25->fraglen = 0; |
| 71 | } | 71 | } |
| 72 | 72 | ||
| 73 | skb_set_owner_r(skbn, sk); | 73 | skb_set_owner_r(skbn, sk); |
| @@ -167,7 +167,7 @@ static int x25_state3_machine(struct sock *sk, struct sk_buff *skb, int frametyp | |||
| 167 | int queued = 0; | 167 | int queued = 0; |
| 168 | int modulus; | 168 | int modulus; |
| 169 | struct x25_sock *x25 = x25_sk(sk); | 169 | struct x25_sock *x25 = x25_sk(sk); |
| 170 | 170 | ||
| 171 | modulus = (x25->neighbour->extended) ? X25_EMODULUS : X25_SMODULUS; | 171 | modulus = (x25->neighbour->extended) ? X25_EMODULUS : X25_SMODULUS; |
| 172 | 172 | ||
| 173 | switch (frametype) { | 173 | switch (frametype) { |
diff --git a/net/x25/x25_link.c b/net/x25/x25_link.c index 0a760fe66843..741ce95d4ad1 100644 --- a/net/x25/x25_link.c +++ b/net/x25/x25_link.c | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | * | 3 | * |
| 4 | * This is ALPHA test software. This code may break your machine, | 4 | * This is ALPHA test software. This code may break your machine, |
| 5 | * randomly fail to work with new releases, misbehave and/or generally | 5 | * randomly fail to work with new releases, misbehave and/or generally |
| 6 | * screw up. It might even work. | 6 | * screw up. It might even work. |
| 7 | * | 7 | * |
| 8 | * This code REQUIRES 2.1.15 or higher | 8 | * This code REQUIRES 2.1.15 or higher |
| 9 | * | 9 | * |
| @@ -16,7 +16,7 @@ | |||
| 16 | * History | 16 | * History |
| 17 | * X.25 001 Jonathan Naylor Started coding. | 17 | * X.25 001 Jonathan Naylor Started coding. |
| 18 | * X.25 002 Jonathan Naylor New timer architecture. | 18 | * X.25 002 Jonathan Naylor New timer architecture. |
| 19 | * mar/20/00 Daniela Squassoni Disabling/enabling of facilities | 19 | * mar/20/00 Daniela Squassoni Disabling/enabling of facilities |
| 20 | * negotiation. | 20 | * negotiation. |
| 21 | * 2000-09-04 Henner Eisen dev_hold() / dev_put() for x25_neigh. | 21 | * 2000-09-04 Henner Eisen dev_hold() / dev_put() for x25_neigh. |
| 22 | */ | 22 | */ |
| @@ -94,7 +94,7 @@ void x25_link_control(struct sk_buff *skb, struct x25_neigh *nb, | |||
| 94 | skb->data[3], skb->data[4], | 94 | skb->data[3], skb->data[4], |
| 95 | skb->data[5], skb->data[6]); | 95 | skb->data[5], skb->data[6]); |
| 96 | break; | 96 | break; |
| 97 | 97 | ||
| 98 | default: | 98 | default: |
| 99 | printk(KERN_WARNING "x25: received unknown %02X " | 99 | printk(KERN_WARNING "x25: received unknown %02X " |
| 100 | "with LCI 000\n", frametype); | 100 | "with LCI 000\n", frametype); |
diff --git a/net/x25/x25_out.c b/net/x25/x25_out.c index a2e62cea819a..6f5737853912 100644 --- a/net/x25/x25_out.c +++ b/net/x25/x25_out.c | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | * | 3 | * |
| 4 | * This is ALPHA test software. This code may break your machine, | 4 | * This is ALPHA test software. This code may break your machine, |
| 5 | * randomly fail to work with new releases, misbehave and/or generally | 5 | * randomly fail to work with new releases, misbehave and/or generally |
| 6 | * screw up. It might even work. | 6 | * screw up. It might even work. |
| 7 | * | 7 | * |
| 8 | * This code REQUIRES 2.1.15 or higher | 8 | * This code REQUIRES 2.1.15 or higher |
| 9 | * | 9 | * |
| @@ -78,7 +78,7 @@ int x25_output(struct sock *sk, struct sk_buff *skb) | |||
| 78 | "sent\n", err, sent); | 78 | "sent\n", err, sent); |
| 79 | return err; | 79 | return err; |
| 80 | } | 80 | } |
| 81 | 81 | ||
| 82 | skb_reserve(skbn, frontlen); | 82 | skb_reserve(skbn, frontlen); |
| 83 | 83 | ||
| 84 | len = max_len > skb->len ? skb->len : max_len; | 84 | len = max_len > skb->len ? skb->len : max_len; |
| @@ -101,7 +101,7 @@ int x25_output(struct sock *sk, struct sk_buff *skb) | |||
| 101 | skb_queue_tail(&sk->sk_write_queue, skbn); | 101 | skb_queue_tail(&sk->sk_write_queue, skbn); |
| 102 | sent += len; | 102 | sent += len; |
| 103 | } | 103 | } |
| 104 | 104 | ||
| 105 | kfree_skb(skb); | 105 | kfree_skb(skb); |
| 106 | } else { | 106 | } else { |
| 107 | skb_queue_tail(&sk->sk_write_queue, skb); | 107 | skb_queue_tail(&sk->sk_write_queue, skb); |
| @@ -110,7 +110,7 @@ int x25_output(struct sock *sk, struct sk_buff *skb) | |||
| 110 | return sent; | 110 | return sent; |
| 111 | } | 111 | } |
| 112 | 112 | ||
| 113 | /* | 113 | /* |
| 114 | * This procedure is passed a buffer descriptor for an iframe. It builds | 114 | * This procedure is passed a buffer descriptor for an iframe. It builds |
| 115 | * the rest of the control part of the frame and then writes it out. | 115 | * the rest of the control part of the frame and then writes it out. |
| 116 | */ | 116 | */ |
| @@ -131,7 +131,7 @@ static void x25_send_iframe(struct sock *sk, struct sk_buff *skb) | |||
| 131 | skb->data[2] |= (x25->vr << 5) & 0xE0; | 131 | skb->data[2] |= (x25->vr << 5) & 0xE0; |
| 132 | } | 132 | } |
| 133 | 133 | ||
| 134 | x25_transmit_link(skb, x25->neighbour); | 134 | x25_transmit_link(skb, x25->neighbour); |
| 135 | } | 135 | } |
| 136 | 136 | ||
| 137 | void x25_kick(struct sock *sk) | 137 | void x25_kick(struct sock *sk) |
diff --git a/net/x25/x25_proc.c b/net/x25/x25_proc.c index e0470bd8c2f9..3c9f1ba56221 100644 --- a/net/x25/x25_proc.c +++ b/net/x25/x25_proc.c | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | * | 3 | * |
| 4 | * This is ALPHA test software. This code may break your machine, | 4 | * This is ALPHA test software. This code may break your machine, |
| 5 | * randomly fail to work with new releases, misbehave and/or generally | 5 | * randomly fail to work with new releases, misbehave and/or generally |
| 6 | * screw up. It might even work. | 6 | * screw up. It might even work. |
| 7 | * | 7 | * |
| 8 | * This code REQUIRES 2.4 with seq_file support | 8 | * This code REQUIRES 2.4 with seq_file support |
| 9 | * | 9 | * |
| @@ -62,7 +62,7 @@ static void *x25_seq_route_next(struct seq_file *seq, void *v, loff_t *pos) | |||
| 62 | rt = v; | 62 | rt = v; |
| 63 | if (rt->node.next != &x25_route_list) | 63 | if (rt->node.next != &x25_route_list) |
| 64 | rt = list_entry(rt->node.next, struct x25_route, node); | 64 | rt = list_entry(rt->node.next, struct x25_route, node); |
| 65 | else | 65 | else |
| 66 | rt = NULL; | 66 | rt = NULL; |
| 67 | out: | 67 | out: |
| 68 | return rt; | 68 | return rt; |
| @@ -88,7 +88,7 @@ static int x25_seq_route_show(struct seq_file *seq, void *v) | |||
| 88 | rt->dev ? rt->dev->name : "???"); | 88 | rt->dev ? rt->dev->name : "???"); |
| 89 | out: | 89 | out: |
| 90 | return 0; | 90 | return 0; |
| 91 | } | 91 | } |
| 92 | 92 | ||
| 93 | static __inline__ struct sock *x25_get_socket_idx(loff_t pos) | 93 | static __inline__ struct sock *x25_get_socket_idx(loff_t pos) |
| 94 | { | 94 | { |
| @@ -163,7 +163,7 @@ static int x25_seq_socket_show(struct seq_file *seq, void *v) | |||
| 163 | s->sk_socket ? SOCK_INODE(s->sk_socket)->i_ino : 0L); | 163 | s->sk_socket ? SOCK_INODE(s->sk_socket)->i_ino : 0L); |
| 164 | out: | 164 | out: |
| 165 | return 0; | 165 | return 0; |
| 166 | } | 166 | } |
| 167 | 167 | ||
| 168 | static __inline__ struct x25_forward *x25_get_forward_idx(loff_t pos) | 168 | static __inline__ struct x25_forward *x25_get_forward_idx(loff_t pos) |
| 169 | { | 169 | { |
diff --git a/net/x25/x25_route.c b/net/x25/x25_route.c index 883a848bca5b..060fcfaa2f47 100644 --- a/net/x25/x25_route.c +++ b/net/x25/x25_route.c | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | * | 3 | * |
| 4 | * This is ALPHA test software. This code may break your machine, | 4 | * This is ALPHA test software. This code may break your machine, |
| 5 | * randomly fail to work with new releases, misbehave and/or generally | 5 | * randomly fail to work with new releases, misbehave and/or generally |
| 6 | * screw up. It might even work. | 6 | * screw up. It might even work. |
| 7 | * | 7 | * |
| 8 | * This code REQUIRES 2.1.15 or higher | 8 | * This code REQUIRES 2.1.15 or higher |
| 9 | * | 9 | * |
diff --git a/net/x25/x25_timer.c b/net/x25/x25_timer.c index 71ff3088f6fe..2af190dc5b01 100644 --- a/net/x25/x25_timer.c +++ b/net/x25/x25_timer.c | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | * | 3 | * |
| 4 | * This is ALPHA test software. This code may break your machine, | 4 | * This is ALPHA test software. This code may break your machine, |
| 5 | * randomly fail to work with new releases, misbehave and/or generally | 5 | * randomly fail to work with new releases, misbehave and/or generally |
| 6 | * screw up. It might even work. | 6 | * screw up. It might even work. |
| 7 | * | 7 | * |
| 8 | * This code REQUIRES 2.1.15 or higher | 8 | * This code REQUIRES 2.1.15 or higher |
| 9 | * | 9 | * |
| @@ -99,8 +99,8 @@ static void x25_heartbeat_expiry(unsigned long param) | |||
| 99 | { | 99 | { |
| 100 | struct sock *sk = (struct sock *)param; | 100 | struct sock *sk = (struct sock *)param; |
| 101 | 101 | ||
| 102 | bh_lock_sock(sk); | 102 | bh_lock_sock(sk); |
| 103 | if (sock_owned_by_user(sk)) /* can currently only occur in state 3 */ | 103 | if (sock_owned_by_user(sk)) /* can currently only occur in state 3 */ |
| 104 | goto restart_heartbeat; | 104 | goto restart_heartbeat; |
| 105 | 105 | ||
| 106 | switch (x25_sk(sk)->state) { | 106 | switch (x25_sk(sk)->state) { |
