• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/drivers/net/

Lines Matching refs:send

30  * To send data in an L2TP session, userspace opens a PPPoL2TP socket and
226 int send_seq:1; /* send packets with sequence
236 u16 ns; /* session NR state (send) */
420 /* If the socket is bound, send it in to PPP's input queue. Otherwise
454 * Before we send the skb to ppp, we clear
494 * expect to send up next, dequeue it and any other
691 * LNS has requested that we no longer send sequence numbers.
720 * don't send the PPP header (PPP header compression enabled), but
1000 "%s: send %d bytes, ns=%hu\n", session->name,
1004 "%s: send %d bytes\n", session->name, total_len);
1085 struct pppol2tp_send *send = container_of(work, struct pppol2tp_send, send_task);
1087 struct pppol2tp_send *send = (struct pppol2tp_send *) data;
1095 error = send->tunnel->old_proto->sendmsg(&send->iocb,
1096 send->session->tunnel_sock,
1097 send->msg, send->total_len);
1099 error = wait_on_sync_kiocb(&send->iocb);
1104 send->tunnel->stats.tx_packets++;
1105 send->tunnel->stats.tx_bytes += error;
1106 send->session->stats.tx_packets++;
1107 send->session->stats.tx_bytes += error;
1109 send->tunnel->stats.tx_errors++;
1110 send->session->stats.tx_errors++;
1113 kfree(send->iov);
1114 kfree(send->msg);
1115 kfree_skb(send->skb);
1116 kfree(send);
1145 * Since this function cannot block, we must queue up the actual socket send
1158 struct pppol2tp_send *send = NULL;
1182 send = kmalloc(sizeof(struct pppol2tp_send), GFP_ATOMIC);
1183 if (send == NULL) {
1191 hdr_len = pppol2tp_build_l2tp_header(session, &send->hdr);
1195 "%s: send %d bytes, ns=%hu\n",
1199 "%s: send %d bytes\n", session->name, skb->len);
1259 memcpy(p, &(send->hdr[0]), hdr_len);
1290 if (send)
1291 kfree(send);
1317 msg->msg_iov[0].iov_base = &send->hdr;
1340 send->session = session;
1341 send->tunnel = tunnel;
1342 send->msg = msg;
1343 send->skb = skb;
1344 send->tunnel_sock = session->tunnel_sock;
1345 send->iov = msg->msg_iov;
1346 send->total_len = skb->len + hdr_len + sizeof(ppph);
1347 init_sync_kiocb(&send->iocb, NULL);
1348 send->iocb.private = &send->siocb;
1351 INIT_WORK(&send->send_task, pppol2tp_wq_send);
1353 INIT_WORK(&send->send_task, pppol2tp_wq_send, send);
1355 queue_work(tunnel->wq, &send->send_task);
1361 if (send != NULL)
1362 kfree(send);