tag | line | file | source code |
skb | 55 | drivers/net/3c501.c | static int el_start_xmit(struct sk_buff *skb, struct device *dev); |
skb | 230 | drivers/net/3c501.c | el_start_xmit(struct sk_buff *skb, struct device *dev) |
skb | 255 | drivers/net/3c501.c | if (skb == NULL) { |
skb | 260 | drivers/net/3c501.c | if (skb->len <= 0) |
skb | 267 | drivers/net/3c501.c | int gp_start = 0x800 - (ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN); |
skb | 268 | drivers/net/3c501.c | unsigned char *buf = skb->data; |
skb | 278 | drivers/net/3c501.c | outsb(DATAPORT,buf,skb->len); |
skb | 286 | drivers/net/3c501.c | if (skb->free) |
skb | 287 | drivers/net/3c501.c | kfree_skb (skb, FREE_WRITE); |
skb | 393 | drivers/net/3c501.c | struct sk_buff *skb; |
skb | 408 | drivers/net/3c501.c | skb = alloc_skb(pkt_len, GFP_ATOMIC); |
skb | 410 | drivers/net/3c501.c | if (skb == NULL) { |
skb | 415 | drivers/net/3c501.c | skb->len = pkt_len; |
skb | 416 | drivers/net/3c501.c | skb->dev = dev; |
skb | 418 | drivers/net/3c501.c | insb(DATAPORT, skb->data, pkt_len); |
skb | 420 | drivers/net/3c501.c | netif_rx(skb); |
skb | 272 | drivers/net/3c507.c | static int el16_send_packet(struct sk_buff *skb, struct device *dev); |
skb | 427 | drivers/net/3c507.c | el16_send_packet(struct sk_buff *skb, struct device *dev) |
skb | 462 | drivers/net/3c507.c | if (skb == NULL) { |
skb | 471 | drivers/net/3c507.c | short length = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN; |
skb | 472 | drivers/net/3c507.c | unsigned char *buf = skb->data; |
skb | 482 | drivers/net/3c507.c | if (skb->free) |
skb | 483 | drivers/net/3c507.c | kfree_skb (skb, FREE_WRITE); |
skb | 817 | drivers/net/3c507.c | struct sk_buff *skb; |
skb | 820 | drivers/net/3c507.c | skb = alloc_skb(pkt_len, GFP_ATOMIC); |
skb | 821 | drivers/net/3c507.c | if (skb == NULL) { |
skb | 826 | drivers/net/3c507.c | skb->len = pkt_len; |
skb | 827 | drivers/net/3c507.c | skb->dev = dev; |
skb | 830 | drivers/net/3c507.c | memcpy(skb->data, data_frame + 5, pkt_len); |
skb | 832 | drivers/net/3c507.c | netif_rx(skb); |
skb | 72 | drivers/net/3c509.c | static int el3_start_xmit(struct sk_buff *skb, struct device *dev); |
skb | 316 | drivers/net/3c509.c | el3_start_xmit(struct sk_buff *skb, struct device *dev) |
skb | 335 | drivers/net/3c509.c | if (skb == NULL) { |
skb | 340 | drivers/net/3c509.c | if (skb->len <= 0) |
skb | 345 | drivers/net/3c509.c | dev->name, skb->len, inw(ioaddr + EL3_STATUS)); |
skb | 368 | drivers/net/3c509.c | outw(skb->len, ioaddr + TX_FIFO); |
skb | 371 | drivers/net/3c509.c | outsl(ioaddr + TX_FIFO, skb->data, (skb->len + 3) >> 2); |
skb | 381 | drivers/net/3c509.c | if (skb->free) |
skb | 382 | drivers/net/3c509.c | kfree_skb (skb, FREE_WRITE); |
skb | 532 | drivers/net/3c509.c | struct sk_buff *skb; |
skb | 534 | drivers/net/3c509.c | skb = alloc_skb(pkt_len+3, GFP_ATOMIC); |
skb | 538 | drivers/net/3c509.c | if (skb != NULL) { |
skb | 539 | drivers/net/3c509.c | skb->len = pkt_len; |
skb | 540 | drivers/net/3c509.c | skb->dev = dev; |
skb | 543 | drivers/net/3c509.c | insl(ioaddr+RX_FIFO, skb->data, |
skb | 547 | drivers/net/3c509.c | netif_rx(skb); |
skb | 551 | drivers/net/3c509.c | skb->lock = 0; |
skb | 552 | drivers/net/3c509.c | if (dev_rint((unsigned char *)skb, pkt_len, |
skb | 567 | drivers/net/3c509.c | kfree_s(skb, FREE_READ); |
skb | 125 | drivers/net/8390.c | static int ei_start_xmit(struct sk_buff *skb, struct device *dev) |
skb | 163 | drivers/net/8390.c | if (skb == NULL) { |
skb | 168 | drivers/net/8390.c | length = skb->len; |
skb | 169 | drivers/net/8390.c | if (skb->len <= 0) |
skb | 209 | drivers/net/8390.c | ei_block_output(dev, length, skb->data, output_page); |
skb | 223 | drivers/net/8390.c | ei_block_output(dev, length, skb->data, ei_local->tx_start_page); |
skb | 233 | drivers/net/8390.c | if (skb->free) |
skb | 234 | drivers/net/8390.c | kfree_skb (skb, FREE_WRITE); |
skb | 440 | drivers/net/8390.c | struct sk_buff *skb; |
skb | 442 | drivers/net/8390.c | skb = alloc_skb(pkt_len, GFP_ATOMIC); |
skb | 443 | drivers/net/8390.c | if (skb == NULL) { |
skb | 450 | drivers/net/8390.c | skb->len = pkt_len; |
skb | 451 | drivers/net/8390.c | skb->dev = dev; |
skb | 453 | drivers/net/8390.c | ei_block_input(dev, pkt_len, (char *) skb->data, |
skb | 455 | drivers/net/8390.c | netif_rx(skb); |
skb | 113 | drivers/net/at1700.c | static int net_send_packet(struct sk_buff *skb, struct device *dev); |
skb | 343 | drivers/net/at1700.c | net_send_packet(struct sk_buff *skb, struct device *dev) |
skb | 374 | drivers/net/at1700.c | if (skb == NULL) { |
skb | 384 | drivers/net/at1700.c | short length = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN; |
skb | 385 | drivers/net/at1700.c | unsigned char *buf = skb->data; |
skb | 409 | drivers/net/at1700.c | if (skb->free) |
skb | 410 | drivers/net/at1700.c | kfree_skb (skb, FREE_WRITE); |
skb | 494 | drivers/net/at1700.c | struct sk_buff *skb; |
skb | 503 | drivers/net/at1700.c | skb = alloc_skb(pkt_len, GFP_ATOMIC); |
skb | 504 | drivers/net/at1700.c | if (skb == NULL) { |
skb | 511 | drivers/net/at1700.c | skb->len = pkt_len; |
skb | 512 | drivers/net/at1700.c | skb->dev = dev; |
skb | 514 | drivers/net/at1700.c | insw(ioaddr + DATAPORT, skb->data, (pkt_len + 1) >> 1); |
skb | 520 | drivers/net/at1700.c | printk(" %02x", skb->data[i]); |
skb | 524 | drivers/net/at1700.c | netif_rx(skb); |
skb | 140 | drivers/net/atp.c | static int net_send_packet(struct sk_buff *skb, struct device *dev); |
skb | 411 | drivers/net/atp.c | net_send_packet(struct sk_buff *skb, struct device *dev) |
skb | 435 | drivers/net/atp.c | if (skb == NULL) { |
skb | 445 | drivers/net/atp.c | short length = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN; |
skb | 446 | drivers/net/atp.c | unsigned char *buf = skb->data; |
skb | 474 | drivers/net/atp.c | if (skb->free) |
skb | 475 | drivers/net/atp.c | kfree_skb (skb, FREE_WRITE); |
skb | 630 | drivers/net/atp.c | struct sk_buff *skb; |
skb | 632 | drivers/net/atp.c | skb = alloc_skb(pkt_len, GFP_ATOMIC); |
skb | 633 | drivers/net/atp.c | if (skb == NULL) { |
skb | 638 | drivers/net/atp.c | skb->len = pkt_len; |
skb | 639 | drivers/net/atp.c | skb->dev = dev; |
skb | 641 | drivers/net/atp.c | read_block(ioaddr, pkt_len, skb->data, dev->if_port); |
skb | 644 | drivers/net/atp.c | unsigned char *data = skb->data; |
skb | 652 | drivers/net/atp.c | netif_rx(skb); |
skb | 217 | drivers/net/d_link.c | static int d_link_start_xmit(struct sk_buff *skb, struct device *dev); |
skb | 379 | drivers/net/d_link.c | d_link_start_xmit(struct sk_buff *skb, struct device *dev) |
skb | 384 | drivers/net/d_link.c | unsigned char *buffer = skb->data; |
skb | 392 | drivers/net/d_link.c | if (skb == NULL) { |
skb | 414 | drivers/net/d_link.c | PRINTK(("d_link_start_xmit:len=%d, page %d/%d\n", skb->len, tx_fifo_in, free_tx_pages)); |
skb | 416 | drivers/net/d_link.c | if ((len = skb->len) < RUNT) |
skb | 443 | drivers/net/d_link.c | if (skb->free) |
skb | 444 | drivers/net/d_link.c | kfree_skb (skb, FREE_WRITE); |
skb | 544 | drivers/net/d_link.c | struct sk_buff *skb; |
skb | 565 | drivers/net/d_link.c | skb = alloc_skb(size, GFP_ATOMIC); |
skb | 567 | drivers/net/d_link.c | if (skb == NULL) { |
skb | 574 | drivers/net/d_link.c | skb->lock = 0; |
skb | 576 | drivers/net/d_link.c | buffer = skb->data; |
skb | 585 | drivers/net/d_link.c | if (dev_rint((unsigned char *)skb, size, IN_SKBUFF, dev)) |
skb | 267 | drivers/net/depca.c | static int depca_start_xmit(struct sk_buff *skb, struct device *dev); |
skb | 780 | drivers/net/depca.c | depca_start_xmit(struct sk_buff *skb, struct device *dev) |
skb | 805 | drivers/net/depca.c | if (skb == NULL) { |
skb | 810 | drivers/net/depca.c | if (skb->len <= 0) { |
skb | 834 | drivers/net/depca.c | long skbL = skb->len; |
skb | 835 | drivers/net/depca.c | char *p = (char *) skb->data; |
skb | 856 | drivers/net/depca.c | memcpy((unsigned char *)(buf), skb->data, len); |
skb | 880 | drivers/net/depca.c | memcpy((unsigned char *)buf, skb->data, PKT_HDR_LEN); |
skb | 917 | drivers/net/depca.c | if (skb->free) { |
skb | 918 | drivers/net/depca.c | kfree_skb (skb, FREE_WRITE); |
skb | 1030 | drivers/net/depca.c | struct sk_buff *skb; |
skb | 1032 | drivers/net/depca.c | skb = alloc_skb(pkt_len, GFP_ATOMIC); |
skb | 1033 | drivers/net/depca.c | if (skb == NULL) { |
skb | 1038 | drivers/net/depca.c | skb->len = pkt_len; |
skb | 1039 | drivers/net/depca.c | skb->dev = dev; |
skb | 1040 | drivers/net/depca.c | memcpy(skb->data, |
skb | 1047 | drivers/net/depca.c | netif_rx(skb); |
skb | 285 | drivers/net/eexpress.c | static int eexp_send_packet(struct sk_buff *skb, struct device *dev); |
skb | 442 | drivers/net/eexpress.c | eexp_send_packet(struct sk_buff *skb, struct device *dev) |
skb | 477 | drivers/net/eexpress.c | if (skb == NULL) { |
skb | 486 | drivers/net/eexpress.c | short length = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN; |
skb | 487 | drivers/net/eexpress.c | unsigned char *buf = skb->data; |
skb | 497 | drivers/net/eexpress.c | if (skb->free) |
skb | 498 | drivers/net/eexpress.c | kfree_skb (skb, FREE_WRITE); |
skb | 924 | drivers/net/eexpress.c | struct sk_buff *skb; |
skb | 927 | drivers/net/eexpress.c | skb = alloc_skb(pkt_len, GFP_ATOMIC); |
skb | 928 | drivers/net/eexpress.c | if (skb == NULL) { |
skb | 933 | drivers/net/eexpress.c | skb->len = pkt_len; |
skb | 934 | drivers/net/eexpress.c | skb->dev = dev; |
skb | 938 | drivers/net/eexpress.c | insw(ioaddr, skb->data, (pkt_len + 1) >> 1); |
skb | 940 | drivers/net/eexpress.c | netif_rx(skb); |
skb | 205 | drivers/net/lance.c | static int lance_start_xmit(struct sk_buff *skb, struct device *dev); |
skb | 460 | drivers/net/lance.c | lance_start_xmit(struct sk_buff *skb, struct device *dev) |
skb | 501 | drivers/net/lance.c | if (skb == NULL) { |
skb | 506 | drivers/net/lance.c | if (skb->len <= 0) |
skb | 532 | drivers/net/lance.c | -(ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN); |
skb | 534 | drivers/net/lance.c | lp->tx_ring[entry].length = -skb->len; |
skb | 540 | drivers/net/lance.c | if ((int)(skb->data) + skb->len > 0x01000000) { |
skb | 543 | drivers/net/lance.c | dev->name, (int)(skb->data)); |
skb | 544 | drivers/net/lance.c | memcpy(&lp->tx_bounce_buffs[entry], skb->data, skb->len); |
skb | 547 | drivers/net/lance.c | if (skb->free) |
skb | 548 | drivers/net/lance.c | kfree_skb (skb, FREE_WRITE); |
skb | 552 | drivers/net/lance.c | if(skb->free==0) |
skb | 553 | drivers/net/lance.c | skb_kept_by_device(skb); |
skb | 554 | drivers/net/lance.c | lp->tx_ring[entry].base = (int)(skb->data) | 0x83000000; |
skb | 637 | drivers/net/lance.c | struct sk_buff *skb = ((struct sk_buff *)databuff) - 1; |
skb | 638 | drivers/net/lance.c | if (skb->free) |
skb | 639 | drivers/net/lance.c | kfree_skb(skb, FREE_WRITE); |
skb | 641 | drivers/net/lance.c | skb_device_release(skb,FREE_WRITE); |
skb | 707 | drivers/net/lance.c | struct sk_buff *skb; |
skb | 709 | drivers/net/lance.c | skb = alloc_skb(pkt_len, GFP_ATOMIC); |
skb | 710 | drivers/net/lance.c | if (skb == NULL) { |
skb | 715 | drivers/net/lance.c | skb->len = pkt_len; |
skb | 716 | drivers/net/lance.c | skb->dev = dev; |
skb | 717 | drivers/net/lance.c | memcpy(skb->data, |
skb | 720 | drivers/net/lance.c | netif_rx(skb); |
skb | 42 | drivers/net/loopback.c | loopback_xmit(struct sk_buff *skb, struct device *dev) |
skb | 47 | drivers/net/loopback.c | DPRINTF((DBG_LOOPB, "loopback_xmit(dev=%X, skb=%X)\n", dev, skb)); |
skb | 48 | drivers/net/loopback.c | if (skb == NULL || dev == NULL) return(0); |
skb | 59 | drivers/net/loopback.c | done = dev_rint(skb->data, skb->len, 0, dev); |
skb | 60 | drivers/net/loopback.c | if (skb->free) kfree_skb(skb, FREE_WRITE); |
skb | 138 | drivers/net/plip.c | static int plip_tx_packet(struct sk_buff *skb, struct device *dev); |
skb | 141 | drivers/net/plip.c | void *source, unsigned len, struct sk_buff *skb); |
skb | 258 | drivers/net/plip.c | plip_tx_packet(struct sk_buff *skb, struct device *dev) |
skb | 275 | drivers/net/plip.c | if (skb == NULL) { |
skb | 281 | drivers/net/plip.c | ret_val = plip_send_packet(dev, skb->data, skb->len); |
skb | 282 | drivers/net/plip.c | if (skb->free) |
skb | 283 | drivers/net/plip.c | kfree_skb (skb, FREE_WRITE); |
skb | 292 | drivers/net/plip.c | void *saddr, unsigned len, struct sk_buff *skb) |
skb | 298 | drivers/net/plip.c | return eth_header(buff, dev, type, daddr, saddr, len, skb); |
skb | 408 | drivers/net/plip.c | struct sk_buff *skb; |
skb | 438 | drivers/net/plip.c | skb = alloc_skb(length, GFP_ATOMIC); |
skb | 439 | drivers/net/plip.c | if (skb == NULL) { |
skb | 444 | drivers/net/plip.c | skb->lock = 0; |
skb | 449 | drivers/net/plip.c | unsigned char *buf = skb->data; |
skb | 466 | drivers/net/plip.c | } else if(dev_rint((unsigned char *)skb, length, IN_SKBUFF, dev)) { |
skb | 103 | drivers/net/skeleton.c | static int net_send_packet(struct sk_buff *skb, struct device *dev); |
skb | 257 | drivers/net/skeleton.c | net_send_packet(struct sk_buff *skb, struct device *dev) |
skb | 279 | drivers/net/skeleton.c | if (skb == NULL) { |
skb | 289 | drivers/net/skeleton.c | short length = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN; |
skb | 290 | drivers/net/skeleton.c | unsigned char *buf = skb->data; |
skb | 295 | drivers/net/skeleton.c | if (skb->free) |
skb | 296 | drivers/net/skeleton.c | kfree_skb (skb, FREE_WRITE); |
skb | 367 | drivers/net/skeleton.c | struct sk_buff *skb; |
skb | 369 | drivers/net/skeleton.c | skb = alloc_skb(pkt_len, GFP_ATOMIC); |
skb | 370 | drivers/net/skeleton.c | if (skb == NULL) { |
skb | 375 | drivers/net/skeleton.c | skb->len = pkt_len; |
skb | 376 | drivers/net/skeleton.c | skb->dev = dev; |
skb | 379 | drivers/net/skeleton.c | memcpy(skb->data, (void*)dev->rmem_start, |
skb | 382 | drivers/net/skeleton.c | insw(ioaddr, skb->data, (pkt_len + 1) >> 1); |
skb | 384 | drivers/net/skeleton.c | netif_rx(skb); |
skb | 503 | drivers/net/slip.c | sl_xmit(struct sk_buff *skb, struct device *dev) |
skb | 513 | drivers/net/slip.c | dev->name, skb, sl->sending)); |
skb | 527 | drivers/net/slip.c | if (skb != NULL) { |
skb | 532 | drivers/net/slip.c | if(!skb->arp && dev->rebuild_header(skb->data,dev)) |
skb | 534 | drivers/net/slip.c | skb->dev=dev; |
skb | 535 | drivers/net/slip.c | arp_queue(skb); |
skb | 538 | drivers/net/slip.c | skb->arp=1; |
skb | 544 | drivers/net/slip.c | size=skb->len; |
skb | 554 | drivers/net/slip.c | size=((struct iphdr *)(skb->data))->tot_len; |
skb | 559 | drivers/net/slip.c | sl_encaps(sl, skb->data, size); |
skb | 560 | drivers/net/slip.c | if (skb->free) |
skb | 561 | drivers/net/slip.c | kfree_skb(skb, FREE_WRITE); |
skb | 569 | drivers/net/slip.c | sl_type_trans (struct sk_buff *skb, struct device *dev) |
skb | 583 | drivers/net/slip.c | void *daddr, void *saddr, unsigned len, struct sk_buff *skb) |
skb | 588 | drivers/net/slip.c | return ax25_encapsulate(buff,dev,type,daddr,saddr,len,skb); |
skb | 598 | drivers/net/slip.c | struct sk_buff *skb) |
skb | 604 | drivers/net/slip.c | return ax25_rebuild_header(buff,dev,raddr, skb); |
skb | 34 | include/linux/etherdevice.h | struct sk_buff *skb); |
skb | 36 | include/linux/etherdevice.h | unsigned long raddr, struct sk_buff *skb); |
skb | 37 | include/linux/etherdevice.h | extern unsigned short eth_type_trans(struct sk_buff *skb, struct device *dev); |
skb | 120 | include/linux/netdevice.h | int (*hard_start_xmit) (struct sk_buff *skb, |
skb | 128 | include/linux/netdevice.h | struct sk_buff *skb); |
skb | 130 | include/linux/netdevice.h | unsigned long raddr, struct sk_buff *skb); |
skb | 131 | include/linux/netdevice.h | unsigned short (*type_trans) (struct sk_buff *skb, |
skb | 173 | include/linux/netdevice.h | extern void dev_queue_xmit(struct sk_buff *skb, struct device *dev, |
skb | 176 | include/linux/netdevice.h | extern void netif_rx(struct sk_buff *skb); |
skb | 94 | include/linux/skbuff.h | extern void kfree_skb(struct sk_buff *skb, int rw); |
skb | 105 | include/linux/skbuff.h | extern struct sk_buff * skb_clone(struct sk_buff *skb, int priority); |
skb | 106 | include/linux/skbuff.h | extern void skb_kept_by_device(struct sk_buff *skb); |
skb | 107 | include/linux/skbuff.h | extern void skb_device_release(struct sk_buff *skb, |
skb | 109 | include/linux/skbuff.h | extern int skb_device_locked(struct sk_buff *skb); |
skb | 123 | include/linux/skbuff.h | extern int skb_check(struct sk_buff *skb,int,int, char *); |
skb | 124 | include/linux/skbuff.h | #define IS_SKB(skb) skb_check((skb), 0, __LINE__,__FILE__) |
skb | 125 | include/linux/skbuff.h | #define IS_SKB_HEAD(skb) skb_check((skb), 1, __LINE__,__FILE__) |
skb | 127 | include/linux/skbuff.h | #define IS_SKB(skb) 0 |
skb | 128 | include/linux/skbuff.h | #define IS_SKB_HEAD(skb) 0 |
skb | 134 | include/linux/skbuff.h | extern void skb_free_datagram(struct sk_buff *skb); |
skb | 81 | net/inet/arp.c | struct sk_buff_head skb; /* list of queued packets */ |
skb | 228 | net/inet/arp.c | struct sk_buff *skb; |
skb | 233 | net/inet/arp.c | while ((skb = skb_dequeue(&entry->skb)) != NULL) |
skb | 235 | net/inet/arp.c | if (skb->free) |
skb | 236 | net/inet/arp.c | kfree_skb(skb, FREE_WRITE); |
skb | 252 | net/inet/arp.c | struct sk_buff *skb; |
skb | 267 | net/inet/arp.c | skb = alloc_skb(sizeof(struct arphdr)+ 2*(dev->addr_len+4) |
skb | 269 | net/inet/arp.c | if (skb == NULL) |
skb | 274 | net/inet/arp.c | skb->len = sizeof(struct arphdr) + dev->hard_header_len + 2*(dev->addr_len+4); |
skb | 275 | net/inet/arp.c | skb->arp = 1; |
skb | 276 | net/inet/arp.c | skb->dev = dev; |
skb | 277 | net/inet/arp.c | skb->free = 1; |
skb | 283 | net/inet/arp.c | dev->hard_header(skb->data,dev,ETH_P_ARP,dest_hw?dest_hw:dev->broadcast,src_hw?src_hw:NULL,skb->len,skb); |
skb | 286 | net/inet/arp.c | arp = (struct arphdr *) (skb->data + dev->hard_header_len); |
skb | 310 | net/inet/arp.c | dev_queue_xmit(skb, dev, 0); |
skb | 391 | net/inet/arp.c | struct sk_buff *skb; |
skb | 405 | net/inet/arp.c | while((skb = skb_dequeue(&entry->skb)) != NULL) |
skb | 407 | net/inet/arp.c | IS_SKB(skb); |
skb | 408 | net/inet/arp.c | if(!skb->dev->rebuild_header(skb->data,skb->dev,skb->raddr,skb)) |
skb | 410 | net/inet/arp.c | skb->arp = 1; |
skb | 411 | net/inet/arp.c | if(skb->sk==NULL) |
skb | 412 | net/inet/arp.c | dev_queue_xmit(skb, skb->dev, 0); |
skb | 414 | net/inet/arp.c | dev_queue_xmit(skb,skb->dev,skb->sk->priority); |
skb | 422 | net/inet/arp.c | printk("arp_send_q: failed to find %s\n",in_ntoa(skb->raddr)); |
skb | 464 | net/inet/arp.c | int arp_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt) |
skb | 470 | net/inet/arp.c | struct arphdr *arp = (struct arphdr *)skb->h.raw; |
skb | 486 | net/inet/arp.c | kfree_skb(skb, FREE_READ); |
skb | 501 | net/inet/arp.c | kfree_skb(skb, FREE_READ); |
skb | 573 | net/inet/arp.c | kfree_skb(skb, FREE_READ); |
skb | 584 | net/inet/arp.c | kfree_skb(skb, FREE_READ); |
skb | 592 | net/inet/arp.c | kfree_skb(skb, FREE_READ); |
skb | 604 | net/inet/arp.c | entry->dev = skb->dev; |
skb | 605 | net/inet/arp.c | skb_queue_head_init(&entry->skb); |
skb | 617 | net/inet/arp.c | kfree_skb(skb, FREE_READ); |
skb | 626 | net/inet/arp.c | kfree_skb(skb, FREE_READ); |
skb | 636 | net/inet/arp.c | unsigned long saddr, struct sk_buff *skb) |
skb | 646 | net/inet/arp.c | skb->arp = 1; |
skb | 650 | net/inet/arp.c | skb->arp = 1; |
skb | 674 | net/inet/arp.c | if (skb != NULL) |
skb | 675 | net/inet/arp.c | skb_queue_tail(&entry->skb, skb); |
skb | 686 | net/inet/arp.c | if (skb) |
skb | 687 | net/inet/arp.c | skb->arp = 1; |
skb | 714 | net/inet/arp.c | skb_queue_head_init(&entry->skb); |
skb | 715 | net/inet/arp.c | if (skb != NULL) |
skb | 716 | net/inet/arp.c | skb_queue_tail(&entry->skb, skb); |
skb | 720 | net/inet/arp.c | if (skb != NULL && skb->free) |
skb | 721 | net/inet/arp.c | kfree_skb(skb, FREE_WRITE); |
skb | 894 | net/inet/arp.c | skb_queue_head_init(&entry->skb); |
skb | 7 | net/inet/arp.h | extern int arp_rcv(struct sk_buff *skb, struct device *dev, |
skb | 10 | net/inet/arp.h | struct device *dev, unsigned long saddr, struct sk_buff *skb); |
skb | 55 | net/inet/datagram.c | struct sk_buff *skb; |
skb | 125 | net/inet/datagram.c | skb=skb_dequeue(&sk->receive_queue); |
skb | 126 | net/inet/datagram.c | if(skb!=NULL) |
skb | 127 | net/inet/datagram.c | skb->users++; |
skb | 134 | net/inet/datagram.c | skb=skb_peek(&sk->receive_queue); |
skb | 135 | net/inet/datagram.c | if(skb!=NULL) |
skb | 136 | net/inet/datagram.c | skb->users++; |
skb | 138 | net/inet/datagram.c | if(skb==NULL) /* shouldn't happen but .. */ |
skb | 141 | net/inet/datagram.c | return skb; |
skb | 144 | net/inet/datagram.c | void skb_free_datagram(struct sk_buff *skb) |
skb | 150 | net/inet/datagram.c | skb->users--; |
skb | 151 | net/inet/datagram.c | if(skb->users>0) |
skb | 157 | net/inet/datagram.c | if(!skb->next && !skb->prev) /* Been dequeued by someone - ie its read */ |
skb | 158 | net/inet/datagram.c | kfree_skb(skb,FREE_READ); |
skb | 162 | net/inet/datagram.c | void skb_copy_datagram(struct sk_buff *skb, int offset, char *to, int size) |
skb | 166 | net/inet/datagram.c | memcpy_tofs(to,skb->h.raw+offset,size); |
skb | 305 | net/inet/dev.c | struct sk_buff *skb; |
skb | 306 | net/inet/dev.c | while((skb=skb_dequeue(&dev->buffs[ct]))!=NULL) |
skb | 307 | net/inet/dev.c | if(skb->free) |
skb | 308 | net/inet/dev.c | kfree_skb(skb,FREE_WRITE); |
skb | 320 | net/inet/dev.c | void dev_queue_xmit(struct sk_buff *skb, struct device *dev, int pri) |
skb | 328 | net/inet/dev.c | skb, dev, pri)); |
skb | 336 | net/inet/dev.c | IS_SKB(skb); |
skb | 338 | net/inet/dev.c | skb->dev = dev; |
skb | 344 | net/inet/dev.c | if (skb->next != NULL) |
skb | 377 | net/inet/dev.c | if (!skb->arp && dev->rebuild_header(skb->data, dev, skb->raddr, skb)) { |
skb | 384 | net/inet/dev.c | skb_queue_tail(dev->buffs + pri,skb); |
skb | 385 | net/inet/dev.c | skb = skb_dequeue(dev->buffs + pri); |
skb | 389 | net/inet/dev.c | if (dev->hard_start_xmit(skb, dev) == 0) { |
skb | 397 | net/inet/dev.c | skb_queue_head(dev->buffs + pri,skb); |
skb | 407 | net/inet/dev.c | void netif_rx(struct sk_buff *skb) |
skb | 417 | net/inet/dev.c | skb->sk = NULL; |
skb | 418 | net/inet/dev.c | skb->free = 1; |
skb | 419 | net/inet/dev.c | if(skb->stamp.tv_sec==0) |
skb | 420 | net/inet/dev.c | skb->stamp = xtime; |
skb | 433 | net/inet/dev.c | kfree_skb(skb, FREE_READ); |
skb | 441 | net/inet/dev.c | IS_SKB(skb); |
skb | 442 | net/inet/dev.c | skb_queue_tail(&backlog,skb); |
skb | 472 | net/inet/dev.c | struct sk_buff *skb = NULL; |
skb | 482 | net/inet/dev.c | skb = (struct sk_buff *) buff; |
skb | 494 | net/inet/dev.c | skb = alloc_skb(len, GFP_ATOMIC); |
skb | 495 | net/inet/dev.c | if (skb == NULL) |
skb | 508 | net/inet/dev.c | to = skb->data; |
skb | 530 | net/inet/dev.c | skb->len = len; |
skb | 531 | net/inet/dev.c | skb->dev = dev; |
skb | 532 | net/inet/dev.c | skb->free = 1; |
skb | 534 | net/inet/dev.c | netif_rx(skb); |
skb | 591 | net/inet/dev.c | struct sk_buff *skb; |
skb | 624 | net/inet/dev.c | while((skb=skb_dequeue(&backlog))!=NULL) |
skb | 642 | net/inet/dev.c | skb->h.raw = skb->data + skb->dev->hard_header_len; |
skb | 643 | net/inet/dev.c | skb->len -= skb->dev->hard_header_len; |
skb | 656 | net/inet/dev.c | type = skb->dev->type_trans(skb, skb->dev); |
skb | 684 | net/inet/dev.c | skb2 = alloc_skb(skb->len, GFP_ATOMIC); |
skb | 687 | net/inet/dev.c | memcpy(skb2, skb, skb2->mem_len); |
skb | 691 | net/inet/dev.c | (unsigned long) skb->h.raw - |
skb | 692 | net/inet/dev.c | (unsigned long) skb |
skb | 696 | net/inet/dev.c | skb2=skb_clone(skb, GFP_ATOMIC); |
skb | 703 | net/inet/dev.c | skb2 = skb; |
skb | 717 | net/inet/dev.c | ptype->func(skb2, skb->dev, ptype); |
skb | 728 | net/inet/dev.c | kfree_skb(skb, FREE_WRITE); |
skb | 762 | net/inet/dev.c | struct sk_buff *skb; |
skb | 774 | net/inet/dev.c | while((skb=skb_dequeue(&dev->buffs[i]))!=NULL) |
skb | 780 | net/inet/dev.c | dev_queue_xmit(skb,dev,-i - 1); |
skb | 119 | net/inet/dev.h | int (*hard_start_xmit) (struct sk_buff *skb, |
skb | 128 | net/inet/dev.h | struct sk_buff *skb, |
skb | 130 | net/inet/dev.h | void (*queue_xmit)(struct sk_buff *skb, |
skb | 133 | net/inet/dev.h | unsigned short (*type_trans) (struct sk_buff *skb, |
skb | 175 | net/inet/dev.h | extern void dev_queue_xmit(struct sk_buff *skb, struct device *dev, |
skb | 178 | net/inet/dev.h | extern void netif_rx(struct sk_buff *skb); |
skb | 82 | net/inet/eth.c | struct sk_buff *skb) |
skb | 132 | net/inet/eth.c | struct sk_buff *skb) |
skb | 151 | net/inet/eth.c | return arp_find(eth->h_dest, dst, dev, dev->pa_addr, skb)? 1 : 0; |
skb | 161 | net/inet/eth.c | unsigned short eth_type_trans(struct sk_buff *skb, struct device *dev) |
skb | 163 | net/inet/eth.c | struct ethhdr *eth = (struct ethhdr *) skb->data; |
skb | 31 | net/inet/eth.h | extern void eth_add_arp(unsigned long addr, struct sk_buff *skb, |
skb | 33 | net/inet/eth.h | extern unsigned short eth_type_trans(struct sk_buff *skb, struct device *dev); |
skb | 108 | net/inet/icmp.c | struct sk_buff *skb; |
skb | 183 | net/inet/icmp.c | skb = (struct sk_buff *) alloc_skb(len, GFP_ATOMIC); |
skb | 184 | net/inet/icmp.c | if (skb == NULL) |
skb | 194 | net/inet/icmp.c | offset = ip_build_header(skb, dev->pa_addr, iph->saddr, |
skb | 200 | net/inet/icmp.c | skb->sk = NULL; |
skb | 201 | net/inet/icmp.c | kfree_skb(skb, FREE_READ); |
skb | 209 | net/inet/icmp.c | skb->len = offset + sizeof(struct icmphdr) + sizeof(struct iphdr) + 8; |
skb | 215 | net/inet/icmp.c | icmph = (struct icmphdr *) (skb->data + offset); |
skb | 231 | net/inet/icmp.c | ip_queue_xmit(NULL, dev, skb, 1); |
skb | 239 | net/inet/icmp.c | static void icmp_unreach(struct icmphdr *icmph, struct sk_buff *skb) |
skb | 308 | net/inet/icmp.c | kfree_skb(skb, FREE_READ); |
skb | 316 | net/inet/icmp.c | static void icmp_redirect(struct icmphdr *icmph, struct sk_buff *skb, |
skb | 372 | net/inet/icmp.c | kfree_skb(skb, FREE_READ); |
skb | 380 | net/inet/icmp.c | static void icmp_echo(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, |
skb | 398 | net/inet/icmp.c | kfree_skb(skb, FREE_READ); |
skb | 405 | net/inet/icmp.c | IPPROTO_ICMP, opt, len, skb->ip_hdr->tos,255); |
skb | 411 | net/inet/icmp.c | kfree_skb(skb, FREE_READ); |
skb | 440 | net/inet/icmp.c | kfree_skb(skb, FREE_READ); |
skb | 447 | net/inet/icmp.c | static void icmp_timestamp(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, |
skb | 462 | net/inet/icmp.c | skb->sk = NULL; |
skb | 463 | net/inet/icmp.c | kfree_skb(skb, FREE_READ); |
skb | 474 | net/inet/icmp.c | skb->ip_hdr->tos, 255); |
skb | 479 | net/inet/icmp.c | kfree_skb(skb, FREE_READ); |
skb | 514 | net/inet/icmp.c | kfree_skb(skb, FREE_READ); |
skb | 524 | net/inet/icmp.c | static void icmp_info(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, |
skb | 529 | net/inet/icmp.c | kfree_skb(skb, FREE_READ); |
skb | 537 | net/inet/icmp.c | static void icmp_address(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, |
skb | 554 | net/inet/icmp.c | kfree_skb(skb, FREE_READ); |
skb | 564 | net/inet/icmp.c | IPPROTO_ICMP, opt, len, skb->ip_hdr->tos,255); |
skb | 570 | net/inet/icmp.c | kfree_skb(skb, FREE_READ); |
skb | 597 | net/inet/icmp.c | skb->sk = NULL; |
skb | 598 | net/inet/icmp.c | kfree_skb(skb, FREE_READ); |
skb | 226 | net/inet/ip.c | static int ip_send(struct sk_buff *skb, unsigned long daddr, int len, struct device *dev, unsigned long saddr) |
skb | 230 | net/inet/ip.c | skb->dev = dev; |
skb | 231 | net/inet/ip.c | skb->arp = 1; |
skb | 238 | net/inet/ip.c | mac = dev->hard_header(skb->data, dev, ETH_P_IP, NULL, NULL, len, skb); |
skb | 242 | net/inet/ip.c | skb->arp = 0; |
skb | 243 | net/inet/ip.c | skb->raddr = daddr; /* next routing address */ |
skb | 256 | net/inet/ip.c | int ip_build_header(struct sk_buff *skb, unsigned long saddr, unsigned long daddr, |
skb | 277 | net/inet/ip.c | skb, saddr, daddr, *dev, type, opt, len)); |
skb | 279 | net/inet/ip.c | buff = skb->data; |
skb | 287 | net/inet/ip.c | if(skb->localroute) |
skb | 314 | net/inet/ip.c | if(skb->localroute) |
skb | 338 | net/inet/ip.c | tmp = ip_send(skb, raddr, len, *dev, saddr); |
skb | 346 | net/inet/ip.c | skb->dev = *dev; |
skb | 347 | net/inet/ip.c | skb->saddr = saddr; |
skb | 348 | net/inet/ip.c | if (skb->sk) |
skb | 349 | net/inet/ip.c | skb->sk->saddr = saddr; |
skb | 641 | net/inet/ip.c | static struct ipfrag *ip_frag_create(int offset, int end, struct sk_buff *skb, unsigned char *ptr) |
skb | 657 | net/inet/ip.c | fp->skb = skb; |
skb | 729 | net/inet/ip.c | IS_SKB(fp->skb); |
skb | 730 | net/inet/ip.c | kfree_skb(fp->skb,FREE_READ); |
skb | 767 | net/inet/ip.c | icmp_send(qp->fragments->skb,ICMP_TIME_EXCEEDED, |
skb | 784 | net/inet/ip.c | static struct ipq *ip_create(struct sk_buff *skb, struct iphdr *iph, struct device *dev) |
skb | 795 | net/inet/ip.c | skb->dev = qp->dev; |
skb | 806 | net/inet/ip.c | maclen = ((unsigned long) iph) - ((unsigned long) skb->data); |
skb | 830 | net/inet/ip.c | memcpy(qp->mac, skb->data, maclen); |
skb | 896 | net/inet/ip.c | struct sk_buff *skb; |
skb | 908 | net/inet/ip.c | if ((skb = alloc_skb(len,GFP_ATOMIC)) == NULL) |
skb | 917 | net/inet/ip.c | skb->len = (len - qp->maclen); |
skb | 918 | net/inet/ip.c | skb->h.raw = skb->data; |
skb | 919 | net/inet/ip.c | skb->free = 1; |
skb | 922 | net/inet/ip.c | ptr = (unsigned char *) skb->h.raw; |
skb | 927 | net/inet/ip.c | skb->h.raw += qp->maclen; |
skb | 935 | net/inet/ip.c | if(count+fp->len>skb->len) |
skb | 939 | net/inet/ip.c | kfree_skb(skb,FREE_WRITE); |
skb | 952 | net/inet/ip.c | iph = skb->h.iph; |
skb | 955 | net/inet/ip.c | skb->ip_hdr = iph; |
skb | 958 | net/inet/ip.c | return(skb); |
skb | 966 | net/inet/ip.c | static struct sk_buff *ip_defrag(struct iphdr *iph, struct sk_buff *skb, struct device *dev) |
skb | 989 | net/inet/ip.c | return(skb); |
skb | 1013 | net/inet/ip.c | if ((qp = ip_create(skb, iph, dev)) == NULL) |
skb | 1015 | net/inet/ip.c | skb->sk = NULL; |
skb | 1016 | net/inet/ip.c | kfree_skb(skb, FREE_READ); |
skb | 1033 | net/inet/ip.c | ptr = skb->data + dev->hard_header_len + ihl; |
skb | 1101 | net/inet/ip.c | kfree_skb(next->skb,FREE_READ); |
skb | 1112 | net/inet/ip.c | tfp = ip_frag_create(offset, end, skb, ptr); |
skb | 1120 | net/inet/ip.c | skb->sk = NULL; |
skb | 1121 | net/inet/ip.c | kfree_skb(skb, FREE_READ); |
skb | 1163 | net/inet/ip.c | void ip_fragment(struct sock *sk, struct sk_buff *skb, struct device *dev, int is_frag) |
skb | 1176 | net/inet/ip.c | raw = skb->data; |
skb | 1179 | net/inet/ip.c | skb->ip_hdr = iph; |
skb | 1208 | net/inet/ip.c | icmp_send(skb,ICMP_DEST_UNREACH, ICMP_FRAG_NEEDED, dev); |
skb | 1221 | net/inet/ip.c | icmp_send(skb,ICMP_DEST_UNREACH,ICMP_FRAG_NEEDED,dev); |
skb | 1276 | net/inet/ip.c | skb2->arp = skb->arp; |
skb | 1277 | net/inet/ip.c | skb2->free = skb->free; |
skb | 1336 | net/inet/ip.c | static void ip_forward(struct sk_buff *skb, struct device *dev, int is_frag) |
skb | 1352 | net/inet/ip.c | if(memcmp((char *)&skb[1],dev->dev_addr,dev->addr_len)) |
skb | 1369 | net/inet/ip.c | iph = skb->h.iph; |
skb | 1378 | net/inet/ip.c | icmp_send(skb, ICMP_TIME_EXCEEDED, ICMP_EXC_TTL, dev); |
skb | 1404 | net/inet/ip.c | icmp_send(skb, ICMP_DEST_UNREACH, ICMP_NET_UNREACH, dev); |
skb | 1433 | net/inet/ip.c | icmp_send(skb, ICMP_DEST_UNREACH, ICMP_HOST_UNREACH, dev); |
skb | 1465 | net/inet/ip.c | in_ntoa(raddr), dev2->name, skb->len)); |
skb | 1476 | net/inet/ip.c | skb2 = alloc_skb(dev2->hard_header_len + skb->len, GFP_ATOMIC); |
skb | 1488 | net/inet/ip.c | skb2->len = skb->len + dev2->hard_header_len; |
skb | 1494 | net/inet/ip.c | memcpy(ptr + dev2->hard_header_len, skb->h.raw, skb->len); |
skb | 1497 | net/inet/ip.c | (void) ip_send(skb2, raddr, skb->len, dev2, dev2->pa_addr); |
skb | 1536 | net/inet/ip.c | int ip_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt) |
skb | 1538 | net/inet/ip.c | struct iphdr *iph = skb->h.iph; |
skb | 1557 | net/inet/ip.c | skb->ip_hdr = iph; |
skb | 1568 | net/inet/ip.c | if (skb->len<sizeof(struct iphdr) || iph->ihl<5 || iph->version != 4 || ip_fast_csum((unsigned char *)iph, iph->ihl) !=0) |
skb | 1574 | net/inet/ip.c | kfree_skb(skb, FREE_WRITE); |
skb | 1583 | net/inet/ip.c | skb->len=ntohs(iph->tot_len); |
skb | 1629 | net/inet/ip.c | ip_forward(skb, dev, is_frag); |
skb | 1640 | net/inet/ip.c | kfree_skb(skb, FREE_WRITE); |
skb | 1652 | net/inet/ip.c | skb=ip_defrag(iph,skb,dev); |
skb | 1653 | net/inet/ip.c | if(skb==NULL) |
skb | 1655 | net/inet/ip.c | iph=skb->h.iph; |
skb | 1660 | net/inet/ip.c | icmp_send(skb, ICMP_DEST_UNREACH, ICMP_PROT_UNREACH, dev); |
skb | 1661 | net/inet/ip.c | kfree_skb(skb, FREE_WRITE); |
skb | 1670 | net/inet/ip.c | skb->ip_hdr = iph; |
skb | 1671 | net/inet/ip.c | skb->h.raw += iph->ihl*4; |
skb | 1700 | net/inet/ip.c | skb2 = alloc_skb(skb->mem_len-sizeof(struct sk_buff), GFP_ATOMIC); |
skb | 1703 | net/inet/ip.c | memcpy(skb2, skb, skb2->mem_len); |
skb | 1706 | net/inet/ip.c | (unsigned long) skb->ip_hdr - |
skb | 1707 | net/inet/ip.c | (unsigned long)skb); |
skb | 1710 | net/inet/ip.c | (unsigned long) skb->h.raw - |
skb | 1711 | net/inet/ip.c | (unsigned long)skb); |
skb | 1714 | net/inet/ip.c | skb2 = skb_clone(skb, GFP_ATOMIC); |
skb | 1721 | net/inet/ip.c | skb2 = skb; |
skb | 1746 | net/inet/ip.c | icmp_send(skb, ICMP_DEST_UNREACH, ICMP_PROT_UNREACH, dev); |
skb | 1747 | net/inet/ip.c | kfree_skb(skb, FREE_WRITE); |
skb | 1763 | net/inet/ip.c | struct sk_buff *skb, int free) |
skb | 1779 | net/inet/ip.c | IS_SKB(skb); |
skb | 1785 | net/inet/ip.c | skb->free = free; |
skb | 1786 | net/inet/ip.c | skb->dev = dev; |
skb | 1787 | net/inet/ip.c | skb->when = jiffies; |
skb | 1799 | net/inet/ip.c | ptr = skb->data; |
skb | 1802 | net/inet/ip.c | skb->ip_hdr = iph; |
skb | 1803 | net/inet/ip.c | iph->tot_len = ntohs(skb->len-dev->hard_header_len); |
skb | 1811 | net/inet/ip.c | if(skb->len > dev->mtu) |
skb | 1813 | net/inet/ip.c | ip_fragment(sk,skb,dev,0); |
skb | 1814 | net/inet/ip.c | IS_SKB(skb); |
skb | 1815 | net/inet/ip.c | kfree_skb(skb,FREE_WRITE); |
skb | 1834 | net/inet/ip.c | if (skb->next != NULL) |
skb | 1837 | net/inet/ip.c | skb_unlink(skb); |
skb | 1858 | net/inet/ip.c | if (skb->link3 != NULL) |
skb | 1861 | net/inet/ip.c | skb->link3 = NULL; |
skb | 1865 | net/inet/ip.c | sk->send_tail = skb; |
skb | 1866 | net/inet/ip.c | sk->send_head = skb; |
skb | 1870 | net/inet/ip.c | sk->send_tail->link3 = skb; |
skb | 1871 | net/inet/ip.c | sk->send_tail = skb; |
skb | 1883 | net/inet/ip.c | skb->sk = sk; |
skb | 1899 | net/inet/ip.c | dev_queue_xmit(skb, dev, sk->priority); |
skb | 1903 | net/inet/ip.c | dev_queue_xmit(skb, dev, SOPRI_NORMAL); |
skb | 1910 | net/inet/ip.c | kfree_skb(skb, FREE_WRITE); |
skb | 1922 | net/inet/ip.c | struct sk_buff * skb; |
skb | 1928 | net/inet/ip.c | skb = sk->send_head; |
skb | 1931 | net/inet/ip.c | while (skb != NULL) |
skb | 1933 | net/inet/ip.c | dev = skb->dev; |
skb | 1934 | net/inet/ip.c | IS_SKB(skb); |
skb | 1944 | net/inet/ip.c | if (!skb->arp) |
skb | 1946 | net/inet/ip.c | if (dev->rebuild_header(skb->data, dev, skb->raddr, NULL)) |
skb | 1950 | net/inet/ip.c | skb = skb->link3; |
skb | 1955 | net/inet/ip.c | skb->when = jiffies; |
skb | 1971 | net/inet/ip.c | if (sk && !skb_device_locked(skb)) |
skb | 1974 | net/inet/ip.c | skb_unlink(skb); |
skb | 1977 | net/inet/ip.c | dev_queue_xmit(skb, dev, sk->priority); |
skb | 1998 | net/inet/ip.c | skb = skb->link3; |
skb | 45 | net/inet/ip.h | struct sk_buff *skb; /* complete received fragment */ |
skb | 72 | net/inet/ip.h | extern int ip_build_header(struct sk_buff *skb, |
skb | 79 | net/inet/ip.h | extern int ip_rcv(struct sk_buff *skb, struct device *dev, |
skb | 82 | net/inet/ip.h | struct device *dev, struct sk_buff *skb, |
skb | 122 | net/inet/ipx.c | struct sk_buff *skb; |
skb | 125 | net/inet/ipx.c | while((skb=skb_dequeue(&sk->receive_queue))!=NULL) |
skb | 127 | net/inet/ipx.c | kfree_skb(skb,FREE_READ); |
skb | 695 | net/inet/ipx.c | int ipx_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt) |
skb | 703 | net/inet/ipx.c | buff=skb->data; |
skb | 712 | net/inet/ipx.c | kfree_skb(skb,FREE_READ); |
skb | 719 | net/inet/ipx.c | kfree_skb(skb,FREE_READ); |
skb | 726 | net/inet/ipx.c | kfree_skb(skb,FREE_READ); |
skb | 748 | net/inet/ipx.c | kfree_skb(skb,FREE_READ); |
skb | 757 | net/inet/ipx.c | kfree_skb(skb,FREE_READ); |
skb | 764 | net/inet/ipx.c | skb2=alloc_skb(skb->len,GFP_ATOMIC); |
skb | 767 | net/inet/ipx.c | kfree_skb(skb,FREE_READ); |
skb | 772 | net/inet/ipx.c | skb2->len=skb->len; |
skb | 773 | net/inet/ipx.c | memcpy((char *)(skb2+1),(char *)(skb+1),skb->len); |
skb | 779 | net/inet/ipx.c | skb2=skb; |
skb | 780 | net/inet/ipx.c | buff=(char *)(skb+1); |
skb | 797 | net/inet/ipx.c | kfree_skb(skb,FREE_READ); |
skb | 807 | net/inet/ipx.c | kfree_skb(skb,FREE_READ); |
skb | 813 | net/inet/ipx.c | kfree_skb(skb,FREE_READ); /* Socket is full */ |
skb | 817 | net/inet/ipx.c | sock->rmem_alloc+=skb->mem_len; |
skb | 818 | net/inet/ipx.c | skb_queue_tail(&sock->receive_queue,skb); |
skb | 820 | net/inet/ipx.c | sock->data_ready(sock,skb->len); |
skb | 834 | net/inet/ipx.c | struct sk_buff *skb; |
skb | 902 | net/inet/ipx.c | skb=alloc_skb(size,GFP_KERNEL); |
skb | 903 | net/inet/ipx.c | if(skb==NULL) |
skb | 905 | net/inet/ipx.c | if(skb->mem_len+sk->wmem_alloc>sk->sndbuf) |
skb | 907 | net/inet/ipx.c | kfree_skb(skb,FREE_WRITE); |
skb | 911 | net/inet/ipx.c | sk->wmem_alloc+=skb->mem_len; |
skb | 912 | net/inet/ipx.c | skb->sk=sk; |
skb | 913 | net/inet/ipx.c | skb->free=1; |
skb | 914 | net/inet/ipx.c | skb->arp=1; |
skb | 915 | net/inet/ipx.c | skb->len=size-sizeof(struct sk_buff); |
skb | 919 | net/inet/ipx.c | skb->dev=rt->dev; |
skb | 921 | net/inet/ipx.c | dev->hard_header(skb->data,skb->dev, |
skb | 926 | net/inet/ipx.c | skb); |
skb | 931 | net/inet/ipx.c | ipx=(ipx_packet *)skb->data+skb->dev->hard_header_len; |
skb | 948 | net/inet/ipx.c | ipx_rcv(skb,dev,NULL); |
skb | 950 | net/inet/ipx.c | dev_queue_xmit(skb,dev,SOPRI_NORMAL); |
skb | 971 | net/inet/ipx.c | struct sk_buff *skb; |
skb | 1001 | net/inet/ipx.c | skb=skb_recv_datagram(sk,flags,noblock,&er); |
skb | 1002 | net/inet/ipx.c | if(skb==NULL) |
skb | 1004 | net/inet/ipx.c | copied=(size<skb->len)?size:skb->len; |
skb | 1005 | net/inet/ipx.c | skb_copy_datagram(skb,sizeof(struct ipx_packet),ubuf,copied); |
skb | 1006 | net/inet/ipx.c | sk->stamp=skb->stamp; |
skb | 1013 | net/inet/ipx.c | addr.sipx_port=((ipx_packet*)skb->h.raw)->ipx_source.sock; |
skb | 1014 | net/inet/ipx.c | memcpy(addr.sipx_node,((ipx_packet*)skb->h.raw)->ipx_source.node,sizeof(addr.sipx_node)); |
skb | 1015 | net/inet/ipx.c | addr.sipx_network=((ipx_packet*)skb->h.raw)->ipx_source.net; |
skb | 1018 | net/inet/ipx.c | skb_free_datagram(skb); |
skb | 60 | net/inet/ipx.h | extern int ipx_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt); |
skb | 65 | net/inet/packet.c | int packet_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt) |
skb | 82 | net/inet/packet.c | skb->dev = dev; |
skb | 83 | net/inet/packet.c | skb->len += dev->hard_header_len; |
skb | 85 | net/inet/packet.c | skb->sk = sk; |
skb | 92 | net/inet/packet.c | if (sk->rmem_alloc + skb->mem_len >= sk->rcvbuf) |
skb | 94 | net/inet/packet.c | skb->sk = NULL; |
skb | 95 | net/inet/packet.c | kfree_skb(skb, FREE_READ); |
skb | 98 | net/inet/packet.c | sk->rmem_alloc += skb->mem_len; |
skb | 104 | net/inet/packet.c | skb_queue_tail(&sk->receive_queue,skb); |
skb | 125 | net/inet/packet.c | struct sk_buff *skb; |
skb | 187 | net/inet/packet.c | skb = sk->prot->wmalloc(sk, len, 0, GFP_KERNEL); |
skb | 194 | net/inet/packet.c | if (skb == NULL) |
skb | 204 | net/inet/packet.c | skb->sk = sk; |
skb | 205 | net/inet/packet.c | skb->free = 1; |
skb | 206 | net/inet/packet.c | memcpy_fromfs(skb->data, from, len); |
skb | 207 | net/inet/packet.c | skb->len = len; |
skb | 208 | net/inet/packet.c | skb->arp = 1; /* No ARP needs doing on this (complete) frame */ |
skb | 215 | net/inet/packet.c | dev_queue_xmit(skb, dev, sk->priority); |
skb | 217 | net/inet/packet.c | kfree_skb(skb, FREE_WRITE); |
skb | 290 | net/inet/packet.c | struct sk_buff *skb; |
skb | 337 | net/inet/packet.c | skb=skb_recv_datagram(sk,flags,noblock,&err); |
skb | 345 | net/inet/packet.c | if(skb==NULL) |
skb | 353 | net/inet/packet.c | copied = min(len, skb->len); |
skb | 355 | net/inet/packet.c | memcpy_tofs(to, skb->data, copied); /* We can't use skb_copy_datagram here */ |
skb | 365 | net/inet/packet.c | addr.sa_family = skb->dev->type; |
skb | 366 | net/inet/packet.c | memcpy(addr.sa_data,skb->dev->name, 14); |
skb | 375 | net/inet/packet.c | skb_free_datagram(skb); |
skb | 31 | net/inet/protocol.h | int (*handler)(struct sk_buff *skb, struct device *dev, |
skb | 35 | net/inet/protocol.h | int (*frag_handler)(struct sk_buff *skb, struct device *dev, |
skb | 96 | net/inet/raw.c | raw_rcv(struct sk_buff *skb, struct device *dev, struct options *opt, |
skb | 104 | net/inet/raw.c | skb, dev, opt, daddr, len, saddr, redo, protocol)); |
skb | 106 | net/inet/raw.c | if (skb == NULL) |
skb | 111 | net/inet/raw.c | kfree_skb(skb, FREE_READ); |
skb | 118 | net/inet/raw.c | kfree_skb(skb, FREE_READ); |
skb | 123 | net/inet/raw.c | skb->sk = sk; |
skb | 124 | net/inet/raw.c | skb->len = len + skb->ip_hdr->ihl*sizeof(long); |
skb | 125 | net/inet/raw.c | skb->h.raw = (unsigned char *) skb->ip_hdr; |
skb | 126 | net/inet/raw.c | skb->dev = dev; |
skb | 127 | net/inet/raw.c | skb->saddr = daddr; |
skb | 128 | net/inet/raw.c | skb->daddr = saddr; |
skb | 131 | net/inet/raw.c | if (sk->rmem_alloc + skb->mem_len >= sk->rcvbuf) { |
skb | 133 | net/inet/raw.c | skb->sk=NULL; |
skb | 134 | net/inet/raw.c | kfree_skb(skb, FREE_READ); |
skb | 137 | net/inet/raw.c | sk->rmem_alloc += skb->mem_len; |
skb | 139 | net/inet/raw.c | skb_queue_tail(&sk->receive_queue,skb); |
skb | 140 | net/inet/raw.c | sk->data_ready(sk,skb->len); |
skb | 152 | net/inet/raw.c | struct sk_buff *skb; |
skb | 204 | net/inet/raw.c | skb = NULL; |
skb | 205 | net/inet/raw.c | while (skb == NULL) |
skb | 215 | net/inet/raw.c | skb = sk->prot->wmalloc(sk, |
skb | 218 | net/inet/raw.c | if (skb == NULL) |
skb | 239 | net/inet/raw.c | skb->sk = sk; |
skb | 240 | net/inet/raw.c | skb->free = 1; |
skb | 241 | net/inet/raw.c | skb->localroute = sk->localroute | (flags&MSG_DONTROUTE); |
skb | 243 | net/inet/raw.c | tmp = sk->prot->build_header(skb, sk->saddr, |
skb | 245 | net/inet/raw.c | sk->protocol, sk->opt, skb->mem_len, sk->ip_tos,sk->ip_ttl); |
skb | 249 | net/inet/raw.c | kfree_skb(skb,FREE_WRITE); |
skb | 254 | net/inet/raw.c | memcpy_fromfs(skb->data + tmp, from, len); |
skb | 266 | net/inet/raw.c | buff = skb->data; |
skb | 273 | net/inet/raw.c | skb->len = tmp + len; |
skb | 275 | net/inet/raw.c | sk->prot->queue_xmit(sk, dev, skb, 1); |
skb | 339 | net/inet/raw.c | struct sk_buff *skb; |
skb | 367 | net/inet/raw.c | skb=skb_recv_datagram(sk,flags,noblock,&err); |
skb | 368 | net/inet/raw.c | if(skb==NULL) |
skb | 371 | net/inet/raw.c | copied = min(len, skb->len); |
skb | 373 | net/inet/raw.c | skb_copy_datagram(skb, 0, to, copied); |
skb | 374 | net/inet/raw.c | sk->stamp=skb->stamp; |
skb | 381 | net/inet/raw.c | addr.sin_addr.s_addr = skb->daddr; |
skb | 385 | net/inet/raw.c | skb_free_datagram(skb); |
skb | 26 | net/inet/raw.h | extern int raw_rcv(struct sk_buff *skb, struct device *dev, |
skb | 48 | net/inet/skbuff.c | int skb_check(struct sk_buff *skb, int head, int line, char *file) |
skb | 51 | net/inet/skbuff.c | if (skb->magic_debug_cookie != SK_HEAD_SKB) { |
skb | 56 | net/inet/skbuff.c | if (!skb->next || !skb->prev) { |
skb | 60 | net/inet/skbuff.c | if (skb->next->magic_debug_cookie != SK_HEAD_SKB |
skb | 61 | net/inet/skbuff.c | && skb->next->magic_debug_cookie != SK_GOOD_SKB) { |
skb | 66 | net/inet/skbuff.c | if (skb->prev->magic_debug_cookie != SK_HEAD_SKB |
skb | 67 | net/inet/skbuff.c | && skb->prev->magic_debug_cookie != SK_GOOD_SKB) { |
skb | 74 | net/inet/skbuff.c | struct sk_buff *skb2 = skb->next; |
skb | 76 | net/inet/skbuff.c | while (skb2 != skb && i < 5) { |
skb | 88 | net/inet/skbuff.c | if (skb->next != NULL && skb->next->magic_debug_cookie != SK_HEAD_SKB |
skb | 89 | net/inet/skbuff.c | && skb->next->magic_debug_cookie != SK_GOOD_SKB) { |
skb | 94 | net/inet/skbuff.c | if (skb->prev != NULL && skb->prev->magic_debug_cookie != SK_HEAD_SKB |
skb | 95 | net/inet/skbuff.c | && skb->prev->magic_debug_cookie != SK_GOOD_SKB) { |
skb | 102 | net/inet/skbuff.c | if(skb->magic_debug_cookie==SK_FREED_SKB) |
skb | 107 | net/inet/skbuff.c | skb,skb->truesize,skb->mem_len,skb->free); |
skb | 110 | net/inet/skbuff.c | if(skb->magic_debug_cookie!=SK_GOOD_SKB) |
skb | 114 | net/inet/skbuff.c | skb,skb->truesize,skb->mem_len,skb->free); |
skb | 117 | net/inet/skbuff.c | if(skb->mem_len!=skb->truesize) |
skb | 121 | net/inet/skbuff.c | skb,skb->truesize,skb->mem_len); |
skb | 293 | net/inet/skbuff.c | void skb_unlink(struct sk_buff *skb) |
skb | 300 | net/inet/skbuff.c | IS_SKB(skb); |
skb | 302 | net/inet/skbuff.c | if(skb->prev && skb->next) |
skb | 304 | net/inet/skbuff.c | skb->next->prev = skb->prev; |
skb | 305 | net/inet/skbuff.c | skb->prev->next = skb->next; |
skb | 306 | net/inet/skbuff.c | skb->next = NULL; |
skb | 307 | net/inet/skbuff.c | skb->prev = NULL; |
skb | 386 | net/inet/skbuff.c | void kfree_skb(struct sk_buff *skb, int rw) |
skb | 388 | net/inet/skbuff.c | if (skb == NULL) |
skb | 393 | net/inet/skbuff.c | IS_SKB(skb); |
skb | 394 | net/inet/skbuff.c | if (skb->lock) |
skb | 396 | net/inet/skbuff.c | skb->free = 1; /* Free when unlocked */ |
skb | 399 | net/inet/skbuff.c | if (skb->free == 2) |
skb | 401 | net/inet/skbuff.c | if (skb->next) |
skb | 403 | net/inet/skbuff.c | if (skb->sk) |
skb | 405 | net/inet/skbuff.c | if(skb->sk->prot!=NULL) |
skb | 408 | net/inet/skbuff.c | skb->sk->prot->rfree(skb->sk, skb->mem_addr, skb->mem_len); |
skb | 410 | net/inet/skbuff.c | skb->sk->prot->wfree(skb->sk, skb->mem_addr, skb->mem_len); |
skb | 417 | net/inet/skbuff.c | skb->sk->rmem_alloc-=skb->mem_len; |
skb | 419 | net/inet/skbuff.c | skb->sk->wmem_alloc-=skb->mem_len; |
skb | 420 | net/inet/skbuff.c | if(!skb->sk->dead) |
skb | 421 | net/inet/skbuff.c | wake_up_interruptible(skb->sk->sleep); |
skb | 422 | net/inet/skbuff.c | kfree_skbmem(skb->mem_addr,skb->mem_len); |
skb | 426 | net/inet/skbuff.c | kfree_skbmem(skb->mem_addr, skb->mem_len); |
skb | 436 | net/inet/skbuff.c | struct sk_buff *skb; |
skb | 448 | net/inet/skbuff.c | skb=(struct sk_buff *)kmalloc(size,priority); |
skb | 449 | net/inet/skbuff.c | if (skb == NULL) |
skb | 452 | net/inet/skbuff.c | skb->free = 2; /* Invalid so we pick up forgetful users */ |
skb | 453 | net/inet/skbuff.c | skb->lock = 0; |
skb | 454 | net/inet/skbuff.c | skb->truesize = size; |
skb | 455 | net/inet/skbuff.c | skb->mem_len = size; |
skb | 456 | net/inet/skbuff.c | skb->mem_addr = skb; |
skb | 457 | net/inet/skbuff.c | skb->fraglist = NULL; |
skb | 458 | net/inet/skbuff.c | skb->prev = skb->next = NULL; |
skb | 459 | net/inet/skbuff.c | skb->link3 = NULL; |
skb | 460 | net/inet/skbuff.c | skb->sk = NULL; |
skb | 461 | net/inet/skbuff.c | skb->stamp.tv_sec=0; /* No idea about time */ |
skb | 465 | net/inet/skbuff.c | skb->magic_debug_cookie = SK_GOOD_SKB; |
skb | 467 | net/inet/skbuff.c | skb->users = 0; |
skb | 468 | net/inet/skbuff.c | return skb; |
skb | 499 | net/inet/skbuff.c | struct sk_buff *skb_clone(struct sk_buff *skb, int priority) |
skb | 504 | net/inet/skbuff.c | n=alloc_skb(skb->mem_len-sizeof(struct sk_buff),priority); |
skb | 508 | net/inet/skbuff.c | offset=((char *)n)-((char *)skb); |
skb | 510 | net/inet/skbuff.c | memcpy(n->data,skb->data,skb->mem_len-sizeof(struct sk_buff)); |
skb | 511 | net/inet/skbuff.c | n->len=skb->len; |
skb | 514 | net/inet/skbuff.c | n->when=skb->when; |
skb | 515 | net/inet/skbuff.c | n->dev=skb->dev; |
skb | 516 | net/inet/skbuff.c | n->h.raw=skb->h.raw+offset; |
skb | 517 | net/inet/skbuff.c | n->ip_hdr=(struct iphdr *)(((char *)skb->ip_hdr)+offset); |
skb | 518 | net/inet/skbuff.c | n->fraglen=skb->fraglen; |
skb | 519 | net/inet/skbuff.c | n->fraglist=skb->fraglist; |
skb | 520 | net/inet/skbuff.c | n->saddr=skb->saddr; |
skb | 521 | net/inet/skbuff.c | n->daddr=skb->daddr; |
skb | 522 | net/inet/skbuff.c | n->raddr=skb->raddr; |
skb | 523 | net/inet/skbuff.c | n->acked=skb->acked; |
skb | 524 | net/inet/skbuff.c | n->used=skb->used; |
skb | 526 | net/inet/skbuff.c | n->arp=skb->arp; |
skb | 538 | net/inet/skbuff.c | void skb_kept_by_device(struct sk_buff *skb) |
skb | 540 | net/inet/skbuff.c | skb->lock++; |
skb | 543 | net/inet/skbuff.c | void skb_device_release(struct sk_buff *skb, int mode) |
skb | 549 | net/inet/skbuff.c | if (!--skb->lock && skb->free == 1) |
skb | 550 | net/inet/skbuff.c | kfree_skb(skb,mode); |
skb | 554 | net/inet/skbuff.c | int skb_device_locked(struct sk_buff *skb) |
skb | 556 | net/inet/skbuff.c | return skb->lock? 1 : 0; |
skb | 136 | net/inet/sock.c | print_skb(struct sk_buff *skb) |
skb | 138 | net/inet/sock.c | if (!skb) { |
skb | 142 | net/inet/sock.c | printk(" prev = %p, next = %p\n", skb->prev, skb->next); |
skb | 143 | net/inet/sock.c | printk(" sk = %p link3 = %p\n", skb->sk, skb->link3); |
skb | 144 | net/inet/sock.c | printk(" mem_addr = %p, mem_len = %lu\n", skb->mem_addr, skb->mem_len); |
skb | 145 | net/inet/sock.c | printk(" used = %d free = %d\n", skb->used,skb->free); |
skb | 307 | net/inet/sock.c | struct sk_buff *skb; |
skb | 321 | net/inet/sock.c | while ((skb = tcp_dequeue_partial(sk)) != NULL) { |
skb | 322 | net/inet/sock.c | IS_SKB(skb); |
skb | 323 | net/inet/sock.c | kfree_skb(skb, FREE_WRITE); |
skb | 327 | net/inet/sock.c | while((skb = skb_dequeue(&sk->write_queue)) != NULL) { |
skb | 328 | net/inet/sock.c | IS_SKB(skb); |
skb | 329 | net/inet/sock.c | kfree_skb(skb, FREE_WRITE); |
skb | 332 | net/inet/sock.c | while((skb=skb_dequeue(&sk->receive_queue))!=NULL) { |
skb | 337 | net/inet/sock.c | if (skb->sk != NULL && skb->sk != sk) |
skb | 339 | net/inet/sock.c | IS_SKB(skb); |
skb | 340 | net/inet/sock.c | skb->sk->dead = 1; |
skb | 341 | net/inet/sock.c | skb->sk->prot->close(skb->sk, 0); |
skb | 343 | net/inet/sock.c | IS_SKB(skb); |
skb | 344 | net/inet/sock.c | kfree_skb(skb, FREE_READ); |
skb | 349 | net/inet/sock.c | for(skb = sk->send_head; skb != NULL; ) |
skb | 357 | net/inet/sock.c | if (skb->next && skb->prev) { |
skb | 359 | net/inet/sock.c | IS_SKB(skb); |
skb | 360 | net/inet/sock.c | skb_unlink(skb); |
skb | 362 | net/inet/sock.c | skb->dev = NULL; |
skb | 363 | net/inet/sock.c | skb2 = skb->link3; |
skb | 364 | net/inet/sock.c | kfree_skb(skb, FREE_WRITE); |
skb | 365 | net/inet/sock.c | skb = skb2; |
skb | 371 | net/inet/sock.c | while((skb=skb_dequeue(&sk->back_log))!=NULL) { |
skb | 374 | net/inet/sock.c | kfree_skb(skb, FREE_READ); |
skb | 1669 | net/inet/sock.c | struct sk_buff *skb; |
skb | 1678 | net/inet/sock.c | while((skb = skb_dequeue(&sk->back_log)) != NULL) { |
skb | 1680 | net/inet/sock.c | DPRINTF((DBG_INET, "release_sock: skb = %X:\n", skb)); |
skb | 1681 | net/inet/sock.c | if (sk->prot->rcv) sk->prot->rcv(skb, skb->dev, sk->opt, |
skb | 1682 | net/inet/sock.c | skb->saddr, skb->len, skb->daddr, 1, |
skb | 200 | net/inet/sock.h | int (*build_header)(struct sk_buff *skb, |
skb | 209 | net/inet/sock.h | struct device *dev, struct sk_buff *skb, |
skb | 290 | net/inet/tcp.c | struct sk_buff *skb; |
skb | 300 | net/inet/tcp.c | if (sk == NULL || (skb = skb_peek(&sk->receive_queue)) == NULL) |
skb | 313 | net/inet/tcp.c | if (before(counted, skb->h.th->seq)) /* Found a hole so stops here */ |
skb | 315 | net/inet/tcp.c | sum = skb->len -(counted - skb->h.th->seq); /* Length - header but start from where we are up to (avoid overlaps) */ |
skb | 316 | net/inet/tcp.c | if (skb->h.th->syn) |
skb | 320 | net/inet/tcp.c | if (skb->h.th->syn) amount--; |
skb | 323 | net/inet/tcp.c | if (amount && skb->h.th->psh) break; |
skb | 324 | net/inet/tcp.c | skb = skb->next; |
skb | 325 | net/inet/tcp.c | } while(skb != (struct sk_buff *)&sk->receive_queue); |
skb | 559 | net/inet/tcp.c | static void tcp_send_skb(struct sock *sk, struct sk_buff *skb) |
skb | 562 | net/inet/tcp.c | struct tcphdr * th = skb->h.th; |
skb | 565 | net/inet/tcp.c | size = skb->len - ((unsigned char *) th - skb->data); |
skb | 568 | net/inet/tcp.c | if (size < sizeof(struct tcphdr) || size > skb->len) { |
skb | 570 | net/inet/tcp.c | skb, skb->data, th, skb->len); |
skb | 571 | net/inet/tcp.c | kfree_skb(skb, FREE_WRITE); |
skb | 580 | net/inet/tcp.c | kfree_skb(skb,FREE_WRITE); |
skb | 589 | net/inet/tcp.c | skb->h.seq = ntohl(th->seq) + size - 4*th->doff; |
skb | 590 | net/inet/tcp.c | if (after(skb->h.seq, sk->window_seq) || |
skb | 597 | net/inet/tcp.c | if (skb->next != NULL) { |
skb | 599 | net/inet/tcp.c | skb_unlink(skb); |
skb | 601 | net/inet/tcp.c | skb_queue_tail(&sk->write_queue, skb); |
skb | 608 | net/inet/tcp.c | sk->prot->queue_xmit(sk, skb->dev, skb, 0); |
skb | 614 | net/inet/tcp.c | struct sk_buff * skb; |
skb | 619 | net/inet/tcp.c | skb = sk->partial; |
skb | 620 | net/inet/tcp.c | if (skb) { |
skb | 625 | net/inet/tcp.c | return skb; |
skb | 630 | net/inet/tcp.c | struct sk_buff *skb; |
skb | 634 | net/inet/tcp.c | while ((skb = tcp_dequeue_partial(sk)) != NULL) |
skb | 635 | net/inet/tcp.c | tcp_send_skb(sk, skb); |
skb | 638 | net/inet/tcp.c | void tcp_enqueue_partial(struct sk_buff * skb, struct sock * sk) |
skb | 648 | net/inet/tcp.c | sk->partial = skb; |
skb | 785 | net/inet/tcp.c | struct sk_buff *skb; |
skb | 905 | net/inet/tcp.c | if ((skb = tcp_dequeue_partial(sk)) != NULL) |
skb | 910 | net/inet/tcp.c | hdrlen = ((unsigned long)skb->h.th - (unsigned long)skb->data) |
skb | 916 | net/inet/tcp.c | copy = min(sk->mss - (skb->len - hdrlen), len); |
skb | 924 | net/inet/tcp.c | memcpy_fromfs(skb->data + skb->len, from, copy); |
skb | 925 | net/inet/tcp.c | skb->len += copy; |
skb | 931 | net/inet/tcp.c | if ((skb->len - hdrlen) >= sk->mss || |
skb | 933 | net/inet/tcp.c | tcp_send_skb(sk, skb); |
skb | 935 | net/inet/tcp.c | tcp_enqueue_partial(skb, sk); |
skb | 972 | net/inet/tcp.c | skb = prot->wmalloc(sk, sk->mtu + 128 + prot->max_header, 0, GFP_KERNEL); |
skb | 974 | net/inet/tcp.c | send_tmp = skb; |
skb | 982 | net/inet/tcp.c | skb = prot->wmalloc(sk, copy + prot->max_header , 0, GFP_KERNEL); |
skb | 990 | net/inet/tcp.c | if (skb == NULL) |
skb | 1030 | net/inet/tcp.c | skb->len = 0; |
skb | 1031 | net/inet/tcp.c | skb->sk = sk; |
skb | 1032 | net/inet/tcp.c | skb->free = 0; |
skb | 1033 | net/inet/tcp.c | skb->localroute = sk->localroute|(flags&MSG_DONTROUTE); |
skb | 1035 | net/inet/tcp.c | buff = skb->data; |
skb | 1042 | net/inet/tcp.c | tmp = prot->build_header(skb, sk->saddr, sk->daddr, &dev, |
skb | 1043 | net/inet/tcp.c | IPPROTO_TCP, sk->opt, skb->mem_len,sk->ip_tos,sk->ip_ttl); |
skb | 1046 | net/inet/tcp.c | prot->wfree(sk, skb->mem_addr, skb->mem_len); |
skb | 1053 | net/inet/tcp.c | skb->len += tmp; |
skb | 1054 | net/inet/tcp.c | skb->dev = dev; |
skb | 1056 | net/inet/tcp.c | skb->h.th =(struct tcphdr *) buff; |
skb | 1060 | net/inet/tcp.c | prot->wfree(sk, skb->mem_addr, skb->mem_len); |
skb | 1073 | net/inet/tcp.c | skb->len += tmp; |
skb | 1079 | net/inet/tcp.c | skb->len += copy; |
skb | 1080 | net/inet/tcp.c | skb->free = 0; |
skb | 1088 | net/inet/tcp.c | tcp_send_skb(sk, skb); |
skb | 1219 | net/inet/tcp.c | struct sk_buff *skb; |
skb | 1234 | net/inet/tcp.c | while((skb=skb_peek(&sk->receive_queue)) != NULL) |
skb | 1236 | net/inet/tcp.c | if (!skb->used) |
skb | 1238 | net/inet/tcp.c | skb_unlink(skb); |
skb | 1239 | net/inet/tcp.c | skb->sk = sk; |
skb | 1240 | net/inet/tcp.c | kfree_skb(skb, FREE_READ); |
skb | 1392 | net/inet/tcp.c | struct sk_buff * skb; |
skb | 1403 | net/inet/tcp.c | skb = skb_peek(&sk->receive_queue); |
skb | 1405 | net/inet/tcp.c | if (!skb) |
skb | 1407 | net/inet/tcp.c | if (before(1+*seq, skb->h.th->seq)) |
skb | 1409 | net/inet/tcp.c | offset = 1 + *seq - skb->h.th->seq; |
skb | 1410 | net/inet/tcp.c | if (skb->h.th->syn) |
skb | 1412 | net/inet/tcp.c | if (offset < skb->len) |
skb | 1415 | net/inet/tcp.c | skb->used = 1; |
skb | 1416 | net/inet/tcp.c | skb = skb->next; |
skb | 1417 | net/inet/tcp.c | } while (skb != (struct sk_buff *)&sk->receive_queue); |
skb | 1460 | net/inet/tcp.c | used = skb->len - offset; |
skb | 1478 | net/inet/tcp.c | memcpy_tofs(to,((unsigned char *)skb->h.th) + |
skb | 1479 | net/inet/tcp.c | skb->h.th->doff*4 + offset, used); |
skb | 1486 | net/inet/tcp.c | if (!(flags & MSG_PEEK) && (used + offset >= skb->len)) |
skb | 1487 | net/inet/tcp.c | skb->used = 1; |
skb | 1811 | net/inet/tcp.c | tcp_conn_request(struct sock *sk, struct sk_buff *skb, |
skb | 1825 | net/inet/tcp.c | sk, skb, daddr, saddr, opt, dev)); |
skb | 1827 | net/inet/tcp.c | th = skb->h.th; |
skb | 1836 | net/inet/tcp.c | kfree_skb(skb, FREE_READ); |
skb | 1846 | net/inet/tcp.c | kfree_skb(skb, FREE_READ); |
skb | 1861 | net/inet/tcp.c | kfree_skb(skb, FREE_READ); |
skb | 1895 | net/inet/tcp.c | newsk->acked_seq = skb->h.th->seq+1; |
skb | 1896 | net/inet/tcp.c | newsk->fin_seq = skb->h.th->seq; |
skb | 1897 | net/inet/tcp.c | newsk->copied_seq = skb->h.th->seq; |
skb | 1908 | net/inet/tcp.c | newsk->dummy_th.source = skb->h.th->dest; |
skb | 1909 | net/inet/tcp.c | newsk->dummy_th.dest = skb->h.th->source; |
skb | 1925 | net/inet/tcp.c | newsk->acked_seq = skb->h.th->seq + 1; |
skb | 1926 | net/inet/tcp.c | newsk->copied_seq = skb->h.th->seq; |
skb | 1930 | net/inet/tcp.c | newsk->ip_tos=skb->ip_hdr->tos; |
skb | 1950 | net/inet/tcp.c | tcp_options(newsk,skb->h.th); |
skb | 1957 | net/inet/tcp.c | kfree_skb(skb, FREE_READ); |
skb | 1979 | net/inet/tcp.c | skb->sk = sk; |
skb | 1980 | net/inet/tcp.c | kfree_skb(skb, FREE_READ); |
skb | 1988 | net/inet/tcp.c | memcpy(t1, skb->h.th, sizeof(*t1)); |
skb | 1992 | net/inet/tcp.c | t1->dest = skb->h.th->source; |
skb | 2005 | net/inet/tcp.c | t1->ack_seq = ntohl(skb->h.th->seq+1); |
skb | 2018 | net/inet/tcp.c | skb->sk = newsk; |
skb | 2021 | net/inet/tcp.c | sk->rmem_alloc -= skb->mem_len; |
skb | 2022 | net/inet/tcp.c | newsk->rmem_alloc += skb->mem_len; |
skb | 2024 | net/inet/tcp.c | skb_queue_tail(&sk->receive_queue,skb); |
skb | 2058 | net/inet/tcp.c | struct sk_buff *skb; |
skb | 2061 | net/inet/tcp.c | while((skb=skb_dequeue(&sk->receive_queue))!=NULL) |
skb | 2063 | net/inet/tcp.c | if(skb->len > 0 && after(skb->h.th->seq + skb->len + 1 , sk->copied_seq)) |
skb | 2065 | net/inet/tcp.c | kfree_skb(skb, FREE_READ); |
skb | 2215 | net/inet/tcp.c | struct sk_buff *skb; |
skb | 2224 | net/inet/tcp.c | while((skb = skb_peek(&sk->write_queue)) != NULL && |
skb | 2225 | net/inet/tcp.c | before(skb->h.seq, sk->window_seq + 1) && |
skb | 2228 | net/inet/tcp.c | before(skb->h.seq, sk->rcv_ack_seq + 1)) |
skb | 2230 | net/inet/tcp.c | IS_SKB(skb); |
skb | 2231 | net/inet/tcp.c | skb_unlink(skb); |
skb | 2235 | net/inet/tcp.c | if (before(skb->h.seq, sk->rcv_ack_seq +1)) { |
skb | 2237 | net/inet/tcp.c | kfree_skb(skb, FREE_WRITE); |
skb | 2240 | net/inet/tcp.c | sk->sent_seq = skb->h.seq; |
skb | 2241 | net/inet/tcp.c | sk->prot->queue_xmit(sk, skb->dev, skb, skb->free); |
skb | 2255 | net/inet/tcp.c | struct sk_buff *skb,*skb2,*skb3; |
skb | 2257 | net/inet/tcp.c | for (skb = sk->send_head; skb != NULL; skb = skb2) { |
skb | 2258 | net/inet/tcp.c | skb2 = skb->link3; |
skb | 2260 | net/inet/tcp.c | skb->link3 = list; |
skb | 2261 | net/inet/tcp.c | sk->send_tail = skb; |
skb | 2262 | net/inet/tcp.c | list = skb; |
skb | 2266 | net/inet/tcp.c | before(skb->h.seq, skb3->link3->h.seq)) { |
skb | 2267 | net/inet/tcp.c | skb->link3 = skb3->link3; |
skb | 2268 | net/inet/tcp.c | skb3->link3 = skb; |
skb | 2269 | net/inet/tcp.c | if (skb->link3 == NULL) sk->send_tail = skb; |
skb | 2331 | net/inet/tcp.c | struct sk_buff *skb; |
skb | 2344 | net/inet/tcp.c | skb = skb2; |
skb | 2345 | net/inet/tcp.c | skb2 = skb->link3; |
skb | 2346 | net/inet/tcp.c | skb->link3 = NULL; |
skb | 2347 | net/inet/tcp.c | if (after(skb->h.seq, sk->window_seq)) { |
skb | 2350 | net/inet/tcp.c | if (skb->next != NULL) { |
skb | 2351 | net/inet/tcp.c | skb_unlink(skb); |
skb | 2355 | net/inet/tcp.c | skb_queue_head(&sk->write_queue,skb); |
skb | 2357 | net/inet/tcp.c | skb_append(wskb,skb); |
skb | 2358 | net/inet/tcp.c | wskb = skb; |
skb | 2361 | net/inet/tcp.c | sk->send_head = skb; |
skb | 2362 | net/inet/tcp.c | sk->send_tail = skb; |
skb | 2364 | net/inet/tcp.c | sk->send_tail->link3 = skb; |
skb | 2365 | net/inet/tcp.c | sk->send_tail = skb; |
skb | 2367 | net/inet/tcp.c | skb->link3 = NULL; |
skb | 2651 | net/inet/tcp.c | tcp_data(struct sk_buff *skb, struct sock *sk, |
skb | 2658 | net/inet/tcp.c | th = skb->h.th; |
skb | 2660 | net/inet/tcp.c | skb->len = len -(th->doff*4); |
skb | 2662 | net/inet/tcp.c | DPRINTF((DBG_TCP, "tcp_data len = %d sk = %X:\n", skb->len, sk)); |
skb | 2664 | net/inet/tcp.c | sk->bytes_rcv += skb->len; |
skb | 2665 | net/inet/tcp.c | if (skb->len == 0 && !th->fin && !th->urg && !th->psh) { |
skb | 2668 | net/inet/tcp.c | kfree_skb(skb, FREE_READ); |
skb | 2673 | net/inet/tcp.c | sk->acked_seq = th->seq + skb->len + th->syn + th->fin; |
skb | 2674 | net/inet/tcp.c | tcp_reset(sk->saddr, sk->daddr, skb->h.th, |
skb | 2675 | net/inet/tcp.c | sk->prot, NULL, skb->dev, sk->ip_tos, sk->ip_ttl); |
skb | 2681 | net/inet/tcp.c | kfree_skb(skb, FREE_READ); |
skb | 2696 | net/inet/tcp.c | DPRINTF((DBG_TCP, "tcp_data: skb = %X:\n", skb)); |
skb | 2697 | net/inet/tcp.c | skb_queue_head(&sk->receive_queue,skb); |
skb | 2706 | net/inet/tcp.c | printk("skb->h.th->seq = %ld\n",skb->h.th->seq); |
skb | 2710 | net/inet/tcp.c | if (th->seq==skb1->h.th->seq && skb->len>= skb1->len) |
skb | 2712 | net/inet/tcp.c | skb_append(skb1,skb); |
skb | 2721 | net/inet/tcp.c | skb_append(skb1,skb); |
skb | 2726 | net/inet/tcp.c | skb_queue_head(&sk->receive_queue, skb); |
skb | 2730 | net/inet/tcp.c | DPRINTF((DBG_TCP, "skb = %X:\n", skb)); |
skb | 2733 | net/inet/tcp.c | th->ack_seq = th->seq + skb->len; |
skb | 2755 | net/inet/tcp.c | skb->acked = 1; |
skb | 2758 | net/inet/tcp.c | if (skb->h.th->fin) { |
skb | 2763 | net/inet/tcp.c | for(skb2 = skb->next; |
skb | 2815 | net/inet/tcp.c | if (!skb->acked) { |
skb | 2980 | net/inet/tcp.c | struct sk_buff *skb; |
skb | 2997 | net/inet/tcp.c | while((skb = skb_dequeue(&sk->receive_queue)) == NULL) { |
skb | 3017 | net/inet/tcp.c | newsk = skb->sk; |
skb | 3019 | net/inet/tcp.c | kfree_skb(skb, FREE_READ); |
skb | 3244 | net/inet/tcp.c | tcp_rcv(struct sk_buff *skb, struct device *dev, struct options *opt, |
skb | 3251 | net/inet/tcp.c | if (!skb) { |
skb | 3264 | net/inet/tcp.c | th = skb->h.th; |
skb | 3269 | net/inet/tcp.c | DPRINTF((DBG_TCP, "len = %d, redo = %d, skb=%X\n", len, redo, skb)); |
skb | 3282 | net/inet/tcp.c | skb->sk = NULL; |
skb | 3285 | net/inet/tcp.c | kfree_skb(skb,FREE_READ); |
skb | 3298 | net/inet/tcp.c | tcp_reset(daddr, saddr, th, &tcp_prot, opt,dev,skb->ip_hdr->tos,255); |
skb | 3299 | net/inet/tcp.c | skb->sk = NULL; |
skb | 3300 | net/inet/tcp.c | kfree_skb(skb, FREE_READ); |
skb | 3304 | net/inet/tcp.c | skb->len = len; |
skb | 3305 | net/inet/tcp.c | skb->sk = sk; |
skb | 3306 | net/inet/tcp.c | skb->acked = 0; |
skb | 3307 | net/inet/tcp.c | skb->used = 0; |
skb | 3308 | net/inet/tcp.c | skb->free = 0; |
skb | 3309 | net/inet/tcp.c | skb->saddr = daddr; |
skb | 3310 | net/inet/tcp.c | skb->daddr = saddr; |
skb | 3315 | net/inet/tcp.c | skb_queue_head(&sk->back_log, skb); |
skb | 3334 | net/inet/tcp.c | if (sk->rmem_alloc + skb->mem_len >= sk->rcvbuf) { |
skb | 3335 | net/inet/tcp.c | skb->sk = NULL; |
skb | 3337 | net/inet/tcp.c | kfree_skb(skb, FREE_READ); |
skb | 3341 | net/inet/tcp.c | sk->rmem_alloc += skb->mem_len; |
skb | 3360 | net/inet/tcp.c | kfree_skb(skb, FREE_READ); |
skb | 3373 | net/inet/tcp.c | kfree_skb(skb, FREE_READ); |
skb | 3401 | net/inet/tcp.c | kfree_skb(skb, FREE_READ); |
skb | 3416 | net/inet/tcp.c | kfree_skb(skb, FREE_READ); |
skb | 3422 | net/inet/tcp.c | kfree_skb(skb, FREE_READ); |
skb | 3428 | net/inet/tcp.c | kfree_skb(skb, FREE_READ); |
skb | 3433 | net/inet/tcp.c | if (tcp_data(skb, sk, saddr, len)) { |
skb | 3434 | net/inet/tcp.c | kfree_skb(skb, FREE_READ); |
skb | 3441 | net/inet/tcp.c | kfree_skb(skb, FREE_READ); |
skb | 3452 | net/inet/tcp.c | kfree_skb(skb, FREE_READ); |
skb | 3462 | net/inet/tcp.c | kfree_skb(skb, FREE_READ); |
skb | 3468 | net/inet/tcp.c | kfree_skb(skb, FREE_READ); |
skb | 3474 | net/inet/tcp.c | kfree_skb(skb, FREE_READ); |
skb | 3487 | net/inet/tcp.c | tcp_conn_request(sk, skb, daddr, saddr, opt, dev); |
skb | 3492 | net/inet/tcp.c | kfree_skb(skb, FREE_READ); |
skb | 3499 | net/inet/tcp.c | kfree_skb(skb, FREE_READ); |
skb | 3508 | net/inet/tcp.c | kfree_skb(skb, FREE_READ); |
skb | 3525 | net/inet/tcp.c | kfree_skb(skb, FREE_READ); |
skb | 3536 | net/inet/tcp.c | kfree_skb(skb, FREE_READ); |
skb | 3549 | net/inet/tcp.c | kfree_skb(skb, FREE_READ); |
skb | 3560 | net/inet/tcp.c | kfree_skb(skb, FREE_READ); |
skb | 3577 | net/inet/tcp.c | kfree_skb(skb, FREE_READ); |
skb | 3617 | net/inet/tcp.c | kfree_skb(skb, FREE_READ); |
skb | 3622 | net/inet/tcp.c | if (tcp_data(skb, sk, saddr, len)) |
skb | 3623 | net/inet/tcp.c | kfree_skb(skb, FREE_READ); |
skb | 3632 | net/inet/tcp.c | kfree_skb(skb, FREE_READ); |
skb | 3638 | net/inet/tcp.c | if (tcp_data(skb, sk, saddr, len)) { |
skb | 3639 | net/inet/tcp.c | kfree_skb(skb, FREE_READ); |
skb | 119 | net/inet/tcp.h | extern int tcp_rcv(struct sk_buff *skb, struct device *dev, |
skb | 168 | net/inet/timer.c | struct sk_buff *skb; |
skb | 173 | net/inet/timer.c | skb = sk->send_head; |
skb | 174 | net/inet/timer.c | if (!skb) { |
skb | 177 | net/inet/timer.c | if (jiffies < skb->when + sk->rto) { |
skb | 178 | net/inet/timer.c | reset_timer (sk, TIME_WRITE, skb->when + sk->rto - jiffies); |
skb | 255 | net/inet/udp.c | struct sk_buff *skb; |
skb | 276 | net/inet/udp.c | skb = sk->prot->wmalloc(sk, size, 0, GFP_KERNEL); |
skb | 279 | net/inet/udp.c | if (skb == NULL) |
skb | 282 | net/inet/udp.c | skb->sk = NULL; /* to avoid changing sk->saddr */ |
skb | 283 | net/inet/udp.c | skb->free = 1; |
skb | 284 | net/inet/udp.c | skb->localroute = sk->localroute|(rt&MSG_DONTROUTE); |
skb | 290 | net/inet/udp.c | buff = skb->data; |
skb | 294 | net/inet/udp.c | saddr, sin->sin_addr.s_addr, dev, IPPROTO_UDP, skb->mem_len)); |
skb | 295 | net/inet/udp.c | tmp = sk->prot->build_header(skb, saddr, sin->sin_addr.s_addr, |
skb | 296 | net/inet/udp.c | &dev, IPPROTO_UDP, sk->opt, skb->mem_len,sk->ip_tos,sk->ip_ttl); |
skb | 297 | net/inet/udp.c | skb->sk=sk; /* So memory is freed correctly */ |
skb | 305 | net/inet/udp.c | sk->prot->wfree(sk, skb->mem_addr, skb->mem_len); |
skb | 310 | net/inet/udp.c | saddr = skb->saddr; /*dev->pa_addr;*/ |
skb | 313 | net/inet/udp.c | skb->len = tmp + sizeof(struct udphdr) + len; /* len + UDP + IP + MAC */ |
skb | 314 | net/inet/udp.c | skb->dev = dev; |
skb | 336 | net/inet/udp.c | udp_send_check(uh, saddr, sin->sin_addr.s_addr, skb->len - tmp, sk); |
skb | 344 | net/inet/udp.c | sk->prot->queue_xmit(sk, dev, skb, 1); |
skb | 468 | net/inet/udp.c | struct sk_buff *skb; |
skb | 473 | net/inet/udp.c | skb = skb_peek(&sk->receive_queue); |
skb | 474 | net/inet/udp.c | if (skb != NULL) { |
skb | 480 | net/inet/udp.c | amount = skb->len; |
skb | 507 | net/inet/udp.c | struct sk_buff *skb; |
skb | 562 | net/inet/udp.c | skb=skb_recv_datagram(sk,flags,noblock,&er); |
skb | 563 | net/inet/udp.c | if(skb==NULL) |
skb | 566 | net/inet/udp.c | copied = min(len, skb->len); |
skb | 572 | net/inet/udp.c | skb_copy_datagram(skb,sizeof(struct udphdr),to,copied); |
skb | 573 | net/inet/udp.c | sk->stamp=skb->stamp; |
skb | 581 | net/inet/udp.c | addr.sin_port = skb->h.uh->source; |
skb | 582 | net/inet/udp.c | addr.sin_addr.s_addr = skb->daddr; |
skb | 586 | net/inet/udp.c | skb_free_datagram(skb); |
skb | 645 | net/inet/udp.c | int udp_rcv(struct sk_buff *skb, struct device *dev, struct options *opt, |
skb | 655 | net/inet/udp.c | uh = (struct udphdr *) skb->h.uh; |
skb | 666 | net/inet/udp.c | icmp_send(skb, ICMP_DEST_UNREACH, ICMP_PORT_UNREACH, dev); |
skb | 672 | net/inet/udp.c | skb->sk = NULL; |
skb | 673 | net/inet/udp.c | kfree_skb(skb, FREE_WRITE); |
skb | 682 | net/inet/udp.c | kfree_skb(skb, FREE_WRITE); |
skb | 686 | net/inet/udp.c | skb->sk = sk; |
skb | 687 | net/inet/udp.c | skb->dev = dev; |
skb | 688 | net/inet/udp.c | skb->len = len; |
skb | 694 | net/inet/udp.c | skb->daddr = saddr; |
skb | 695 | net/inet/udp.c | skb->saddr = daddr; |
skb | 702 | net/inet/udp.c | if (sk->rmem_alloc + skb->mem_len >= sk->rcvbuf) |
skb | 707 | net/inet/udp.c | skb->sk = NULL; |
skb | 708 | net/inet/udp.c | kfree_skb(skb, FREE_WRITE); |
skb | 712 | net/inet/udp.c | sk->rmem_alloc += skb->mem_len; |
skb | 726 | net/inet/udp.c | skb->len = len - sizeof(*uh); |
skb | 727 | net/inet/udp.c | skb_queue_tail(&sk->receive_queue,skb); |
skb | 731 | net/inet/udp.c | sk->data_ready(sk,skb->len); |
skb | 43 | net/inet/udp.h | extern int udp_rcv(struct sk_buff *skb, struct device *dev, |