tag | line | file | source code |
skbn | 72 | net/ax25/ax25_in.c | struct sk_buff *skbn, *skbo; |
skbn | 89 | net/ax25/ax25_in.c | if ((skbn = alloc_skb(AX25_MAX_HEADER_LEN + ax25->fraglen, GFP_ATOMIC)) == NULL) |
skbn | 92 | net/ax25/ax25_in.c | skbn->free = 1; |
skbn | 93 | net/ax25/ax25_in.c | skbn->arp = 1; |
skbn | 94 | net/ax25/ax25_in.c | skbn->dev = skb->dev; |
skbn | 97 | net/ax25/ax25_in.c | skbn->sk = ax25->sk; |
skbn | 98 | net/ax25/ax25_in.c | atomic_add(skbn->truesize, &ax25->sk->rmem_alloc); |
skbn | 107 | net/ax25/ax25_in.c | skbn->data = skb_put(skbn, hdrlen); /* get space for info */ |
skbn | 108 | net/ax25/ax25_in.c | memcpy(skbn->data, skbo->data, hdrlen); /* copy address field */ |
skbn | 110 | net/ax25/ax25_in.c | skb_pull(skbn, hdrlen + 1); /* dito */ |
skbn | 114 | net/ax25/ax25_in.c | memcpy(skb_put(skbn, skbo->len), skbo->data, skbo->len); |
skbn | 120 | net/ax25/ax25_in.c | memcpy(skb_put(skbn, skbo->len), skbo->data, skbo->len); |
skbn | 132 | net/ax25/ax25_in.c | skb_pull(skbn, hdrlen); |
skbn | 134 | net/ax25/ax25_in.c | if (ax25_rx_iframe(ax25, skbn) == 0) |
skbn | 135 | net/ax25/ax25_in.c | kfree_skb(skbn, FREE_READ); |
skbn | 62 | net/ax25/ax25_out.c | struct sk_buff *skbn; |
skbn | 101 | net/ax25/ax25_out.c | if ((skbn = sock_alloc_send_skb(skb->sk, mtu + 2 + frontlen, 0, 0, &err)) == NULL) |
skbn | 104 | net/ax25/ax25_out.c | if ((skbn = alloc_skb(mtu + 2 + frontlen, GFP_ATOMIC)) == NULL) |
skbn | 108 | net/ax25/ax25_out.c | skbn->sk = skb->sk; |
skbn | 109 | net/ax25/ax25_out.c | skbn->free = 1; |
skbn | 110 | net/ax25/ax25_out.c | skbn->arp = 1; |
skbn | 115 | net/ax25/ax25_out.c | skb_reserve(skbn, frontlen + 2); |
skbn | 117 | net/ax25/ax25_out.c | memcpy(skb_put(skbn, len), skb->data, len); |
skbn | 118 | net/ax25/ax25_out.c | p = skb_push(skbn, 2); |
skbn | 128 | net/ax25/ax25_out.c | skb_reserve(skbn, frontlen + 1); |
skbn | 129 | net/ax25/ax25_out.c | memcpy(skb_put(skbn, len), skb->data, len); |
skbn | 130 | net/ax25/ax25_out.c | p = skb_push(skbn, 1); |
skbn | 135 | net/ax25/ax25_out.c | skb_queue_tail(&ax25->write_queue, skbn); /* Throw it on the queue */ |
skbn | 182 | net/ax25/ax25_out.c | struct sk_buff *skb, *skbn; |
skbn | 209 | net/ax25/ax25_out.c | if ((skbn = skb_clone(skb, GFP_ATOMIC)) == NULL) { |
skbn | 225 | net/ax25/ax25_out.c | ax25_send_iframe(ax25, skbn, (last && !ax25->dama_slave) ? POLLON : POLLOFF); |
skbn | 55 | net/netrom/nr_in.c | struct sk_buff *skbo, *skbn = skb; |
skbn | 67 | net/netrom/nr_in.c | if ((skbn = alloc_skb(sk->nr->fraglen, GFP_ATOMIC)) == NULL) |
skbn | 70 | net/netrom/nr_in.c | skbn->free = 1; |
skbn | 71 | net/netrom/nr_in.c | skbn->arp = 1; |
skbn | 72 | net/netrom/nr_in.c | skbn->sk = sk; |
skbn | 73 | net/netrom/nr_in.c | sk->rmem_alloc += skbn->truesize; |
skbn | 74 | net/netrom/nr_in.c | skbn->h.raw = skbn->data; |
skbn | 77 | net/netrom/nr_in.c | memcpy(skb_put(skbn, skbo->len), skbo->data, skbo->len); |
skbn | 82 | net/netrom/nr_in.c | memcpy(skb_put(skbn, skbo->len), skbo->data, skbo->len); |
skbn | 89 | net/netrom/nr_in.c | return sock_queue_rcv_skb(sk, skbn); |
skbn | 174 | net/netrom/nr_in.c | struct sk_buff *skbn; |
skbn | 269 | net/netrom/nr_in.c | while ((skbn = skb_dequeue(&sk->nr->reseq_queue)) != NULL) { |
skbn | 270 | net/netrom/nr_in.c | ns = skbn->data[17]; |
skbn | 272 | net/netrom/nr_in.c | if (nr_queue_rx_frame(sk, skbn, frametype & NR_MORE_FLAG) == 0) { |
skbn | 276 | net/netrom/nr_in.c | skb_queue_tail(&temp_queue, skbn); |
skbn | 279 | net/netrom/nr_in.c | skb_queue_tail(&temp_queue, skbn); |
skbn | 281 | net/netrom/nr_in.c | skbn->free = 1; |
skbn | 282 | net/netrom/nr_in.c | kfree_skb(skbn, FREE_READ); |
skbn | 285 | net/netrom/nr_in.c | while ((skbn = skb_dequeue(&temp_queue)) != NULL) { |
skbn | 286 | net/netrom/nr_in.c | skb_queue_tail(&sk->nr->reseq_queue, skbn); |
skbn | 51 | net/netrom/nr_out.c | struct sk_buff *skbn; |
skbn | 65 | net/netrom/nr_out.c | if ((skbn = sock_alloc_send_skb(sk, frontlen + mtu, 0, 0, &err)) == NULL) |
skbn | 68 | net/netrom/nr_out.c | skbn->sk = sk; |
skbn | 69 | net/netrom/nr_out.c | skbn->free = 1; |
skbn | 70 | net/netrom/nr_out.c | skbn->arp = 1; |
skbn | 72 | net/netrom/nr_out.c | skb_reserve(skbn, frontlen); |
skbn | 77 | net/netrom/nr_out.c | memcpy(skb_put(skbn, len), skb->data, len); |
skbn | 81 | net/netrom/nr_out.c | skb_push(skbn, NR_TRANSPORT_LEN); |
skbn | 82 | net/netrom/nr_out.c | memcpy(skbn->data, transport, NR_TRANSPORT_LEN); |
skbn | 85 | net/netrom/nr_out.c | skbn->data[4] |= NR_MORE_FLAG; |
skbn | 87 | net/netrom/nr_out.c | skb_queue_tail(&sk->write_queue, skbn); /* Throw it on the queue */ |
skbn | 120 | net/netrom/nr_out.c | struct sk_buff *skb, *skbn; |
skbn | 125 | net/netrom/nr_out.c | if ((skbn = skb_clone(skb, GFP_ATOMIC)) == NULL) |
skbn | 128 | net/netrom/nr_out.c | skbn->data[2] = sk->nr->va; |
skbn | 129 | net/netrom/nr_out.c | skbn->data[3] = sk->nr->vr; |
skbn | 132 | net/netrom/nr_out.c | skbn->data[4] |= NR_CHOKE_FLAG; |
skbn | 134 | net/netrom/nr_out.c | nr_transmit_buffer(sk, skbn); |
skbn | 143 | net/netrom/nr_out.c | struct sk_buff *skb, *skbn; |
skbn | 169 | net/netrom/nr_out.c | if ((skbn = skb_clone(skb, GFP_ATOMIC)) == NULL) { |
skbn | 180 | net/netrom/nr_out.c | nr_send_iframe(sk, skbn); |
skbn | 248 | net/netrom/nr_subr.c | struct sk_buff *skbn; |
skbn | 254 | net/netrom/nr_subr.c | if ((skbn = alloc_skb(len, GFP_ATOMIC)) == NULL) |
skbn | 257 | net/netrom/nr_subr.c | skb_reserve(skbn, AX25_BPQ_HEADER_LEN + AX25_MAX_HEADER_LEN); |
skbn | 259 | net/netrom/nr_subr.c | dptr = skb_put(skbn, NR_NETWORK_LEN + NR_TRANSPORT_LEN); |
skbn | 282 | net/netrom/nr_subr.c | skbn->free = 1; |
skbn | 283 | net/netrom/nr_subr.c | skbn->sk = NULL; |
skbn | 285 | net/netrom/nr_subr.c | if (!nr_route_frame(skbn, NULL)) |
skbn | 286 | net/netrom/nr_subr.c | kfree_skb(skbn, FREE_WRITE); |