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

Lines Matching defs:to

117  *		Add an ip header to a skbuff and send it out.
266 Note, that local frames are looped back to be delivered
267 to local recipients.
367 /* OK, we know where to send it, allocate and build IP header. */
406 static void ip_copy_metadata(struct sk_buff *to, struct sk_buff *from)
408 to->pkt_type = from->pkt_type;
409 to->priority = from->priority;
410 to->protocol = from->protocol;
411 dst_release(to->dst);
412 to->dst = dst_clone(from->dst);
413 to->dev = from->dev;
414 to->mark = from->mark;
416 /* Copy the flags to each fragment. */
417 IPCB(to)->flags = IPCB(from)->flags;
420 to->tc_index = from->tc_index;
422 nf_copy(to, from);
424 to->ipvs_property = from->ipvs_property;
426 skb_copy_secmark(to, from);
430 * This IP datagram is too large to be sent in one piece. Break it up into
431 * smaller pieces (each of size equal to IP header plus
476 * one, it is not prohibited. In this case fall back to copying.
478 * LATER: this step can be merged to real generation of fragments,
479 * we can switch to copy when see the first bad fragment.
573 ptr = raw + hlen; /* Where to start from */
576 * we need to make room for the encapsulating header
624 * Charge the memory for the fragment to any owner
652 * then copy the Ethernet header and cb to the
665 * the segment to be fragmented was THE FIRST (otherwise,
708 ip_generic_getfrag(void *from, char *to, int offset, int len, int odd, struct sk_buff *skb)
713 if (memcpy_fromiovecend(to, iov, offset, len) < 0)
717 if (csum_partial_copy_fromiovecend(to, iov, offset, len, &csum) < 0)
736 int getfrag(void *from, char *to, int offset, int len,
802 int getfrag(void *from, char *to, int offset, int len,
894 * We use calculated fragment length to generate chained skb,
895 * each of segments is IP fragment ready for sending to network after
969 * Find where to start putting bytes.
1164 * Find where to start putting bytes.
1239 /* move skb->data to ip header from ext header */
1255 * to fragment the frame generated here. No matter, what transforms
1261 /* DF bit is set when we want to see DF on outgoing frames.
1262 * If local_df is set too, we still allow to fragment this frame
1346 static int ip_reply_glue_bits(void *dptr, char *to, int offset,
1351 csum = csum_partial_copy_nocheck(dptr+offset, to, len, 0);
1357 * Generic function to send a packet as reply to another packet.
1358 * Used to send TCP resets so far. ICMP should use this function too.
1361 * structure to pass arguments.
1363 * LATER: switch from ip_build_xmit to ip_append_*