diff options
Diffstat (limited to 'net/llc')
-rw-r--r-- | net/llc/af_llc.c | 16 | ||||
-rw-r--r-- | net/llc/llc_c_ac.c | 2 | ||||
-rw-r--r-- | net/llc/llc_c_ev.c | 8 | ||||
-rw-r--r-- | net/llc/llc_conn.c | 26 | ||||
-rw-r--r-- | net/llc/llc_input.c | 6 |
5 files changed, 29 insertions, 29 deletions
diff --git a/net/llc/af_llc.c b/net/llc/af_llc.c index 8c50eb430c19..97101dcde4c0 100644 --- a/net/llc/af_llc.c +++ b/net/llc/af_llc.c | |||
@@ -188,7 +188,7 @@ static int llc_ui_release(struct socket *sock) | |||
188 | sock_hold(sk); | 188 | sock_hold(sk); |
189 | lock_sock(sk); | 189 | lock_sock(sk); |
190 | llc = llc_sk(sk); | 190 | llc = llc_sk(sk); |
191 | dprintk("%s: closing local(%02X) remote(%02X)\n", __FUNCTION__, | 191 | dprintk("%s: closing local(%02X) remote(%02X)\n", __func__, |
192 | llc->laddr.lsap, llc->daddr.lsap); | 192 | llc->laddr.lsap, llc->daddr.lsap); |
193 | if (!llc_send_disc(sk)) | 193 | if (!llc_send_disc(sk)) |
194 | llc_ui_wait_for_disc(sk, sk->sk_rcvtimeo); | 194 | llc_ui_wait_for_disc(sk, sk->sk_rcvtimeo); |
@@ -298,7 +298,7 @@ static int llc_ui_bind(struct socket *sock, struct sockaddr *uaddr, int addrlen) | |||
298 | struct llc_sap *sap; | 298 | struct llc_sap *sap; |
299 | int rc = -EINVAL; | 299 | int rc = -EINVAL; |
300 | 300 | ||
301 | dprintk("%s: binding %02X\n", __FUNCTION__, addr->sllc_sap); | 301 | dprintk("%s: binding %02X\n", __func__, addr->sllc_sap); |
302 | if (unlikely(!sock_flag(sk, SOCK_ZAPPED) || addrlen != sizeof(*addr))) | 302 | if (unlikely(!sock_flag(sk, SOCK_ZAPPED) || addrlen != sizeof(*addr))) |
303 | goto out; | 303 | goto out; |
304 | rc = -EAFNOSUPPORT; | 304 | rc = -EAFNOSUPPORT; |
@@ -435,7 +435,7 @@ static int llc_ui_connect(struct socket *sock, struct sockaddr *uaddr, | |||
435 | rc = llc_establish_connection(sk, llc->dev->dev_addr, | 435 | rc = llc_establish_connection(sk, llc->dev->dev_addr, |
436 | addr->sllc_mac, addr->sllc_sap); | 436 | addr->sllc_mac, addr->sllc_sap); |
437 | if (rc) { | 437 | if (rc) { |
438 | dprintk("%s: llc_ui_send_conn failed :-(\n", __FUNCTION__); | 438 | dprintk("%s: llc_ui_send_conn failed :-(\n", __func__); |
439 | sock->state = SS_UNCONNECTED; | 439 | sock->state = SS_UNCONNECTED; |
440 | sk->sk_state = TCP_CLOSE; | 440 | sk->sk_state = TCP_CLOSE; |
441 | goto out; | 441 | goto out; |
@@ -607,7 +607,7 @@ static int llc_ui_accept(struct socket *sock, struct socket *newsock, int flags) | |||
607 | struct sk_buff *skb; | 607 | struct sk_buff *skb; |
608 | int rc = -EOPNOTSUPP; | 608 | int rc = -EOPNOTSUPP; |
609 | 609 | ||
610 | dprintk("%s: accepting on %02X\n", __FUNCTION__, | 610 | dprintk("%s: accepting on %02X\n", __func__, |
611 | llc_sk(sk)->laddr.lsap); | 611 | llc_sk(sk)->laddr.lsap); |
612 | lock_sock(sk); | 612 | lock_sock(sk); |
613 | if (unlikely(sk->sk_type != SOCK_STREAM)) | 613 | if (unlikely(sk->sk_type != SOCK_STREAM)) |
@@ -622,7 +622,7 @@ static int llc_ui_accept(struct socket *sock, struct socket *newsock, int flags) | |||
622 | if (rc) | 622 | if (rc) |
623 | goto out; | 623 | goto out; |
624 | } | 624 | } |
625 | dprintk("%s: got a new connection on %02X\n", __FUNCTION__, | 625 | dprintk("%s: got a new connection on %02X\n", __func__, |
626 | llc_sk(sk)->laddr.lsap); | 626 | llc_sk(sk)->laddr.lsap); |
627 | skb = skb_dequeue(&sk->sk_receive_queue); | 627 | skb = skb_dequeue(&sk->sk_receive_queue); |
628 | rc = -EINVAL; | 628 | rc = -EINVAL; |
@@ -643,7 +643,7 @@ static int llc_ui_accept(struct socket *sock, struct socket *newsock, int flags) | |||
643 | /* put original socket back into a clean listen state. */ | 643 | /* put original socket back into a clean listen state. */ |
644 | sk->sk_state = TCP_LISTEN; | 644 | sk->sk_state = TCP_LISTEN; |
645 | sk->sk_ack_backlog--; | 645 | sk->sk_ack_backlog--; |
646 | dprintk("%s: ok success on %02X, client on %02X\n", __FUNCTION__, | 646 | dprintk("%s: ok success on %02X, client on %02X\n", __func__, |
647 | llc_sk(sk)->addr.sllc_sap, newllc->daddr.lsap); | 647 | llc_sk(sk)->addr.sllc_sap, newllc->daddr.lsap); |
648 | frees: | 648 | frees: |
649 | kfree_skb(skb); | 649 | kfree_skb(skb); |
@@ -836,7 +836,7 @@ static int llc_ui_sendmsg(struct kiocb *iocb, struct socket *sock, | |||
836 | size_t size = 0; | 836 | size_t size = 0; |
837 | int rc = -EINVAL, copied = 0, hdrlen; | 837 | int rc = -EINVAL, copied = 0, hdrlen; |
838 | 838 | ||
839 | dprintk("%s: sending from %02X to %02X\n", __FUNCTION__, | 839 | dprintk("%s: sending from %02X to %02X\n", __func__, |
840 | llc->laddr.lsap, llc->daddr.lsap); | 840 | llc->laddr.lsap, llc->daddr.lsap); |
841 | lock_sock(sk); | 841 | lock_sock(sk); |
842 | if (addr) { | 842 | if (addr) { |
@@ -894,7 +894,7 @@ out: | |||
894 | kfree_skb(skb); | 894 | kfree_skb(skb); |
895 | release: | 895 | release: |
896 | dprintk("%s: failed sending from %02X to %02X: %d\n", | 896 | dprintk("%s: failed sending from %02X to %02X: %d\n", |
897 | __FUNCTION__, llc->laddr.lsap, llc->daddr.lsap, rc); | 897 | __func__, llc->laddr.lsap, llc->daddr.lsap, rc); |
898 | } | 898 | } |
899 | release_sock(sk); | 899 | release_sock(sk); |
900 | return rc ? : copied; | 900 | return rc ? : copied; |
diff --git a/net/llc/llc_c_ac.c b/net/llc/llc_c_ac.c index 71a00225bdb3..019c780512e8 100644 --- a/net/llc/llc_c_ac.c +++ b/net/llc/llc_c_ac.c | |||
@@ -1430,7 +1430,7 @@ static void llc_process_tmr_ev(struct sock *sk, struct sk_buff *skb) | |||
1430 | { | 1430 | { |
1431 | if (llc_sk(sk)->state == LLC_CONN_OUT_OF_SVC) { | 1431 | if (llc_sk(sk)->state == LLC_CONN_OUT_OF_SVC) { |
1432 | printk(KERN_WARNING "%s: timer called on closed connection\n", | 1432 | printk(KERN_WARNING "%s: timer called on closed connection\n", |
1433 | __FUNCTION__); | 1433 | __func__); |
1434 | kfree_skb(skb); | 1434 | kfree_skb(skb); |
1435 | } else { | 1435 | } else { |
1436 | if (!sock_owned_by_user(sk)) | 1436 | if (!sock_owned_by_user(sk)) |
diff --git a/net/llc/llc_c_ev.c b/net/llc/llc_c_ev.c index c5deda246614..523fdd1cf781 100644 --- a/net/llc/llc_c_ev.c +++ b/net/llc/llc_c_ev.c | |||
@@ -228,7 +228,7 @@ int llc_conn_ev_rx_i_cmd_pbit_set_x_inval_ns(struct sock *sk, | |||
228 | llc_util_ns_inside_rx_window(ns, vr, llc_sk(sk)->rw) ? 0 : 1; | 228 | llc_util_ns_inside_rx_window(ns, vr, llc_sk(sk)->rw) ? 0 : 1; |
229 | if (!rc) | 229 | if (!rc) |
230 | dprintk("%s: matched, state=%d, ns=%d, vr=%d\n", | 230 | dprintk("%s: matched, state=%d, ns=%d, vr=%d\n", |
231 | __FUNCTION__, llc_sk(sk)->state, ns, vr); | 231 | __func__, llc_sk(sk)->state, ns, vr); |
232 | return rc; | 232 | return rc; |
233 | } | 233 | } |
234 | 234 | ||
@@ -306,7 +306,7 @@ int llc_conn_ev_rx_i_rsp_fbit_set_x_inval_ns(struct sock *sk, | |||
306 | llc_util_ns_inside_rx_window(ns, vr, llc_sk(sk)->rw) ? 0 : 1; | 306 | llc_util_ns_inside_rx_window(ns, vr, llc_sk(sk)->rw) ? 0 : 1; |
307 | if (!rc) | 307 | if (!rc) |
308 | dprintk("%s: matched, state=%d, ns=%d, vr=%d\n", | 308 | dprintk("%s: matched, state=%d, ns=%d, vr=%d\n", |
309 | __FUNCTION__, llc_sk(sk)->state, ns, vr); | 309 | __func__, llc_sk(sk)->state, ns, vr); |
310 | return rc; | 310 | return rc; |
311 | } | 311 | } |
312 | 312 | ||
@@ -511,7 +511,7 @@ int llc_conn_ev_rx_zzz_cmd_pbit_set_x_inval_nr(struct sock *sk, | |||
511 | (LLC_PDU_TYPE_IS_I(pdu) || LLC_PDU_TYPE_IS_S(pdu)) && | 511 | (LLC_PDU_TYPE_IS_I(pdu) || LLC_PDU_TYPE_IS_S(pdu)) && |
512 | nr != vs && llc_util_nr_inside_tx_window(sk, nr)) { | 512 | nr != vs && llc_util_nr_inside_tx_window(sk, nr)) { |
513 | dprintk("%s: matched, state=%d, vs=%d, nr=%d\n", | 513 | dprintk("%s: matched, state=%d, vs=%d, nr=%d\n", |
514 | __FUNCTION__, llc_sk(sk)->state, vs, nr); | 514 | __func__, llc_sk(sk)->state, vs, nr); |
515 | rc = 0; | 515 | rc = 0; |
516 | } | 516 | } |
517 | return rc; | 517 | return rc; |
@@ -530,7 +530,7 @@ int llc_conn_ev_rx_zzz_rsp_fbit_set_x_inval_nr(struct sock *sk, | |||
530 | nr != vs && llc_util_nr_inside_tx_window(sk, nr)) { | 530 | nr != vs && llc_util_nr_inside_tx_window(sk, nr)) { |
531 | rc = 0; | 531 | rc = 0; |
532 | dprintk("%s: matched, state=%d, vs=%d, nr=%d\n", | 532 | dprintk("%s: matched, state=%d, vs=%d, nr=%d\n", |
533 | __FUNCTION__, llc_sk(sk)->state, vs, nr); | 533 | __func__, llc_sk(sk)->state, vs, nr); |
534 | } | 534 | } |
535 | return rc; | 535 | return rc; |
536 | } | 536 | } |
diff --git a/net/llc/llc_conn.c b/net/llc/llc_conn.c index 441bc18f996d..5c6d89c6d51d 100644 --- a/net/llc/llc_conn.c +++ b/net/llc/llc_conn.c | |||
@@ -73,7 +73,7 @@ int llc_conn_state_process(struct sock *sk, struct sk_buff *skb) | |||
73 | */ | 73 | */ |
74 | rc = llc_conn_service(skb->sk, skb); | 74 | rc = llc_conn_service(skb->sk, skb); |
75 | if (unlikely(rc != 0)) { | 75 | if (unlikely(rc != 0)) { |
76 | printk(KERN_ERR "%s: llc_conn_service failed\n", __FUNCTION__); | 76 | printk(KERN_ERR "%s: llc_conn_service failed\n", __func__); |
77 | goto out_kfree_skb; | 77 | goto out_kfree_skb; |
78 | } | 78 | } |
79 | 79 | ||
@@ -99,7 +99,7 @@ int llc_conn_state_process(struct sock *sk, struct sk_buff *skb) | |||
99 | * shouldn't happen | 99 | * shouldn't happen |
100 | */ | 100 | */ |
101 | printk(KERN_ERR "%s: sock_queue_rcv_skb failed!\n", | 101 | printk(KERN_ERR "%s: sock_queue_rcv_skb failed!\n", |
102 | __FUNCTION__); | 102 | __func__); |
103 | kfree_skb(skb); | 103 | kfree_skb(skb); |
104 | } | 104 | } |
105 | break; | 105 | break; |
@@ -132,13 +132,13 @@ int llc_conn_state_process(struct sock *sk, struct sk_buff *skb) | |||
132 | * FIXME: | 132 | * FIXME: |
133 | * RESET is not being notified to upper layers for now | 133 | * RESET is not being notified to upper layers for now |
134 | */ | 134 | */ |
135 | printk(KERN_INFO "%s: received a reset ind!\n", __FUNCTION__); | 135 | printk(KERN_INFO "%s: received a reset ind!\n", __func__); |
136 | kfree_skb(skb); | 136 | kfree_skb(skb); |
137 | break; | 137 | break; |
138 | default: | 138 | default: |
139 | if (ev->ind_prim) { | 139 | if (ev->ind_prim) { |
140 | printk(KERN_INFO "%s: received unknown %d prim!\n", | 140 | printk(KERN_INFO "%s: received unknown %d prim!\n", |
141 | __FUNCTION__, ev->ind_prim); | 141 | __func__, ev->ind_prim); |
142 | kfree_skb(skb); | 142 | kfree_skb(skb); |
143 | } | 143 | } |
144 | /* No indication */ | 144 | /* No indication */ |
@@ -179,12 +179,12 @@ int llc_conn_state_process(struct sock *sk, struct sk_buff *skb) | |||
179 | * FIXME: | 179 | * FIXME: |
180 | * RESET is not being notified to upper layers for now | 180 | * RESET is not being notified to upper layers for now |
181 | */ | 181 | */ |
182 | printk(KERN_INFO "%s: received a reset conf!\n", __FUNCTION__); | 182 | printk(KERN_INFO "%s: received a reset conf!\n", __func__); |
183 | break; | 183 | break; |
184 | default: | 184 | default: |
185 | if (ev->cfm_prim) { | 185 | if (ev->cfm_prim) { |
186 | printk(KERN_INFO "%s: received unknown %d prim!\n", | 186 | printk(KERN_INFO "%s: received unknown %d prim!\n", |
187 | __FUNCTION__, ev->cfm_prim); | 187 | __func__, ev->cfm_prim); |
188 | break; | 188 | break; |
189 | } | 189 | } |
190 | goto out_skb_put; /* No confirmation */ | 190 | goto out_skb_put; /* No confirmation */ |
@@ -700,7 +700,7 @@ static struct sock *llc_create_incoming_sock(struct sock *sk, | |||
700 | struct llc_addr *saddr, | 700 | struct llc_addr *saddr, |
701 | struct llc_addr *daddr) | 701 | struct llc_addr *daddr) |
702 | { | 702 | { |
703 | struct sock *newsk = llc_sk_alloc(sk->sk_net, sk->sk_family, GFP_ATOMIC, | 703 | struct sock *newsk = llc_sk_alloc(sock_net(sk), sk->sk_family, GFP_ATOMIC, |
704 | sk->sk_prot); | 704 | sk->sk_prot); |
705 | struct llc_sock *newllc, *llc = llc_sk(sk); | 705 | struct llc_sock *newllc, *llc = llc_sk(sk); |
706 | 706 | ||
@@ -759,7 +759,7 @@ void llc_conn_handler(struct llc_sap *sap, struct sk_buff *skb) | |||
759 | if (!sock_owned_by_user(sk)) | 759 | if (!sock_owned_by_user(sk)) |
760 | llc_conn_rcv(sk, skb); | 760 | llc_conn_rcv(sk, skb); |
761 | else { | 761 | else { |
762 | dprintk("%s: adding to backlog...\n", __FUNCTION__); | 762 | dprintk("%s: adding to backlog...\n", __func__); |
763 | llc_set_backlog_type(skb, LLC_PACKET); | 763 | llc_set_backlog_type(skb, LLC_PACKET); |
764 | sk_add_backlog(sk, skb); | 764 | sk_add_backlog(sk, skb); |
765 | } | 765 | } |
@@ -807,7 +807,7 @@ static int llc_backlog_rcv(struct sock *sk, struct sk_buff *skb) | |||
807 | else | 807 | else |
808 | goto out_kfree_skb; | 808 | goto out_kfree_skb; |
809 | } else { | 809 | } else { |
810 | printk(KERN_ERR "%s: invalid skb in backlog\n", __FUNCTION__); | 810 | printk(KERN_ERR "%s: invalid skb in backlog\n", __func__); |
811 | goto out_kfree_skb; | 811 | goto out_kfree_skb; |
812 | } | 812 | } |
813 | out: | 813 | out: |
@@ -874,7 +874,7 @@ struct sock *llc_sk_alloc(struct net *net, int family, gfp_t priority, struct pr | |||
874 | #ifdef LLC_REFCNT_DEBUG | 874 | #ifdef LLC_REFCNT_DEBUG |
875 | atomic_inc(&llc_sock_nr); | 875 | atomic_inc(&llc_sock_nr); |
876 | printk(KERN_DEBUG "LLC socket %p created in %s, now we have %d alive\n", sk, | 876 | printk(KERN_DEBUG "LLC socket %p created in %s, now we have %d alive\n", sk, |
877 | __FUNCTION__, atomic_read(&llc_sock_nr)); | 877 | __func__, atomic_read(&llc_sock_nr)); |
878 | #endif | 878 | #endif |
879 | out: | 879 | out: |
880 | return sk; | 880 | return sk; |
@@ -894,7 +894,7 @@ void llc_sk_free(struct sock *sk) | |||
894 | /* Stop all (possibly) running timers */ | 894 | /* Stop all (possibly) running timers */ |
895 | llc_conn_ac_stop_all_timers(sk, NULL); | 895 | llc_conn_ac_stop_all_timers(sk, NULL); |
896 | #ifdef DEBUG_LLC_CONN_ALLOC | 896 | #ifdef DEBUG_LLC_CONN_ALLOC |
897 | printk(KERN_INFO "%s: unackq=%d, txq=%d\n", __FUNCTION__, | 897 | printk(KERN_INFO "%s: unackq=%d, txq=%d\n", __func__, |
898 | skb_queue_len(&llc->pdu_unack_q), | 898 | skb_queue_len(&llc->pdu_unack_q), |
899 | skb_queue_len(&sk->sk_write_queue)); | 899 | skb_queue_len(&sk->sk_write_queue)); |
900 | #endif | 900 | #endif |
@@ -904,13 +904,13 @@ void llc_sk_free(struct sock *sk) | |||
904 | #ifdef LLC_REFCNT_DEBUG | 904 | #ifdef LLC_REFCNT_DEBUG |
905 | if (atomic_read(&sk->sk_refcnt) != 1) { | 905 | if (atomic_read(&sk->sk_refcnt) != 1) { |
906 | printk(KERN_DEBUG "Destruction of LLC sock %p delayed in %s, cnt=%d\n", | 906 | printk(KERN_DEBUG "Destruction of LLC sock %p delayed in %s, cnt=%d\n", |
907 | sk, __FUNCTION__, atomic_read(&sk->sk_refcnt)); | 907 | sk, __func__, atomic_read(&sk->sk_refcnt)); |
908 | printk(KERN_DEBUG "%d LLC sockets are still alive\n", | 908 | printk(KERN_DEBUG "%d LLC sockets are still alive\n", |
909 | atomic_read(&llc_sock_nr)); | 909 | atomic_read(&llc_sock_nr)); |
910 | } else { | 910 | } else { |
911 | atomic_dec(&llc_sock_nr); | 911 | atomic_dec(&llc_sock_nr); |
912 | printk(KERN_DEBUG "LLC socket %p released in %s, %d are still alive\n", sk, | 912 | printk(KERN_DEBUG "LLC socket %p released in %s, %d are still alive\n", sk, |
913 | __FUNCTION__, atomic_read(&llc_sock_nr)); | 913 | __func__, atomic_read(&llc_sock_nr)); |
914 | } | 914 | } |
915 | #endif | 915 | #endif |
916 | sock_put(sk); | 916 | sock_put(sk); |
diff --git a/net/llc/llc_input.c b/net/llc/llc_input.c index bfd2567dd365..1c45f172991e 100644 --- a/net/llc/llc_input.c +++ b/net/llc/llc_input.c | |||
@@ -150,7 +150,7 @@ int llc_rcv(struct sk_buff *skb, struct net_device *dev, | |||
150 | int (*rcv)(struct sk_buff *, struct net_device *, | 150 | int (*rcv)(struct sk_buff *, struct net_device *, |
151 | struct packet_type *, struct net_device *); | 151 | struct packet_type *, struct net_device *); |
152 | 152 | ||
153 | if (dev->nd_net != &init_net) | 153 | if (dev_net(dev) != &init_net) |
154 | goto drop; | 154 | goto drop; |
155 | 155 | ||
156 | /* | 156 | /* |
@@ -158,7 +158,7 @@ int llc_rcv(struct sk_buff *skb, struct net_device *dev, | |||
158 | * receives, do not try to analyse it. | 158 | * receives, do not try to analyse it. |
159 | */ | 159 | */ |
160 | if (unlikely(skb->pkt_type == PACKET_OTHERHOST)) { | 160 | if (unlikely(skb->pkt_type == PACKET_OTHERHOST)) { |
161 | dprintk("%s: PACKET_OTHERHOST\n", __FUNCTION__); | 161 | dprintk("%s: PACKET_OTHERHOST\n", __func__); |
162 | goto drop; | 162 | goto drop; |
163 | } | 163 | } |
164 | skb = skb_share_check(skb, GFP_ATOMIC); | 164 | skb = skb_share_check(skb, GFP_ATOMIC); |
@@ -171,7 +171,7 @@ int llc_rcv(struct sk_buff *skb, struct net_device *dev, | |||
171 | goto handle_station; | 171 | goto handle_station; |
172 | sap = llc_sap_find(pdu->dsap); | 172 | sap = llc_sap_find(pdu->dsap); |
173 | if (unlikely(!sap)) {/* unknown SAP */ | 173 | if (unlikely(!sap)) {/* unknown SAP */ |
174 | dprintk("%s: llc_sap_find(%02X) failed!\n", __FUNCTION__, | 174 | dprintk("%s: llc_sap_find(%02X) failed!\n", __func__, |
175 | pdu->dsap); | 175 | pdu->dsap); |
176 | goto drop; | 176 | goto drop; |
177 | } | 177 | } |