tag | line | file | source code |
skb | 65 | drivers/net/3c501.c | static int el_start_xmit(struct sk_buff *skb, struct device *dev); |
skb | 268 | drivers/net/3c501.c | el_start_xmit(struct sk_buff *skb, struct device *dev) |
skb | 293 | drivers/net/3c501.c | if (skb == NULL) { |
skb | 299 | drivers/net/3c501.c | if (!skb->arp && dev->rebuild_header(skb+1, dev)) { |
skb | 300 | drivers/net/3c501.c | skb->dev = dev; |
skb | 301 | drivers/net/3c501.c | arp_queue (skb); |
skb | 304 | drivers/net/3c501.c | skb->arp=1; |
skb | 306 | drivers/net/3c501.c | if (skb->len <= 0) |
skb | 310 | drivers/net/3c501.c | printk("%s: el_start_xmit(%d)...", dev->name, skb->len); |
skb | 316 | drivers/net/3c501.c | int gp_start = 0x800 - (ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN); |
skb | 317 | drivers/net/3c501.c | unsigned char *buf = (void *)(skb+1); |
skb | 327 | drivers/net/3c501.c | port_write_b(DATAPORT,buf,skb->len); |
skb | 335 | drivers/net/3c501.c | if (skb->free) |
skb | 336 | drivers/net/3c501.c | kfree_skb (skb, FREE_WRITE); |
skb | 442 | drivers/net/3c501.c | struct sk_buff *skb; |
skb | 458 | drivers/net/3c501.c | skb = alloc_skb(sksize, GFP_ATOMIC); |
skb | 460 | drivers/net/3c501.c | if (skb == NULL) { |
skb | 465 | drivers/net/3c501.c | skb->mem_len = sksize; |
skb | 466 | drivers/net/3c501.c | skb->mem_addr = skb; |
skb | 467 | drivers/net/3c501.c | skb->len = pkt_len; |
skb | 468 | drivers/net/3c501.c | skb->dev = dev; |
skb | 470 | drivers/net/3c501.c | port_read_b(DATAPORT, (void *)(skb+1), pkt_len); |
skb | 473 | drivers/net/3c501.c | netif_rx(skb); |
skb | 475 | drivers/net/3c501.c | skb->lock = 0; |
skb | 476 | drivers/net/3c501.c | if (dev_rint((unsigned char*)skb, pkt_len, IN_SKBUFF, dev) != 0) { |
skb | 477 | drivers/net/3c501.c | kfree_skbmem(skb, sksize); |
skb | 263 | drivers/net/3c507.c | static int el16_send_packet(struct sk_buff *skb, struct device *dev); |
skb | 446 | drivers/net/3c507.c | el16_send_packet(struct sk_buff *skb, struct device *dev) |
skb | 481 | drivers/net/3c507.c | if (skb == NULL) { |
skb | 488 | drivers/net/3c507.c | if (!skb->arp && dev->rebuild_header(skb+1, dev)) { |
skb | 489 | drivers/net/3c507.c | skb->dev = dev; |
skb | 490 | drivers/net/3c507.c | arp_queue (skb); |
skb | 493 | drivers/net/3c507.c | skb->arp=1; |
skb | 499 | drivers/net/3c507.c | short length = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN; |
skb | 500 | drivers/net/3c507.c | unsigned char *buf = (void *)(skb+1); |
skb | 510 | drivers/net/3c507.c | if (skb->free) |
skb | 511 | drivers/net/3c507.c | kfree_skb (skb, FREE_WRITE); |
skb | 844 | drivers/net/3c507.c | struct sk_buff *skb; |
skb | 848 | drivers/net/3c507.c | skb = alloc_skb(sksize, GFP_ATOMIC); |
skb | 849 | drivers/net/3c507.c | if (skb == NULL) { |
skb | 854 | drivers/net/3c507.c | skb->mem_len = sksize; |
skb | 855 | drivers/net/3c507.c | skb->mem_addr = skb; |
skb | 856 | drivers/net/3c507.c | skb->len = pkt_len; |
skb | 857 | drivers/net/3c507.c | skb->dev = dev; |
skb | 860 | drivers/net/3c507.c | memcpy((unsigned char *) (skb + 1), data_frame + 5, pkt_len); |
skb | 863 | drivers/net/3c507.c | netif_rx(skb); |
skb | 865 | drivers/net/3c507.c | skb->lock = 0; |
skb | 866 | drivers/net/3c507.c | if (dev_rint((unsigned char*)skb, pkt_len, IN_SKBUFF, dev) != 0) { |
skb | 867 | drivers/net/3c507.c | kfree_skbmem(skb, sksize); |
skb | 86 | drivers/net/3c509.c | static int el3_start_xmit(struct sk_buff *skb, struct device *dev); |
skb | 355 | drivers/net/3c509.c | el3_start_xmit(struct sk_buff *skb, struct device *dev) |
skb | 374 | drivers/net/3c509.c | if (skb == NULL) { |
skb | 380 | drivers/net/3c509.c | if (!skb->arp && dev->rebuild_header(skb+1, dev)) { |
skb | 381 | drivers/net/3c509.c | skb->dev = dev; |
skb | 382 | drivers/net/3c509.c | arp_queue (skb); |
skb | 385 | drivers/net/3c509.c | skb->arp=1; |
skb | 387 | drivers/net/3c509.c | if (skb->len <= 0) |
skb | 392 | drivers/net/3c509.c | dev->name, skb->len, inw(ioaddr + EL3_STATUS)); |
skb | 415 | drivers/net/3c509.c | outw(skb->len, ioaddr + TX_FIFO); |
skb | 418 | drivers/net/3c509.c | port_write_l(ioaddr + TX_FIFO, (void *)(skb+1), (skb->len + 3) >> 2); |
skb | 428 | drivers/net/3c509.c | if (skb->free) |
skb | 429 | drivers/net/3c509.c | kfree_skb (skb, FREE_WRITE); |
skb | 578 | drivers/net/3c509.c | struct sk_buff *skb; |
skb | 580 | drivers/net/3c509.c | skb = alloc_skb(sksize, GFP_ATOMIC); |
skb | 584 | drivers/net/3c509.c | if (skb != NULL) { |
skb | 585 | drivers/net/3c509.c | skb->mem_len = sksize; |
skb | 586 | drivers/net/3c509.c | skb->mem_addr = skb; |
skb | 587 | drivers/net/3c509.c | skb->len = pkt_len; |
skb | 588 | drivers/net/3c509.c | skb->dev = dev; |
skb | 591 | drivers/net/3c509.c | port_read_l(ioaddr+RX_FIFO, (void *)(skb+1), |
skb | 595 | drivers/net/3c509.c | netif_rx(skb); |
skb | 599 | drivers/net/3c509.c | skb->lock = 0; |
skb | 600 | drivers/net/3c509.c | if (dev_rint((unsigned char *)skb, pkt_len, |
skb | 615 | drivers/net/3c509.c | kfree_s(skb, sksize); |
skb | 127 | drivers/net/8390.c | static int ei_start_xmit(struct sk_buff *skb, struct device *dev) |
skb | 159 | drivers/net/8390.c | if (skb == NULL) { |
skb | 164 | drivers/net/8390.c | if (!skb->arp && dev->rebuild_header(skb+1, dev)) { |
skb | 165 | drivers/net/8390.c | skb->dev = dev; |
skb | 166 | drivers/net/8390.c | arp_queue (skb); |
skb | 169 | drivers/net/8390.c | skb->arp=1; |
skb | 171 | drivers/net/8390.c | if (skb->len <= 0) |
skb | 173 | drivers/net/8390.c | length = skb->len; |
skb | 223 | drivers/net/8390.c | ei_block_output(dev, length, (unsigned char *)(skb+1), output_page); |
skb | 237 | drivers/net/8390.c | ei_block_output(dev, length, (unsigned char *)(skb+1), |
skb | 243 | drivers/net/8390.c | if (skb->free) |
skb | 244 | drivers/net/8390.c | kfree_skb (skb, FREE_WRITE); |
skb | 484 | drivers/net/8390.c | struct sk_buff *skb; |
skb | 486 | drivers/net/8390.c | skb = alloc_skb(sksize, GFP_ATOMIC); |
skb | 487 | drivers/net/8390.c | if (skb == NULL) { |
skb | 494 | drivers/net/8390.c | skb->mem_len = sksize; |
skb | 495 | drivers/net/8390.c | skb->mem_addr = skb; |
skb | 496 | drivers/net/8390.c | skb->len = pkt_len; |
skb | 497 | drivers/net/8390.c | skb->dev = dev; |
skb | 500 | drivers/net/8390.c | ei_block_input(dev, pkt_len, (char *)(skb+1), |
skb | 503 | drivers/net/8390.c | netif_rx(skb); |
skb | 505 | drivers/net/8390.c | skb->lock = 0; |
skb | 506 | drivers/net/8390.c | if (dev_rint((unsigned char*)skb, pkt_len, IN_SKBUFF, dev)) { |
skb | 507 | drivers/net/8390.c | kfree_skbmem(skb, sksize); |
skb | 117 | drivers/net/at1700.c | static int net_send_packet(struct sk_buff *skb, struct device *dev); |
skb | 368 | drivers/net/at1700.c | net_send_packet(struct sk_buff *skb, struct device *dev) |
skb | 399 | drivers/net/at1700.c | if (skb == NULL) { |
skb | 406 | drivers/net/at1700.c | if (!skb->arp && dev->rebuild_header(skb+1, dev)) { |
skb | 407 | drivers/net/at1700.c | skb->dev = dev; |
skb | 408 | drivers/net/at1700.c | arp_queue (skb); |
skb | 411 | drivers/net/at1700.c | skb->arp=1; |
skb | 418 | drivers/net/at1700.c | short length = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN; |
skb | 419 | drivers/net/at1700.c | unsigned char *buf = (void *)(skb+1); |
skb | 423 | drivers/net/at1700.c | skb->len); |
skb | 447 | drivers/net/at1700.c | if (skb->free) |
skb | 448 | drivers/net/at1700.c | kfree_skb (skb, FREE_WRITE); |
skb | 533 | drivers/net/at1700.c | struct sk_buff *skb; |
skb | 542 | drivers/net/at1700.c | skb = alloc_skb(sksize, GFP_ATOMIC); |
skb | 543 | drivers/net/at1700.c | if (skb == NULL) { |
skb | 550 | drivers/net/at1700.c | skb->mem_len = sksize; |
skb | 551 | drivers/net/at1700.c | skb->mem_addr = skb; |
skb | 552 | drivers/net/at1700.c | skb->len = pkt_len; |
skb | 553 | drivers/net/at1700.c | skb->dev = dev; |
skb | 556 | drivers/net/at1700.c | port_read(ioaddr + DATAPORT, (void *)(skb+1), (pkt_len + 1) >> 1); |
skb | 562 | drivers/net/at1700.c | printk(" %02x", ((unsigned char*)(skb + 1))[i]); |
skb | 567 | drivers/net/at1700.c | netif_rx(skb); |
skb | 569 | drivers/net/at1700.c | skb->lock = 0; |
skb | 570 | drivers/net/at1700.c | if (dev_rint((unsigned char*)skb, pkt_len, IN_SKBUFF, dev) != 0) { |
skb | 571 | drivers/net/at1700.c | kfree_s(skb, sksize); |
skb | 226 | drivers/net/d_link.c | static int d_link_start_xmit(struct sk_buff *skb, struct device *dev); |
skb | 384 | drivers/net/d_link.c | d_link_start_xmit(struct sk_buff *skb, struct device *dev) |
skb | 389 | drivers/net/d_link.c | unsigned char *buffer = (unsigned char *)(skb + 1); |
skb | 397 | drivers/net/d_link.c | if (skb == NULL) { |
skb | 403 | drivers/net/d_link.c | if (!skb->arp) |
skb | 404 | drivers/net/d_link.c | if(dev->rebuild_header(skb + 1, dev)) { |
skb | 405 | drivers/net/d_link.c | skb->dev = dev; |
skb | 406 | drivers/net/d_link.c | arp_queue (skb); |
skb | 409 | drivers/net/d_link.c | skb->arp = 1; |
skb | 428 | 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 | 430 | drivers/net/d_link.c | if ((len = skb->len) < RUNT) |
skb | 457 | drivers/net/d_link.c | if (skb->free) |
skb | 458 | drivers/net/d_link.c | kfree_skb (skb, FREE_WRITE); |
skb | 558 | drivers/net/d_link.c | struct sk_buff *skb; |
skb | 581 | drivers/net/d_link.c | skb = alloc_skb(sksize, GFP_ATOMIC); |
skb | 583 | drivers/net/d_link.c | if (skb == NULL) { |
skb | 590 | drivers/net/d_link.c | skb->lock = 0; |
skb | 591 | drivers/net/d_link.c | skb->mem_len = sksize; |
skb | 592 | drivers/net/d_link.c | skb->mem_addr = skb; |
skb | 594 | drivers/net/d_link.c | buffer = (unsigned char *)(skb + 1); |
skb | 603 | drivers/net/d_link.c | if (dev_rint((unsigned char *)skb, size, IN_SKBUFF, dev)) |
skb | 290 | drivers/net/eexpress.c | static int eexp_send_packet(struct sk_buff *skb, struct device *dev); |
skb | 473 | drivers/net/eexpress.c | eexp_send_packet(struct sk_buff *skb, struct device *dev) |
skb | 508 | drivers/net/eexpress.c | if (skb == NULL) { |
skb | 515 | drivers/net/eexpress.c | if (!skb->arp && dev->rebuild_header(skb+1, dev)) { |
skb | 516 | drivers/net/eexpress.c | skb->dev = dev; |
skb | 517 | drivers/net/eexpress.c | arp_queue (skb); |
skb | 520 | drivers/net/eexpress.c | skb->arp=1; |
skb | 526 | drivers/net/eexpress.c | short length = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN; |
skb | 527 | drivers/net/eexpress.c | unsigned char *buf = (void *)(skb+1); |
skb | 537 | drivers/net/eexpress.c | if (skb->free) |
skb | 538 | drivers/net/eexpress.c | kfree_skb (skb, FREE_WRITE); |
skb | 947 | drivers/net/eexpress.c | struct sk_buff *skb; |
skb | 951 | drivers/net/eexpress.c | skb = alloc_skb(sksize, GFP_ATOMIC); |
skb | 952 | drivers/net/eexpress.c | if (skb == NULL) { |
skb | 957 | drivers/net/eexpress.c | skb->mem_len = sksize; |
skb | 958 | drivers/net/eexpress.c | skb->mem_addr = skb; |
skb | 959 | drivers/net/eexpress.c | skb->len = pkt_len; |
skb | 960 | drivers/net/eexpress.c | skb->dev = dev; |
skb | 964 | drivers/net/eexpress.c | port_read(ioaddr, (void *)(skb+1), (pkt_len + 1) >> 1); |
skb | 967 | drivers/net/eexpress.c | netif_rx(skb); |
skb | 969 | drivers/net/eexpress.c | skb->lock = 0; |
skb | 970 | drivers/net/eexpress.c | if (dev_rint((unsigned char*)skb, pkt_len, IN_SKBUFF, dev) != 0) { |
skb | 971 | drivers/net/eexpress.c | kfree_s(skb, sksize); |
skb | 212 | drivers/net/lance.c | static int lance_start_xmit(struct sk_buff *skb, struct device *dev); |
skb | 469 | drivers/net/lance.c | lance_start_xmit(struct sk_buff *skb, struct device *dev) |
skb | 510 | drivers/net/lance.c | if (skb == NULL) { |
skb | 516 | drivers/net/lance.c | if (!skb->arp && dev->rebuild_header(skb+1, dev)) { |
skb | 517 | drivers/net/lance.c | skb->dev = dev; |
skb | 518 | drivers/net/lance.c | arp_queue (skb); |
skb | 521 | drivers/net/lance.c | skb->arp=1; |
skb | 523 | drivers/net/lance.c | if (skb->len <= 0) |
skb | 549 | drivers/net/lance.c | -(ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN); |
skb | 551 | drivers/net/lance.c | lp->tx_ring[entry].length = -skb->len; |
skb | 557 | drivers/net/lance.c | if ((int)(skb+1) + skb->len > 0x01000000) { |
skb | 560 | drivers/net/lance.c | dev->name, (int)(skb+1)); |
skb | 561 | drivers/net/lance.c | memcpy(&lp->tx_bounce_buffs[entry], skb+1, skb->len); |
skb | 564 | drivers/net/lance.c | if (skb->free) |
skb | 565 | drivers/net/lance.c | kfree_skb (skb, FREE_WRITE); |
skb | 567 | drivers/net/lance.c | lp->tx_ring[entry].base = (int)(skb+1) | 0x83000000; |
skb | 656 | drivers/net/lance.c | struct sk_buff *skb = ((struct sk_buff *)databuff) - 1; |
skb | 657 | drivers/net/lance.c | if (skb->free) |
skb | 658 | drivers/net/lance.c | kfree_skb(skb, FREE_WRITE); |
skb | 712 | drivers/net/lance.c | struct sk_buff *skb; |
skb | 714 | drivers/net/lance.c | skb = alloc_skb(sksize, GFP_ATOMIC); |
skb | 715 | drivers/net/lance.c | if (skb == NULL) { |
skb | 720 | drivers/net/lance.c | skb->mem_len = sksize; |
skb | 721 | drivers/net/lance.c | skb->mem_addr = skb; |
skb | 722 | drivers/net/lance.c | skb->len = pkt_len; |
skb | 723 | drivers/net/lance.c | skb->dev = dev; |
skb | 724 | drivers/net/lance.c | memcpy((unsigned char *) (skb + 1), |
skb | 728 | drivers/net/lance.c | netif_rx(skb); |
skb | 730 | drivers/net/lance.c | skb->lock = 0; |
skb | 731 | drivers/net/lance.c | if (dev_rint((unsigned char*)skb, pkt_len, IN_SKBUFF, dev) != 0) { |
skb | 732 | drivers/net/lance.c | kfree_skbmem(skb, sksize); |
skb | 139 | drivers/net/plip.c | static int plip_tx_packet(struct sk_buff *skb, struct device *dev); |
skb | 264 | drivers/net/plip.c | plip_tx_packet(struct sk_buff *skb, struct device *dev) |
skb | 281 | drivers/net/plip.c | if (skb == NULL) { |
skb | 288 | drivers/net/plip.c | if (!skb->arp && dev->rebuild_header(skb+1, dev)) { |
skb | 289 | drivers/net/plip.c | skb->dev = dev; |
skb | 290 | drivers/net/plip.c | arp_queue (skb); |
skb | 293 | drivers/net/plip.c | skb->arp=1; |
skb | 296 | drivers/net/plip.c | ret_val = plip_send_packet(dev, (unsigned char *)(skb+1), skb->len); |
skb | 297 | drivers/net/plip.c | if (skb->free) |
skb | 298 | drivers/net/plip.c | kfree_skb (skb, FREE_WRITE); |
skb | 424 | drivers/net/plip.c | struct sk_buff *skb; |
skb | 474 | drivers/net/plip.c | skb = alloc_skb(sksize, GFP_ATOMIC); |
skb | 475 | drivers/net/plip.c | if (skb == NULL) { |
skb | 480 | drivers/net/plip.c | skb->lock = 0; |
skb | 481 | drivers/net/plip.c | skb->mem_len = sksize; |
skb | 482 | drivers/net/plip.c | skb->mem_addr = skb; |
skb | 487 | drivers/net/plip.c | unsigned char *buf = (unsigned char *) (skb+1); |
skb | 504 | drivers/net/plip.c | } else if(dev_rint((unsigned char *)skb, length, IN_SKBUFF, dev)) { |
skb | 110 | drivers/net/skeleton.c | static int net_send_packet(struct sk_buff *skb, struct device *dev); |
skb | 291 | drivers/net/skeleton.c | net_send_packet(struct sk_buff *skb, struct device *dev) |
skb | 313 | drivers/net/skeleton.c | if (skb == NULL) { |
skb | 320 | drivers/net/skeleton.c | if (!skb->arp && dev->rebuild_header(skb+1, dev)) { |
skb | 321 | drivers/net/skeleton.c | skb->dev = dev; |
skb | 322 | drivers/net/skeleton.c | arp_queue (skb); |
skb | 325 | drivers/net/skeleton.c | skb->arp=1; |
skb | 332 | drivers/net/skeleton.c | short length = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN; |
skb | 333 | drivers/net/skeleton.c | unsigned char *buf = (void *)(skb+1); |
skb | 338 | drivers/net/skeleton.c | if (skb->free) |
skb | 339 | drivers/net/skeleton.c | kfree_skb (skb, FREE_WRITE); |
skb | 411 | drivers/net/skeleton.c | struct sk_buff *skb; |
skb | 413 | drivers/net/skeleton.c | skb = alloc_skb(sksize, GFP_ATOMIC); |
skb | 414 | drivers/net/skeleton.c | if (skb == NULL) { |
skb | 419 | drivers/net/skeleton.c | skb->mem_len = sksize; |
skb | 420 | drivers/net/skeleton.c | skb->mem_addr = skb; |
skb | 421 | drivers/net/skeleton.c | skb->len = pkt_len; |
skb | 422 | drivers/net/skeleton.c | skb->dev = dev; |
skb | 425 | drivers/net/skeleton.c | memcpy((unsigned char *) (skb + 1), (void*)dev->rmem_start, |
skb | 428 | drivers/net/skeleton.c | port_read(ioaddr, (void *)(skb+1), (pkt_len + 1) >> 1); |
skb | 431 | drivers/net/skeleton.c | netif_rx(skb); |
skb | 433 | drivers/net/skeleton.c | skb->lock = 0; |
skb | 434 | drivers/net/skeleton.c | if (dev_rint((unsigned char*)skb, pkt_len, IN_SKBUFF, dev) != 0) { |
skb | 435 | drivers/net/skeleton.c | kfree_s(skb, sksize); |
skb | 486 | drivers/net/slip.c | sl_xmit(struct sk_buff *skb, struct device *dev) |
skb | 495 | drivers/net/slip.c | dev->name, skb, sl->sending)); |
skb | 509 | drivers/net/slip.c | if (skb != NULL) { |
skb | 511 | drivers/net/slip.c | sl_encaps(sl, (unsigned char *) (skb + 1), skb->len); |
skb | 512 | drivers/net/slip.c | if (skb->free) kfree_skb(skb, FREE_WRITE); |
skb | 520 | drivers/net/slip.c | sl_type_trans (struct sk_buff *skb, struct device *dev) |
skb | 537 | drivers/net/slip.c | sl_add_arp(unsigned long addr, struct sk_buff *skb, struct device *dev) |
skb | 198 | net/inet/arp.c | struct sk_buff *skb; |
skb | 205 | net/inet/arp.c | while((skb=skb_dequeue(&work_q))!=NULL) |
skb | 207 | net/inet/arp.c | IS_SKB(skb); |
skb | 208 | net/inet/arp.c | skb->magic = 0; |
skb | 209 | net/inet/arp.c | skb->next = NULL; |
skb | 210 | net/inet/arp.c | skb->prev = NULL; |
skb | 214 | net/inet/arp.c | skb->tries--; |
skb | 215 | net/inet/arp.c | if (skb->tries == 0) { |
skb | 225 | net/inet/arp.c | skb->sk = NULL; |
skb | 226 | net/inet/arp.c | if(skb->free) |
skb | 227 | net/inet/arp.c | kfree_skb(skb, FREE_WRITE); |
skb | 236 | net/inet/arp.c | if (skb->arp || !skb->dev->rebuild_header(skb+1, skb->dev)) { |
skb | 237 | net/inet/arp.c | skb->arp = 1; |
skb | 238 | net/inet/arp.c | skb->dev->queue_xmit(skb, skb->dev, 0); |
skb | 241 | net/inet/arp.c | skb->magic = ARP_QUEUE_MAGIC; |
skb | 242 | net/inet/arp.c | skb_queue_head(&arp_q,skb); |
skb | 253 | net/inet/arp.c | struct sk_buff *skb; |
skb | 272 | net/inet/arp.c | skb = alloc_skb(sizeof(struct sk_buff) + |
skb | 276 | net/inet/arp.c | if (skb == NULL) { |
skb | 281 | net/inet/arp.c | skb->mem_addr = skb; |
skb | 282 | net/inet/arp.c | skb->len = sizeof(struct arphdr) + (2 * arp1->ar_hln) + |
skb | 284 | net/inet/arp.c | skb->mem_len = sizeof(struct sk_buff) + skb->len; |
skb | 285 | net/inet/arp.c | hlen = dev->hard_header((unsigned char *)(skb+1), dev, |
skb | 286 | net/inet/arp.c | ETH_P_ARP, src, dst, skb->len); |
skb | 289 | net/inet/arp.c | kfree_skb(skb, FREE_WRITE); |
skb | 298 | net/inet/arp.c | arp2 = (struct arphdr *) ((unsigned char *) (skb+1) + hlen); |
skb | 316 | net/inet/arp.c | skb->free = 1; |
skb | 317 | net/inet/arp.c | skb->arp = 1; |
skb | 318 | net/inet/arp.c | skb->sk = NULL; |
skb | 319 | net/inet/arp.c | skb->next = NULL; |
skb | 325 | net/inet/arp.c | dev->queue_xmit(skb, dev, 0); |
skb | 463 | net/inet/arp.c | arp_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt) |
skb | 473 | net/inet/arp.c | arp = skb->h.arp; |
skb | 480 | net/inet/arp.c | kfree_skb(skb, FREE_READ); |
skb | 489 | net/inet/arp.c | kfree_skb(skb, FREE_READ); |
skb | 510 | net/inet/arp.c | kfree_skb(skb, FREE_READ); |
skb | 515 | net/inet/arp.c | kfree_skb(skb, FREE_READ); |
skb | 533 | net/inet/arp.c | kfree_skb(skb, FREE_READ); |
skb | 543 | net/inet/arp.c | kfree_skb(skb, FREE_READ); |
skb | 550 | net/inet/arp.c | kfree_skb(skb, FREE_READ); |
skb | 559 | net/inet/arp.c | kfree_skb(skb, FREE_READ); |
skb | 568 | net/inet/arp.c | struct sk_buff *skb; |
skb | 577 | net/inet/arp.c | skb = alloc_skb(sizeof(struct sk_buff) + |
skb | 581 | net/inet/arp.c | if (skb == NULL) { |
skb | 587 | net/inet/arp.c | skb->sk = NULL; |
skb | 588 | net/inet/arp.c | skb->mem_addr = skb; |
skb | 589 | net/inet/arp.c | skb->len = sizeof(struct arphdr) + |
skb | 591 | net/inet/arp.c | skb->mem_len = sizeof(struct sk_buff) + skb->len; |
skb | 592 | net/inet/arp.c | skb->arp = 1; |
skb | 593 | net/inet/arp.c | skb->dev = dev; |
skb | 594 | net/inet/arp.c | skb->next = NULL; |
skb | 595 | net/inet/arp.c | skb->free = 1; |
skb | 596 | net/inet/arp.c | tmp = dev->hard_header((unsigned char *)(skb+1), dev, |
skb | 597 | net/inet/arp.c | ETH_P_ARP, 0, saddr, skb->len); |
skb | 599 | net/inet/arp.c | kfree_skb(skb,FREE_WRITE); |
skb | 602 | net/inet/arp.c | arp = (struct arphdr *) ((unsigned char *) (skb+1) + tmp); |
skb | 621 | net/inet/arp.c | dev->queue_xmit(skb, dev, 0); |
skb | 721 | net/inet/arp.c | arp_queue(struct sk_buff *skb) |
skb | 724 | net/inet/arp.c | skb->tries = ARP_MAX_TRIES; |
skb | 726 | net/inet/arp.c | if (skb->next != NULL) { |
skb | 728 | net/inet/arp.c | printk("ARP: arp_queue skb already on queue magic=%X.\n", skb->magic); |
skb | 731 | net/inet/arp.c | skb_queue_tail(&arp_q,skb); |
skb | 732 | net/inet/arp.c | skb->magic = ARP_QUEUE_MAGIC; |
skb | 52 | net/inet/arp.h | extern int arp_rcv(struct sk_buff *skb, struct device *dev, |
skb | 59 | net/inet/arp.h | extern void arp_queue(struct sk_buff *skb); |
skb | 48 | net/inet/datagram.c | struct sk_buff *skb; |
skb | 102 | net/inet/datagram.c | skb=skb_dequeue(&sk->rqueue); |
skb | 103 | net/inet/datagram.c | if(skb!=NULL) |
skb | 104 | net/inet/datagram.c | skb->users++; |
skb | 111 | net/inet/datagram.c | skb=skb_peek(&sk->rqueue); |
skb | 112 | net/inet/datagram.c | if(skb!=NULL) |
skb | 113 | net/inet/datagram.c | skb->users++; |
skb | 115 | net/inet/datagram.c | if(skb==NULL) /* shouldn't happen but .. */ |
skb | 118 | net/inet/datagram.c | return skb; |
skb | 121 | net/inet/datagram.c | void skb_free_datagram(struct sk_buff *skb) |
skb | 127 | net/inet/datagram.c | skb->users--; |
skb | 128 | net/inet/datagram.c | if(skb->users>0) |
skb | 134 | net/inet/datagram.c | if(skb->list == NULL) /* Been dequeued by someone - ie its read */ |
skb | 135 | net/inet/datagram.c | kfree_skb(skb,FREE_READ); |
skb | 139 | net/inet/datagram.c | void skb_copy_datagram(struct sk_buff *skb, int offset, char *to, int size) |
skb | 143 | net/inet/datagram.c | memcpy_tofs(to,skb->h.raw+offset,size); |
skb | 337 | net/inet/dev.c | struct sk_buff *skb; |
skb | 338 | net/inet/dev.c | while((skb=skb_dequeue(&dev->buffs[ct]))!=NULL) |
skb | 339 | net/inet/dev.c | if(skb->free) |
skb | 340 | net/inet/dev.c | kfree_skb(skb,FREE_WRITE); |
skb | 351 | net/inet/dev.c | dev_queue_xmit(struct sk_buff *skb, struct device *dev, int pri) |
skb | 358 | net/inet/dev.c | skb, dev, pri)); |
skb | 365 | net/inet/dev.c | IS_SKB(skb); |
skb | 367 | net/inet/dev.c | skb->dev = dev; |
skb | 368 | net/inet/dev.c | if (skb->next != NULL) { |
skb | 384 | net/inet/dev.c | if (dev->hard_start_xmit(skb, dev) == 0) { |
skb | 394 | net/inet/dev.c | skb->magic = DEV_QUEUE_MAGIC; |
skb | 396 | net/inet/dev.c | skb_queue_head(&dev->buffs[pri],skb); |
skb | 398 | net/inet/dev.c | skb_queue_tail(&dev->buffs[pri],skb); |
skb | 399 | net/inet/dev.c | skb->magic = DEV_QUEUE_MAGIC; |
skb | 408 | net/inet/dev.c | netif_rx(struct sk_buff *skb) |
skb | 411 | net/inet/dev.c | skb->sk = NULL; |
skb | 412 | net/inet/dev.c | skb->free = 1; |
skb | 415 | net/inet/dev.c | IS_SKB(skb); |
skb | 416 | net/inet/dev.c | skb_queue_tail(&backlog,skb); |
skb | 439 | net/inet/dev.c | struct sk_buff *skb = NULL; |
skb | 446 | net/inet/dev.c | skb = (struct sk_buff *) buff; |
skb | 455 | net/inet/dev.c | skb = alloc_skb(sizeof(*skb) + len, GFP_ATOMIC); |
skb | 456 | net/inet/dev.c | if (skb == NULL) { |
skb | 462 | net/inet/dev.c | skb->mem_len = sizeof(*skb) + len; |
skb | 463 | net/inet/dev.c | skb->mem_addr = (struct sk_buff *) skb; |
skb | 466 | net/inet/dev.c | to = (unsigned char *) (skb + 1); |
skb | 481 | net/inet/dev.c | skb->len = len; |
skb | 482 | net/inet/dev.c | skb->dev = dev; |
skb | 483 | net/inet/dev.c | skb->free = 1; |
skb | 485 | net/inet/dev.c | netif_rx(skb); |
skb | 519 | net/inet/dev.c | struct sk_buff *skb; |
skb | 533 | net/inet/dev.c | while((skb=skb_dequeue(&backlog))!=NULL) |
skb | 543 | net/inet/dev.c | skb->h.raw = (unsigned char *) (skb + 1) + skb->dev->hard_header_len; |
skb | 544 | net/inet/dev.c | skb->len -= skb->dev->hard_header_len; |
skb | 556 | net/inet/dev.c | type = skb->dev->type_trans(skb, skb->dev); |
skb | 569 | net/inet/dev.c | skb2 = alloc_skb(skb->mem_len, GFP_ATOMIC); |
skb | 572 | net/inet/dev.c | memcpy(skb2, (const void *) skb, skb->mem_len); |
skb | 576 | net/inet/dev.c | (unsigned long) skb->h.raw - |
skb | 577 | net/inet/dev.c | (unsigned long) skb |
skb | 581 | net/inet/dev.c | skb2 = skb; |
skb | 591 | net/inet/dev.c | ptype->func(skb2, skb->dev, ptype); |
skb | 602 | net/inet/dev.c | skb->sk = NULL; |
skb | 603 | net/inet/dev.c | kfree_skb(skb, FREE_WRITE); |
skb | 624 | net/inet/dev.c | struct sk_buff *skb; |
skb | 627 | net/inet/dev.c | while((skb=skb_dequeue(&dev->buffs[i]))!=NULL) |
skb | 629 | net/inet/dev.c | skb->magic = 0; |
skb | 630 | net/inet/dev.c | skb->next = NULL; |
skb | 631 | net/inet/dev.c | skb->prev = NULL; |
skb | 632 | 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 | 173 | net/inet/dev.h | extern void dev_queue_xmit(struct sk_buff *skb, struct device *dev, |
skb | 176 | net/inet/dev.h | extern void netif_rx(struct sk_buff *skb); |
skb | 166 | net/inet/eth.c | eth_add_arp(unsigned long addr, struct sk_buff *skb, struct device *dev) |
skb | 170 | net/inet/eth.c | eth = (struct ethhdr *) (skb + 1); |
skb | 177 | net/inet/eth.c | eth_type_trans(struct sk_buff *skb, struct device *dev) |
skb | 181 | net/inet/eth.c | eth = (struct ethhdr *) (skb + 1); |
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 | 81 | net/inet/icmp.c | struct sk_buff *skb; |
skb | 95 | net/inet/icmp.c | skb = (struct sk_buff *) alloc_skb(len, GFP_ATOMIC); |
skb | 96 | net/inet/icmp.c | if (skb == NULL) |
skb | 99 | net/inet/icmp.c | skb->sk = NULL; |
skb | 100 | net/inet/icmp.c | skb->mem_addr = skb; |
skb | 101 | net/inet/icmp.c | skb->mem_len = len; |
skb | 109 | net/inet/icmp.c | offset = ip_build_header(skb, iph->daddr, iph->saddr, |
skb | 112 | net/inet/icmp.c | skb->sk = NULL; |
skb | 113 | net/inet/icmp.c | kfree_skb(skb, FREE_READ); |
skb | 118 | net/inet/icmp.c | skb->len = offset + sizeof(struct icmphdr) + sizeof(struct iphdr) + 8; |
skb | 119 | net/inet/icmp.c | icmph = (struct icmphdr *) ((unsigned char *) (skb + 1) + offset); |
skb | 133 | net/inet/icmp.c | ip_queue_xmit(NULL, dev, skb, 1); |
skb | 139 | net/inet/icmp.c | icmp_unreach(struct icmphdr *icmph, struct sk_buff *skb) |
skb | 196 | net/inet/icmp.c | skb->sk = NULL; |
skb | 197 | net/inet/icmp.c | kfree_skb(skb, FREE_READ); |
skb | 203 | net/inet/icmp.c | icmp_redirect(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev) |
skb | 228 | net/inet/icmp.c | skb->sk = NULL; |
skb | 229 | net/inet/icmp.c | kfree_skb(skb, FREE_READ); |
skb | 235 | net/inet/icmp.c | icmp_echo(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, |
skb | 246 | net/inet/icmp.c | skb->sk = NULL; |
skb | 247 | net/inet/icmp.c | kfree_skb(skb, FREE_READ); |
skb | 261 | net/inet/icmp.c | skb->sk = NULL; |
skb | 262 | net/inet/icmp.c | kfree_skb(skb, FREE_READ); |
skb | 280 | net/inet/icmp.c | skb->sk = NULL; |
skb | 281 | net/inet/icmp.c | kfree_skb(skb, FREE_READ); |
skb | 287 | net/inet/icmp.c | icmp_info(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, |
skb | 292 | net/inet/icmp.c | skb->sk = NULL; |
skb | 293 | net/inet/icmp.c | kfree_skb(skb, FREE_READ); |
skb | 299 | net/inet/icmp.c | icmp_address(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, |
skb | 310 | net/inet/icmp.c | skb->sk = NULL; |
skb | 311 | net/inet/icmp.c | kfree_skb(skb, FREE_READ); |
skb | 325 | net/inet/icmp.c | skb->sk = NULL; |
skb | 326 | net/inet/icmp.c | kfree_skb(skb, FREE_READ); |
skb | 347 | net/inet/icmp.c | skb->sk = NULL; |
skb | 348 | net/inet/icmp.c | kfree_skb(skb, FREE_READ); |
skb | 170 | net/inet/ip.c | ip_send(struct sk_buff *skb, unsigned long daddr, int len, struct device *dev, |
skb | 176 | net/inet/ip.c | ptr = (unsigned char *)(skb + 1); |
skb | 178 | net/inet/ip.c | skb->arp = 1; |
skb | 184 | net/inet/ip.c | skb->arp = 0; |
skb | 186 | net/inet/ip.c | skb->dev = dev; |
skb | 198 | net/inet/ip.c | ip_build_header(struct sk_buff *skb, unsigned long saddr, unsigned long daddr, |
skb | 214 | net/inet/ip.c | skb, saddr, daddr, *dev, type, opt, len)); |
skb | 216 | net/inet/ip.c | buff = (unsigned char *)(skb + 1); |
skb | 240 | net/inet/ip.c | tmp = ip_send(skb, raddr, len, *dev, saddr); |
skb | 244 | net/inet/ip.c | skb->dev = *dev; |
skb | 245 | net/inet/ip.c | skb->saddr = saddr; |
skb | 246 | net/inet/ip.c | if (skb->sk) skb->sk->saddr = saddr; |
skb | 512 | net/inet/ip.c | static struct ipfrag *ip_frag_create(int offset, int end, struct sk_buff *skb, unsigned char *ptr) |
skb | 528 | net/inet/ip.c | fp->skb = skb; |
skb | 597 | net/inet/ip.c | IS_SKB(fp->skb); |
skb | 598 | net/inet/ip.c | kfree_skb(fp->skb,FREE_READ); |
skb | 633 | net/inet/ip.c | icmp_send(qp->fragments->skb,ICMP_TIME_EXCEEDED, |
skb | 648 | net/inet/ip.c | static struct ipq *ip_create(struct sk_buff *skb, struct iphdr *iph, struct device *dev) |
skb | 663 | net/inet/ip.c | maclen = ((unsigned long) iph) - ((unsigned long) (skb + 1)); |
skb | 684 | net/inet/ip.c | memcpy(qp->mac, (skb + 1), maclen); |
skb | 740 | net/inet/ip.c | struct sk_buff *skb; |
skb | 748 | net/inet/ip.c | if ((skb = alloc_skb(len,GFP_ATOMIC)) == NULL) |
skb | 756 | net/inet/ip.c | skb->len = (len - qp->maclen); |
skb | 757 | net/inet/ip.c | skb->h.raw = (unsigned char *) (skb + 1); |
skb | 758 | net/inet/ip.c | skb->free = 1; |
skb | 759 | net/inet/ip.c | skb->lock = 1; |
skb | 762 | net/inet/ip.c | ptr = (unsigned char *) skb->h.raw; |
skb | 769 | net/inet/ip.c | skb->h.raw += qp->maclen; |
skb | 778 | net/inet/ip.c | if(count+fp->len>skb->len) |
skb | 781 | net/inet/ip.c | kfree_skb(skb,FREE_WRITE); |
skb | 794 | net/inet/ip.c | iph = skb->h.iph; |
skb | 797 | net/inet/ip.c | return(skb); |
skb | 802 | net/inet/ip.c | static struct sk_buff *ip_defrag(struct iphdr *iph, struct sk_buff *skb, struct device *dev) |
skb | 823 | net/inet/ip.c | return(skb); |
skb | 842 | net/inet/ip.c | if ((qp = ip_create(skb, iph, dev)) == NULL) |
skb | 851 | net/inet/ip.c | ptr = ((unsigned char *) (skb + 1)) + dev->hard_header_len + ihl; |
skb | 919 | net/inet/ip.c | tfp = ip_frag_create(offset, end, skb, ptr); |
skb | 953 | net/inet/ip.c | void ip_fragment(struct sock *sk, struct sk_buff *skb, struct device *dev, int is_frag) |
skb | 963 | net/inet/ip.c | raw = (unsigned char *) (skb + 1); |
skb | 991 | net/inet/ip.c | icmp_send(skb,ICMP_DEST_UNREACH, ICMP_FRAG_NEEDED, dev); |
skb | 1019 | net/inet/ip.c | skb2->arp = skb->arp; |
skb | 1020 | net/inet/ip.c | skb2->free = skb->free; |
skb | 1058 | net/inet/ip.c | ip_forward(struct sk_buff *skb, struct device *dev, int is_frag) |
skb | 1074 | net/inet/ip.c | if(memcmp((char *)&skb[1],dev->dev_addr,dev->addr_len)) |
skb | 1083 | net/inet/ip.c | iph = skb->h.iph; |
skb | 1091 | net/inet/ip.c | icmp_send(skb, ICMP_TIME_EXCEEDED, ICMP_EXC_TTL, dev); |
skb | 1107 | net/inet/ip.c | icmp_send(skb, ICMP_DEST_UNREACH, ICMP_NET_UNREACH, dev); |
skb | 1125 | net/inet/ip.c | icmp_send(skb, ICMP_DEST_UNREACH, ICMP_HOST_UNREACH, dev); |
skb | 1140 | net/inet/ip.c | in_ntoa(raddr), dev2->name, skb->len)); |
skb | 1144 | net/inet/ip.c | dev2->hard_header_len + skb->len, GFP_ATOMIC); |
skb | 1152 | net/inet/ip.c | skb2->len = skb->len + dev2->hard_header_len; |
skb | 1159 | net/inet/ip.c | memcpy(ptr + dev2->hard_header_len, skb->h.raw, skb->len); |
skb | 1162 | net/inet/ip.c | (void) ip_send(skb2, raddr, skb->len, dev2, dev2->pa_addr); |
skb | 1179 | net/inet/ip.c | ip_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt) |
skb | 1181 | net/inet/ip.c | struct iphdr *iph = skb->h.iph; |
skb | 1198 | net/inet/ip.c | skb->sk = NULL; |
skb | 1199 | net/inet/ip.c | kfree_skb(skb, FREE_WRITE); |
skb | 1219 | net/inet/ip.c | ip_forward(skb, dev, is_frag); |
skb | 1224 | net/inet/ip.c | skb->sk = NULL; |
skb | 1225 | net/inet/ip.c | kfree_skb(skb, FREE_WRITE); |
skb | 1236 | net/inet/ip.c | skb=ip_defrag(iph,skb,dev); |
skb | 1237 | net/inet/ip.c | if(skb==NULL) |
skb | 1241 | net/inet/ip.c | iph=skb->h.iph; |
skb | 1246 | net/inet/ip.c | icmp_send(skb, ICMP_DEST_UNREACH, ICMP_PROT_UNREACH, dev); |
skb | 1247 | net/inet/ip.c | skb->sk = NULL; |
skb | 1248 | net/inet/ip.c | kfree_skb(skb, FREE_WRITE); |
skb | 1259 | net/inet/ip.c | skb->sk=NULL; |
skb | 1260 | net/inet/ip.c | kfree_skb(skb,FREE_WRITE); |
skb | 1265 | net/inet/ip.c | skb->h.raw += iph->ihl*4; |
skb | 1283 | net/inet/ip.c | skb2 = alloc_skb(skb->mem_len, GFP_ATOMIC); |
skb | 1286 | net/inet/ip.c | memcpy(skb2, skb, skb->mem_len); |
skb | 1290 | net/inet/ip.c | (unsigned long) skb->h.raw - |
skb | 1291 | net/inet/ip.c | (unsigned long)skb); |
skb | 1294 | net/inet/ip.c | skb2 = skb; |
skb | 1317 | net/inet/ip.c | icmp_send(skb, ICMP_DEST_UNREACH, ICMP_PROT_UNREACH, dev); |
skb | 1318 | net/inet/ip.c | skb->sk = NULL; |
skb | 1319 | net/inet/ip.c | kfree_skb(skb, FREE_WRITE); |
skb | 1335 | net/inet/ip.c | struct sk_buff *skb, int free) |
skb | 1345 | net/inet/ip.c | IS_SKB(skb); |
skb | 1346 | net/inet/ip.c | skb->free = free; |
skb | 1347 | net/inet/ip.c | skb->dev = dev; |
skb | 1348 | net/inet/ip.c | skb->when = jiffies; |
skb | 1351 | net/inet/ip.c | ptr = (unsigned char *)(skb + 1); |
skb | 1354 | net/inet/ip.c | iph->tot_len = ntohs(skb->len-dev->hard_header_len); |
skb | 1356 | net/inet/ip.c | if(skb->len > dev->mtu) |
skb | 1359 | net/inet/ip.c | ip_fragment(sk,skb,dev,0); |
skb | 1360 | net/inet/ip.c | IS_SKB(skb); |
skb | 1361 | net/inet/ip.c | kfree_skb(skb,FREE_WRITE); |
skb | 1367 | net/inet/ip.c | skb->next = NULL; |
skb | 1370 | net/inet/ip.c | skb->magic = 1; |
skb | 1372 | net/inet/ip.c | skb->link3 = NULL; |
skb | 1376 | net/inet/ip.c | sk->send_tail = skb; |
skb | 1377 | net/inet/ip.c | sk->send_head = skb; |
skb | 1384 | net/inet/ip.c | sk->send_tail->link3 = skb; |
skb | 1385 | net/inet/ip.c | sk->send_tail = skb; |
skb | 1392 | net/inet/ip.c | skb->sk = sk; |
skb | 1398 | net/inet/ip.c | dev->queue_xmit(skb, dev, sk->priority); |
skb | 1401 | net/inet/ip.c | dev->queue_xmit(skb, dev, SOPRI_NORMAL); |
skb | 1404 | net/inet/ip.c | if (free) kfree_skb(skb, FREE_WRITE); |
skb | 1412 | net/inet/ip.c | struct sk_buff * skb; |
skb | 1417 | net/inet/ip.c | skb = sk->send_head; |
skb | 1418 | net/inet/ip.c | while (skb != NULL) { |
skb | 1419 | net/inet/ip.c | dev = skb->dev; |
skb | 1427 | net/inet/ip.c | IS_SKB(skb); |
skb | 1437 | net/inet/ip.c | if (!skb->arp) { |
skb | 1438 | net/inet/ip.c | if (dev->rebuild_header(skb+1, dev)) { |
skb | 1441 | net/inet/ip.c | skb = (struct sk_buff *)skb->link3; |
skb | 1445 | net/inet/ip.c | skb->arp = 1; |
skb | 1447 | net/inet/ip.c | skb->when = jiffies; |
skb | 1451 | net/inet/ip.c | if (sk) dev->queue_xmit(skb, dev, sk->priority); |
skb | 1461 | net/inet/ip.c | skb = (struct sk_buff *)skb->link3; |
skb | 41 | net/inet/ip.h | struct sk_buff *skb; /* complete received fragment */ |
skb | 68 | net/inet/ip.h | extern int ip_build_header(struct sk_buff *skb, |
skb | 74 | net/inet/ip.h | extern int ip_rcv(struct sk_buff *skb, struct device *dev, |
skb | 77 | net/inet/ip.h | struct device *dev, struct sk_buff *skb, |
skb | 47 | net/inet/loopback.c | loopback_xmit(struct sk_buff *skb, struct device *dev) |
skb | 52 | net/inet/loopback.c | DPRINTF((DBG_LOOPB, "loopback_xmit(dev=%X, skb=%X)\n", dev, skb)); |
skb | 53 | net/inet/loopback.c | if (skb == NULL || dev == NULL) return(0); |
skb | 64 | net/inet/loopback.c | done = dev_rint((unsigned char *)(skb+1), skb->len, 0, dev); |
skb | 65 | net/inet/loopback.c | if (skb->free) kfree_skb(skb, FREE_WRITE); |
skb | 58 | net/inet/packet.c | packet_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt) |
skb | 63 | net/inet/packet.c | skb->dev = dev; |
skb | 64 | net/inet/packet.c | skb->len += dev->hard_header_len; |
skb | 66 | net/inet/packet.c | skb->sk = sk; |
skb | 69 | net/inet/packet.c | if (sk->rmem_alloc + skb->mem_len >= sk->rcvbuf) { |
skb | 70 | net/inet/packet.c | skb->sk = NULL; |
skb | 71 | net/inet/packet.c | kfree_skb(skb, FREE_READ); |
skb | 74 | net/inet/packet.c | sk->rmem_alloc += skb->mem_len; |
skb | 75 | net/inet/packet.c | skb_queue_tail(&sk->rqueue,skb); |
skb | 88 | net/inet/packet.c | struct sk_buff *skb; |
skb | 121 | net/inet/packet.c | skb = (struct sk_buff *) sk->prot->wmalloc(sk, len+sizeof(*skb), 0, GFP_KERNEL); |
skb | 124 | net/inet/packet.c | if (skb == NULL) { |
skb | 129 | net/inet/packet.c | skb->mem_addr = skb; |
skb | 130 | net/inet/packet.c | skb->mem_len = len + sizeof(*skb); |
skb | 131 | net/inet/packet.c | skb->sk = sk; |
skb | 132 | net/inet/packet.c | skb->free = 1; |
skb | 133 | net/inet/packet.c | memcpy_fromfs (skb+1, from, len); |
skb | 134 | net/inet/packet.c | skb->len = len; |
skb | 135 | net/inet/packet.c | skb->next = NULL; |
skb | 136 | net/inet/packet.c | if (dev->flags & IFF_UP) dev->queue_xmit(skb, dev, sk->priority); |
skb | 137 | net/inet/packet.c | else kfree_skb(skb, FREE_WRITE); |
skb | 192 | net/inet/packet.c | struct sk_buff *skb; |
skb | 211 | net/inet/packet.c | skb=skb_recv_datagram(sk,flags,noblock,&err); |
skb | 212 | net/inet/packet.c | if(skb==NULL) |
skb | 214 | net/inet/packet.c | copied = min(len, skb->len); |
skb | 216 | net/inet/packet.c | memcpy_tofs(to, skb+1, copied); /* Don't use skb_copy_datagram here: We can't get frag chains */ |
skb | 222 | net/inet/packet.c | addr.sa_family = skb->dev->type; |
skb | 223 | net/inet/packet.c | memcpy(addr.sa_data,skb->dev->name, 14); |
skb | 228 | net/inet/packet.c | skb_free_datagram(skb); /* Its either been used up, or its a peek_copy anyway */ |
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 | 89 | net/inet/raw.c | raw_rcv(struct sk_buff *skb, struct device *dev, struct options *opt, |
skb | 97 | net/inet/raw.c | skb, dev, opt, daddr, len, saddr, redo, protocol)); |
skb | 99 | net/inet/raw.c | if (skb == NULL) return(0); |
skb | 101 | net/inet/raw.c | kfree_skb(skb, FREE_READ); |
skb | 106 | net/inet/raw.c | kfree_skb(skb, FREE_READ); |
skb | 111 | net/inet/raw.c | skb->sk = sk; |
skb | 112 | net/inet/raw.c | skb->len = len; |
skb | 113 | net/inet/raw.c | skb->dev = dev; |
skb | 114 | net/inet/raw.c | skb->saddr = daddr; |
skb | 115 | net/inet/raw.c | skb->daddr = saddr; |
skb | 118 | net/inet/raw.c | if (sk->rmem_alloc + skb->mem_len >= sk->rcvbuf) { |
skb | 119 | net/inet/raw.c | skb->sk = NULL; |
skb | 120 | net/inet/raw.c | kfree_skb(skb, FREE_READ); |
skb | 123 | net/inet/raw.c | sk->rmem_alloc += skb->mem_len; |
skb | 124 | net/inet/raw.c | skb_queue_tail(&sk->rqueue,skb); |
skb | 137 | net/inet/raw.c | struct sk_buff *skb; |
skb | 174 | net/inet/raw.c | skb = NULL; |
skb | 175 | net/inet/raw.c | while (skb == NULL) { |
skb | 184 | net/inet/raw.c | skb = (struct sk_buff *) sk->prot->wmalloc(sk, |
skb | 185 | net/inet/raw.c | len+sizeof(*skb) + sk->prot->max_header, |
skb | 187 | net/inet/raw.c | if (skb == NULL) { |
skb | 207 | net/inet/raw.c | skb->mem_addr = skb; |
skb | 208 | net/inet/raw.c | skb->mem_len = len + sizeof(*skb) +sk->prot->max_header; |
skb | 209 | net/inet/raw.c | skb->sk = sk; |
skb | 211 | net/inet/raw.c | skb->free = 1; /* these two should be unecessary. */ |
skb | 212 | net/inet/raw.c | skb->arp = 0; |
skb | 214 | net/inet/raw.c | tmp = sk->prot->build_header(skb, sk->saddr, |
skb | 216 | net/inet/raw.c | sk->protocol, sk->opt, skb->mem_len); |
skb | 219 | net/inet/raw.c | kfree_skb(skb,FREE_WRITE); |
skb | 225 | net/inet/raw.c | memcpy_fromfs ((unsigned char *)(skb+1)+tmp, from, len); |
skb | 234 | net/inet/raw.c | buff = (unsigned char *)(skb + 1); |
skb | 240 | net/inet/raw.c | skb->len = tmp + len; |
skb | 242 | net/inet/raw.c | if(dev!=NULL && skb->len > 4095) |
skb | 244 | net/inet/raw.c | kfree_skb(skb, FREE_WRITE); |
skb | 249 | net/inet/raw.c | sk->prot->queue_xmit(sk, dev, skb, 1); |
skb | 315 | net/inet/raw.c | struct sk_buff *skb; |
skb | 336 | net/inet/raw.c | skb=skb_recv_datagram(sk,flags,noblock,&err); |
skb | 337 | net/inet/raw.c | if(skb==NULL) |
skb | 340 | net/inet/raw.c | copied = min(len, skb->len); |
skb | 342 | net/inet/raw.c | skb_copy_datagram(skb, 0, to, copied); |
skb | 349 | net/inet/raw.c | addr.sin_addr.s_addr = skb->daddr; |
skb | 354 | 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 | 55 | net/inet/skbuff.c | void skb_check(struct sk_buff *skb, int line, char *file) |
skb | 57 | net/inet/skbuff.c | if(skb->magic_debug_cookie==SK_FREED_SKB) |
skb | 62 | net/inet/skbuff.c | skb,skb->truesize,skb->mem_len,skb->magic,skb->list,skb->free); |
skb | 64 | net/inet/skbuff.c | if(skb->magic_debug_cookie!=SK_GOOD_SKB) |
skb | 68 | net/inet/skbuff.c | skb,skb->truesize,skb->mem_len,skb->magic,skb->list,skb->free); |
skb | 70 | net/inet/skbuff.c | if(skb->mem_len!=skb->truesize) |
skb | 74 | net/inet/skbuff.c | skb,skb->truesize,skb->mem_len,skb->magic,skb->list); |
skb | 245 | net/inet/skbuff.c | void skb_unlink(struct sk_buff *skb) |
skb | 251 | net/inet/skbuff.c | IS_SKB(skb); |
skb | 253 | net/inet/skbuff.c | if(skb->list) |
skb | 255 | net/inet/skbuff.c | skb->next->prev=skb->prev; |
skb | 256 | net/inet/skbuff.c | skb->prev->next=skb->next; |
skb | 257 | net/inet/skbuff.c | if(*skb->list==skb) |
skb | 259 | net/inet/skbuff.c | if(skb->next==skb) |
skb | 260 | net/inet/skbuff.c | *skb->list=NULL; |
skb | 262 | net/inet/skbuff.c | *skb->list=skb->next; |
skb | 264 | net/inet/skbuff.c | skb->next=0; |
skb | 265 | net/inet/skbuff.c | skb->prev=0; |
skb | 266 | net/inet/skbuff.c | skb->list=0; |
skb | 279 | net/inet/skbuff.c | struct sk_buff *skb=skb_peek(list); |
skb | 280 | net/inet/skbuff.c | if(skb!=NULL) |
skb | 284 | net/inet/skbuff.c | IS_SKB(skb); |
skb | 285 | net/inet/skbuff.c | skb->list=list; |
skb | 286 | net/inet/skbuff.c | skb=skb->next; |
skb | 288 | net/inet/skbuff.c | while(skb!=*list); |
skb | 375 | net/inet/skbuff.c | void kfree_skb(struct sk_buff *skb, int rw) |
skb | 377 | net/inet/skbuff.c | if (skb == NULL) { |
skb | 381 | net/inet/skbuff.c | IS_SKB(skb); |
skb | 382 | net/inet/skbuff.c | if(skb->free == 2) |
skb | 384 | net/inet/skbuff.c | if(skb->list) |
skb | 386 | net/inet/skbuff.c | skb->magic = 0; |
skb | 387 | net/inet/skbuff.c | if (skb->sk) { |
skb | 389 | net/inet/skbuff.c | skb->sk->prot->rfree(skb->sk, skb->mem_addr, skb->mem_len); |
skb | 391 | net/inet/skbuff.c | skb->sk->prot->wfree(skb->sk, skb->mem_addr, skb->mem_len); |
skb | 394 | net/inet/skbuff.c | kfree_skbmem(skb->mem_addr, skb->mem_len); |
skb | 405 | net/inet/skbuff.c | struct sk_buff *skb=(struct sk_buff *)kmalloc(size,priority); |
skb | 406 | net/inet/skbuff.c | if(skb==NULL) |
skb | 408 | net/inet/skbuff.c | skb->free= 2; /* Invalid so we pick up forgetful users */ |
skb | 409 | net/inet/skbuff.c | skb->list= 0; /* Not on a list */ |
skb | 410 | net/inet/skbuff.c | skb->truesize=size; |
skb | 411 | net/inet/skbuff.c | skb->mem_len=size; |
skb | 412 | net/inet/skbuff.c | skb->mem_addr=skb; |
skb | 413 | net/inet/skbuff.c | skb->fraglist=NULL; |
skb | 416 | net/inet/skbuff.c | skb->magic_debug_cookie=SK_GOOD_SKB; |
skb | 417 | net/inet/skbuff.c | skb->users=0; |
skb | 418 | net/inet/skbuff.c | return skb; |
skb | 87 | net/inet/skbuff.h | extern void kfree_skb(struct sk_buff *skb, int rw); |
skb | 100 | net/inet/skbuff.h | extern void skb_check(struct sk_buff *skb,int, char *); |
skb | 101 | net/inet/skbuff.h | #define IS_SKB(skb) skb_check((skb),__LINE__,__FILE__) |
skb | 106 | net/inet/skbuff.h | extern void skb_free_datagram(struct sk_buff *skb); |
skb | 132 | net/inet/sock.c | print_skb(struct sk_buff *skb) |
skb | 134 | net/inet/sock.c | if (!skb) { |
skb | 138 | net/inet/sock.c | printk(" prev = %p, next = %p\n", skb->prev, skb->next); |
skb | 139 | net/inet/sock.c | printk(" sk = %p link3 = %p\n", skb->sk, skb->link3); |
skb | 140 | net/inet/sock.c | printk(" mem_addr = %p, mem_len = %lu\n", skb->mem_addr, skb->mem_len); |
skb | 141 | net/inet/sock.c | printk(" used = %d free = %d\n", skb->used,skb->free); |
skb | 306 | net/inet/sock.c | struct sk_buff *skb; |
skb | 328 | net/inet/sock.c | for(skb = sk->wfront; skb != NULL; ) |
skb | 332 | net/inet/sock.c | skb2=(struct sk_buff *)skb->next; |
skb | 333 | net/inet/sock.c | if (skb->magic != TCP_WRITE_QUEUE_MAGIC) { |
skb | 335 | net/inet/sock.c | skb->magic); |
skb | 338 | net/inet/sock.c | IS_SKB(skb); |
skb | 339 | net/inet/sock.c | kfree_skb(skb, FREE_WRITE); |
skb | 340 | net/inet/sock.c | skb = skb2; |
skb | 348 | net/inet/sock.c | while((skb=skb_dequeue(&sk->rqueue))!=NULL) |
skb | 354 | net/inet/sock.c | if (skb->sk != NULL && skb->sk != sk) |
skb | 356 | net/inet/sock.c | IS_SKB(skb); |
skb | 357 | net/inet/sock.c | skb->sk->dead = 1; |
skb | 358 | net/inet/sock.c | skb->sk->prot->close(skb->sk, 0); |
skb | 360 | net/inet/sock.c | IS_SKB(skb); |
skb | 361 | net/inet/sock.c | kfree_skb(skb, FREE_READ); |
skb | 367 | net/inet/sock.c | for(skb = sk->send_head; skb != NULL; ) |
skb | 379 | net/inet/sock.c | if (skb->next != NULL) |
skb | 381 | net/inet/sock.c | IS_SKB(skb); |
skb | 382 | net/inet/sock.c | skb_unlink(skb); |
skb | 384 | net/inet/sock.c | skb->dev = NULL; |
skb | 386 | net/inet/sock.c | skb2 = (struct sk_buff *)skb->link3; |
skb | 387 | net/inet/sock.c | kfree_skb(skb, FREE_WRITE); |
skb | 388 | net/inet/sock.c | skb = skb2; |
skb | 398 | net/inet/sock.c | skb = (struct sk_buff *)sk->back_log; |
skb | 403 | net/inet/sock.c | skb2 = (struct sk_buff *)skb->next; |
skb | 404 | net/inet/sock.c | kfree_skb(skb, FREE_READ); |
skb | 405 | net/inet/sock.c | skb = skb2; |
skb | 407 | net/inet/sock.c | while(skb != sk->back_log); |
skb | 1663 | net/inet/sock.c | struct sk_buff *skb; |
skb | 1666 | net/inet/sock.c | skb =(struct sk_buff *)sk->back_log; |
skb | 1667 | net/inet/sock.c | DPRINTF((DBG_INET, "release_sock: skb = %X:\n", skb)); |
skb | 1668 | net/inet/sock.c | if (skb->next != skb) { |
skb | 1669 | net/inet/sock.c | sk->back_log = skb->next; |
skb | 1670 | net/inet/sock.c | skb->prev->next = skb->next; |
skb | 1671 | net/inet/sock.c | skb->next->prev = skb->prev; |
skb | 1677 | net/inet/sock.c | if (sk->prot->rcv) sk->prot->rcv(skb, skb->dev, sk->opt, |
skb | 1678 | net/inet/sock.c | skb->saddr, skb->len, skb->daddr, 1, |
skb | 154 | net/inet/sock.h | int (*build_header)(struct sk_buff *skb, |
skb | 163 | net/inet/sock.h | struct device *dev, struct sk_buff *skb, |
skb | 257 | net/inet/tcp.c | struct sk_buff *skb; |
skb | 278 | net/inet/tcp.c | skb =(struct sk_buff *)sk->rqueue; |
skb | 292 | net/inet/tcp.c | if (before(counted, skb->h.th->seq)) /* Found a hole so stops here */ |
skb | 294 | 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 | 295 | net/inet/tcp.c | if (skb->h.th->syn) sum++; |
skb | 296 | net/inet/tcp.c | if (skb->h.th->urg) { |
skb | 297 | net/inet/tcp.c | sum -= ntohs(skb->h.th->urg_ptr); /* Dont count urg data */ |
skb | 301 | net/inet/tcp.c | if (skb->h.th->syn) amount--; |
skb | 305 | net/inet/tcp.c | skb =(struct sk_buff *)skb->next; /* Move along */ |
skb | 306 | net/inet/tcp.c | } while(skb != sk->rqueue); |
skb | 440 | net/inet/tcp.c | struct sk_buff *skb; |
skb | 448 | net/inet/tcp.c | if ((skb=skb_peek(&sk->rqueue)) != NULL) |
skb | 450 | net/inet/tcp.c | if (sk->copied_seq+1 == skb->h.th->seq && skb->h.th->urg) |
skb | 556 | net/inet/tcp.c | struct sk_buff *skb; |
skb | 560 | net/inet/tcp.c | skb = sk->send_tmp; |
skb | 563 | net/inet/tcp.c | tcp_send_check(skb->h.th, sk->saddr, sk->daddr, |
skb | 564 | net/inet/tcp.c | skb->len-(unsigned long)skb->h.th + |
skb | 565 | net/inet/tcp.c | (unsigned long)(skb+1), sk); |
skb | 567 | net/inet/tcp.c | skb->h.seq = sk->send_seq; |
skb | 574 | net/inet/tcp.c | skb->next = NULL; |
skb | 575 | net/inet/tcp.c | skb->magic = TCP_WRITE_QUEUE_MAGIC; |
skb | 577 | net/inet/tcp.c | sk->wfront=skb; |
skb | 579 | net/inet/tcp.c | sk->wback->next = skb; |
skb | 581 | net/inet/tcp.c | sk->wback = skb; |
skb | 583 | net/inet/tcp.c | sk->prot->queue_xmit(sk, skb->dev, skb,0); |
skb | 703 | net/inet/tcp.c | struct sk_buff *skb; |
skb | 788 | net/inet/tcp.c | skb = sk->send_tmp; |
skb | 790 | net/inet/tcp.c | copy = min(sk->mss - skb->len + 128 + |
skb | 799 | net/inet/tcp.c | memcpy_fromfs((unsigned char *)(skb+1) + skb->len, from, copy); |
skb | 800 | net/inet/tcp.c | skb->len += copy; |
skb | 807 | net/inet/tcp.c | if (skb->len -(unsigned long)skb->h.th + |
skb | 808 | net/inet/tcp.c | (unsigned long)(skb+1) >= sk->mss ||(flags & MSG_OOB)) { |
skb | 830 | net/inet/tcp.c | skb = (struct sk_buff *) prot->wmalloc(sk, |
skb | 832 | net/inet/tcp.c | sizeof(*skb), 0, GFP_KERNEL); |
skb | 834 | net/inet/tcp.c | sk->send_tmp = skb; |
skb | 835 | net/inet/tcp.c | if (skb != NULL) |
skb | 836 | net/inet/tcp.c | skb->mem_len = sk->mss + 128 + prot->max_header + sizeof(*skb); |
skb | 840 | net/inet/tcp.c | skb = (struct sk_buff *) prot->wmalloc(sk, |
skb | 842 | net/inet/tcp.c | sizeof(*skb), 0, GFP_KERNEL); |
skb | 844 | net/inet/tcp.c | if (skb != NULL) |
skb | 845 | net/inet/tcp.c | skb->mem_len = copy+prot->max_header + sizeof(*skb); |
skb | 849 | net/inet/tcp.c | if (skb == NULL) { |
skb | 878 | net/inet/tcp.c | skb->mem_addr = skb; |
skb | 879 | net/inet/tcp.c | skb->len = 0; |
skb | 880 | net/inet/tcp.c | skb->sk = sk; |
skb | 881 | net/inet/tcp.c | skb->free = 0; |
skb | 883 | net/inet/tcp.c | buff =(unsigned char *)(skb+1); |
skb | 889 | net/inet/tcp.c | tmp = prot->build_header(skb, sk->saddr, sk->daddr, &dev, |
skb | 890 | net/inet/tcp.c | IPPROTO_TCP, sk->opt, skb->mem_len); |
skb | 892 | net/inet/tcp.c | prot->wfree(sk, skb->mem_addr, skb->mem_len); |
skb | 898 | net/inet/tcp.c | skb->len += tmp; |
skb | 899 | net/inet/tcp.c | skb->dev = dev; |
skb | 901 | net/inet/tcp.c | skb->h.th =(struct tcphdr *) buff; |
skb | 904 | net/inet/tcp.c | prot->wfree(sk, skb->mem_addr, skb->mem_len); |
skb | 915 | net/inet/tcp.c | skb->len += tmp; |
skb | 921 | net/inet/tcp.c | skb->len += copy; |
skb | 922 | net/inet/tcp.c | skb->free = 0; |
skb | 930 | net/inet/tcp.c | skb->h.seq = sk->send_seq; |
skb | 937 | net/inet/tcp.c | skb->next = NULL; |
skb | 938 | net/inet/tcp.c | skb->magic = TCP_WRITE_QUEUE_MAGIC; |
skb | 940 | net/inet/tcp.c | sk->wfront = skb; |
skb | 942 | net/inet/tcp.c | sk->wback->next = skb; |
skb | 944 | net/inet/tcp.c | sk->wback = skb; |
skb | 946 | net/inet/tcp.c | prot->queue_xmit(sk, dev, skb,0); |
skb | 1052 | net/inet/tcp.c | struct sk_buff *skb; |
skb | 1066 | net/inet/tcp.c | while((skb=skb_peek(&sk->rqueue)) != NULL ) |
skb | 1068 | net/inet/tcp.c | if (!skb->used) |
skb | 1070 | net/inet/tcp.c | skb_unlink(skb); |
skb | 1071 | net/inet/tcp.c | skb->sk = sk; |
skb | 1072 | net/inet/tcp.c | kfree_skb(skb, FREE_READ); |
skb | 1123 | net/inet/tcp.c | struct sk_buff *skb; |
skb | 1181 | net/inet/tcp.c | skb = skb_peek(&sk->rqueue); |
skb | 1185 | net/inet/tcp.c | if (skb->h.th->urg && !skb->urg_used) { |
skb | 1186 | net/inet/tcp.c | if (skb->h.th->urg_ptr == 0) { |
skb | 1187 | net/inet/tcp.c | skb->h.th->urg_ptr = ntohs(skb->len); |
skb | 1189 | net/inet/tcp.c | amt = min(ntohs(skb->h.th->urg_ptr),len); |
skb | 1193 | net/inet/tcp.c | memcpy_tofs(to,(unsigned char *)(skb->h.th) + |
skb | 1194 | net/inet/tcp.c | skb->h.th->doff*4, amt); |
skb | 1198 | net/inet/tcp.c | skb->urg_used = 1; |
skb | 1205 | net/inet/tcp.c | skb =(struct sk_buff *)skb->next; |
skb | 1206 | net/inet/tcp.c | } while(skb != sk->rqueue); |
skb | 1220 | net/inet/tcp.c | struct sk_buff *skb; |
skb | 1244 | net/inet/tcp.c | skb=skb_peek(&sk->rqueue); |
skb | 1253 | net/inet/tcp.c | while(skb == NULL || |
skb | 1254 | net/inet/tcp.c | before(sk->copied_seq+1, skb->h.th->seq) || skb->used) { |
skb | 1255 | net/inet/tcp.c | DPRINTF((DBG_TCP, "skb = %X:\n", skb)); |
skb | 1354 | net/inet/tcp.c | skb=skb_peek(&sk->rqueue); |
skb | 1362 | net/inet/tcp.c | offset = sk->copied_seq+1 - skb->h.th->seq; |
skb | 1364 | net/inet/tcp.c | if (skb->h.th->syn) offset--; |
skb | 1365 | net/inet/tcp.c | if (offset < skb->len) /* Some of the packet is useful */ |
skb | 1371 | net/inet/tcp.c | if (skb->h.th->urg) |
skb | 1373 | net/inet/tcp.c | if (skb->urg_used) |
skb | 1375 | net/inet/tcp.c | sk->copied_seq += ntohs(skb->h.th->urg_ptr); |
skb | 1376 | net/inet/tcp.c | offset += ntohs(skb->h.th->urg_ptr); |
skb | 1377 | net/inet/tcp.c | if (offset >= skb->len) |
skb | 1379 | net/inet/tcp.c | skb->used = 1; |
skb | 1380 | net/inet/tcp.c | skb =(struct sk_buff *)skb->next; |
skb | 1394 | net/inet/tcp.c | used = min(skb->len - offset, len); |
skb | 1396 | net/inet/tcp.c | memcpy_tofs(to,((unsigned char *)skb->h.th) + |
skb | 1397 | net/inet/tcp.c | skb->h.th->doff*4 + offset, used); |
skb | 1412 | net/inet/tcp.c | (!skb->h.th->urg || skb->urg_used) && |
skb | 1413 | net/inet/tcp.c | (used + offset >= skb->len)) |
skb | 1414 | net/inet/tcp.c | skb->used = 1; |
skb | 1420 | net/inet/tcp.c | if (/*skb->h.th->psh || */skb->h.th->urg) |
skb | 1427 | net/inet/tcp.c | skb->used = 1; |
skb | 1430 | net/inet/tcp.c | skb =(struct sk_buff *)skb->next; |
skb | 1698 | net/inet/tcp.c | tcp_conn_request(struct sock *sk, struct sk_buff *skb, |
skb | 1711 | net/inet/tcp.c | sk, skb, daddr, saddr, opt, dev)); |
skb | 1713 | net/inet/tcp.c | th = skb->h.th; |
skb | 1721 | net/inet/tcp.c | kfree_skb(skb, FREE_READ); |
skb | 1730 | net/inet/tcp.c | kfree_skb(skb, FREE_READ); |
skb | 1744 | net/inet/tcp.c | kfree_skb(skb, FREE_READ); |
skb | 1773 | net/inet/tcp.c | newsk->acked_seq = skb->h.th->seq+1; |
skb | 1774 | net/inet/tcp.c | newsk->fin_seq = skb->h.th->seq; |
skb | 1775 | net/inet/tcp.c | newsk->copied_seq = skb->h.th->seq; |
skb | 1785 | net/inet/tcp.c | newsk->dummy_th.source = skb->h.th->dest; |
skb | 1786 | net/inet/tcp.c | newsk->dummy_th.dest = skb->h.th->source; |
skb | 1802 | net/inet/tcp.c | newsk->acked_seq = skb->h.th->seq + 1; |
skb | 1803 | net/inet/tcp.c | newsk->copied_seq = skb->h.th->seq; |
skb | 1806 | net/inet/tcp.c | if (skb->h.th->doff == 5) { |
skb | 1809 | net/inet/tcp.c | ptr =(unsigned char *)(skb->h.th + 1); |
skb | 1818 | net/inet/tcp.c | tcp_options(newsk,skb->h.th); |
skb | 1825 | net/inet/tcp.c | kfree_skb(skb, FREE_READ); |
skb | 1847 | net/inet/tcp.c | skb->sk = sk; |
skb | 1848 | net/inet/tcp.c | kfree_skb(skb, FREE_READ); |
skb | 1855 | net/inet/tcp.c | memcpy(t1, skb->h.th, sizeof(*t1)); |
skb | 1859 | net/inet/tcp.c | t1->dest = skb->h.th->source; |
skb | 1871 | net/inet/tcp.c | t1->ack_seq = ntohl(skb->h.th->seq+1); |
skb | 1884 | net/inet/tcp.c | skb->sk = newsk; |
skb | 1887 | net/inet/tcp.c | sk->rmem_alloc -= skb->mem_len; |
skb | 1888 | net/inet/tcp.c | newsk->rmem_alloc += skb->mem_len; |
skb | 1890 | net/inet/tcp.c | skb_queue_tail(&sk->rqueue,skb); |
skb | 1920 | net/inet/tcp.c | struct sk_buff *skb; |
skb | 1923 | net/inet/tcp.c | skb = skb_peek(&sk->rqueue); |
skb | 1925 | net/inet/tcp.c | skb2 =(struct sk_buff *)skb->next; |
skb | 1927 | net/inet/tcp.c | if (skb->len > 0 && |
skb | 1928 | net/inet/tcp.c | after(skb->h.th->seq + skb->len + 1, sk->copied_seq)) |
skb | 1930 | net/inet/tcp.c | kfree_skb(skb, FREE_WRITE); |
skb | 1931 | net/inet/tcp.c | skb = skb2; |
skb | 1932 | net/inet/tcp.c | } while(skb != sk->rqueue); |
skb | 1936 | net/inet/tcp.c | while((skb=skb_dequeue(&sk->rqueue))!=NULL) |
skb | 1938 | net/inet/tcp.c | if(skb->len > 0 && after(skb->h.th->seq + skb->len + 1 , sk->copied_seq)) |
skb | 1940 | net/inet/tcp.c | kfree_skb(skb, FREE_READ); |
skb | 2060 | net/inet/tcp.c | struct sk_buff *skb; |
skb | 2072 | net/inet/tcp.c | skb = sk->wfront; |
skb | 2073 | net/inet/tcp.c | IS_SKB(skb); |
skb | 2074 | net/inet/tcp.c | sk->wfront =(struct sk_buff *)skb->next; |
skb | 2076 | net/inet/tcp.c | skb->next = NULL; |
skb | 2077 | net/inet/tcp.c | if (skb->magic != TCP_WRITE_QUEUE_MAGIC) { |
skb | 2079 | net/inet/tcp.c | "queue\n", skb->magic); |
skb | 2084 | net/inet/tcp.c | skb->magic = 0; |
skb | 2088 | net/inet/tcp.c | if (before(skb->h.seq, sk->rcv_ack_seq +1)) { |
skb | 2090 | net/inet/tcp.c | kfree_skb(skb, FREE_WRITE); |
skb | 2093 | net/inet/tcp.c | sk->prot->queue_xmit(sk, skb->dev, skb, skb->free); |
skb | 2107 | net/inet/tcp.c | struct sk_buff *skb,*skb2,*skb3; |
skb | 2109 | net/inet/tcp.c | for (skb = sk->send_head; skb != NULL; skb = skb2) { |
skb | 2110 | net/inet/tcp.c | skb2 = (struct sk_buff *)skb->link3; |
skb | 2112 | net/inet/tcp.c | skb->link3 = list; |
skb | 2113 | net/inet/tcp.c | sk->send_tail = skb; |
skb | 2114 | net/inet/tcp.c | list = skb; |
skb | 2118 | net/inet/tcp.c | before(skb->h.seq, skb3->link3->h.seq)) { |
skb | 2119 | net/inet/tcp.c | skb->link3 = skb3->link3; |
skb | 2120 | net/inet/tcp.c | skb3->link3 = skb; |
skb | 2121 | net/inet/tcp.c | if (skb->link3 == NULL) sk->send_tail = skb; |
skb | 2168 | net/inet/tcp.c | struct sk_buff *skb; |
skb | 2181 | net/inet/tcp.c | skb = skb2; |
skb | 2182 | net/inet/tcp.c | skb2 = (struct sk_buff *)skb->link3; |
skb | 2183 | net/inet/tcp.c | skb->link3 = NULL; |
skb | 2184 | net/inet/tcp.c | if (after(skb->h.seq, sk->window_seq)) { |
skb | 2187 | net/inet/tcp.c | if (skb->next != NULL) { |
skb | 2191 | net/inet/tcp.c | if (skb->next != skb) { |
skb | 2192 | net/inet/tcp.c | skb->next->prev = skb->prev; |
skb | 2193 | net/inet/tcp.c | skb->prev->next = skb->next; |
skb | 2197 | net/inet/tcp.c | if (skb->dev->buffs[i] == skb) { |
skb | 2198 | net/inet/tcp.c | if (skb->next == skb) |
skb | 2199 | net/inet/tcp.c | skb->dev->buffs[i] = NULL; |
skb | 2201 | net/inet/tcp.c | skb->dev->buffs[i] = skb->next; |
skb | 2205 | net/inet/tcp.c | if (arp_q == skb) { |
skb | 2206 | net/inet/tcp.c | if (skb->next == skb) arp_q = NULL; |
skb | 2207 | net/inet/tcp.c | else arp_q = skb->next; |
skb | 2210 | net/inet/tcp.c | skb_unlink(skb); |
skb | 2214 | net/inet/tcp.c | skb->magic = TCP_WRITE_QUEUE_MAGIC; |
skb | 2216 | net/inet/tcp.c | skb->next = sk->wfront; |
skb | 2217 | net/inet/tcp.c | sk->wfront = skb; |
skb | 2219 | net/inet/tcp.c | skb->next = wskb->next; |
skb | 2220 | net/inet/tcp.c | wskb->next = skb; |
skb | 2222 | net/inet/tcp.c | if (sk->wback == wskb) sk->wback = skb; |
skb | 2223 | net/inet/tcp.c | wskb = skb; |
skb | 2226 | net/inet/tcp.c | sk->send_head = skb; |
skb | 2227 | net/inet/tcp.c | sk->send_tail = skb; |
skb | 2229 | net/inet/tcp.c | sk->send_tail->link3 = skb; |
skb | 2230 | net/inet/tcp.c | sk->send_tail = skb; |
skb | 2232 | net/inet/tcp.c | skb->link3 = NULL; |
skb | 2400 | net/inet/tcp.c | tcp_data(struct sk_buff *skb, struct sock *sk, |
skb | 2407 | net/inet/tcp.c | th = skb->h.th; |
skb | 2409 | net/inet/tcp.c | skb->len = len -(th->doff*4); |
skb | 2411 | net/inet/tcp.c | DPRINTF((DBG_TCP, "tcp_data len = %d sk = %X:\n", skb->len, sk)); |
skb | 2413 | net/inet/tcp.c | sk->bytes_rcv += skb->len; |
skb | 2414 | net/inet/tcp.c | if (skb->len == 0 && !th->fin && !th->urg && !th->psh) { |
skb | 2417 | net/inet/tcp.c | kfree_skb(skb, FREE_READ); |
skb | 2422 | net/inet/tcp.c | sk->acked_seq = th->seq + skb->len + th->syn + th->fin; |
skb | 2423 | net/inet/tcp.c | tcp_reset(sk->saddr, sk->daddr, skb->h.th, |
skb | 2424 | net/inet/tcp.c | sk->prot, NULL, skb->dev); |
skb | 2429 | net/inet/tcp.c | kfree_skb(skb, FREE_READ); |
skb | 2444 | net/inet/tcp.c | DPRINTF((DBG_TCP, "tcp_data: skb = %X:\n", skb)); |
skb | 2446 | net/inet/tcp.c | sk->rqueue = skb; |
skb | 2447 | net/inet/tcp.c | skb->next = skb; |
skb | 2448 | net/inet/tcp.c | skb->prev = skb; |
skb | 2449 | net/inet/tcp.c | skb->list = &sk->rqueue; |
skb | 2451 | net/inet/tcp.c | skb_queue_head(&sk->rqueue,skb); |
skb | 2461 | net/inet/tcp.c | printk("skb->h.th->seq = %ld\n",skb->h.th->seq); |
skb | 2467 | net/inet/tcp.c | skb->prev = skb1; |
skb | 2468 | net/inet/tcp.c | skb->next = skb1->next; |
skb | 2469 | net/inet/tcp.c | skb->next->prev = skb; |
skb | 2470 | net/inet/tcp.c | skb1->next = skb; |
skb | 2471 | net/inet/tcp.c | if (skb1 == sk->rqueue) sk->rqueue = skb; |
skb | 2475 | net/inet/tcp.c | skb->next= skb1; |
skb | 2476 | net/inet/tcp.c | skb->prev = skb1->prev; |
skb | 2477 | net/inet/tcp.c | skb->prev->next = skb; |
skb | 2478 | net/inet/tcp.c | skb1->prev = skb; |
skb | 2484 | net/inet/tcp.c | if (th->seq==skb1->h.th->seq && skb->len>= skb1->len) |
skb | 2486 | net/inet/tcp.c | skb_append(skb1,skb); |
skb | 2495 | net/inet/tcp.c | skb_append(skb1,skb); |
skb | 2500 | net/inet/tcp.c | skb_queue_head(&sk->rqueue, skb); |
skb | 2505 | net/inet/tcp.c | DPRINTF((DBG_TCP, "skb = %X:\n", skb)); |
skb | 2508 | net/inet/tcp.c | th->ack_seq = th->seq + skb->len; |
skb | 2522 | net/inet/tcp.c | skb->acked = 1; |
skb | 2525 | net/inet/tcp.c | if (skb->h.th->fin) { |
skb | 2530 | net/inet/tcp.c | for(skb2 = (struct sk_buff *)skb->next; |
skb | 2575 | net/inet/tcp.c | if (!skb->acked) { |
skb | 2716 | net/inet/tcp.c | struct sk_buff *skb; |
skb | 2733 | net/inet/tcp.c | while((skb = get_firstr(sk)) == NULL) { |
skb | 2753 | net/inet/tcp.c | newsk = skb->sk; |
skb | 2755 | net/inet/tcp.c | kfree_skb(skb, FREE_READ); |
skb | 2912 | net/inet/tcp.c | tcp_rcv(struct sk_buff *skb, struct device *dev, struct options *opt, |
skb | 2919 | net/inet/tcp.c | if (!skb) { |
skb | 2937 | net/inet/tcp.c | th = skb->h.th; |
skb | 2942 | net/inet/tcp.c | DPRINTF((DBG_TCP, "len = %d, redo = %d, skb=%X\n", len, redo, skb)); |
skb | 2955 | net/inet/tcp.c | skb->sk = NULL; |
skb | 2958 | net/inet/tcp.c | kfree_skb(skb,FREE_READ); |
skb | 2974 | net/inet/tcp.c | skb->sk = NULL; |
skb | 2975 | net/inet/tcp.c | kfree_skb(skb, FREE_READ); |
skb | 2979 | net/inet/tcp.c | skb->len = len; |
skb | 2980 | net/inet/tcp.c | skb->sk = sk; |
skb | 2981 | net/inet/tcp.c | skb->acked = 0; |
skb | 2982 | net/inet/tcp.c | skb->used = 0; |
skb | 2983 | net/inet/tcp.c | skb->free = 0; |
skb | 2984 | net/inet/tcp.c | skb->urg_used = 0; |
skb | 2985 | net/inet/tcp.c | skb->saddr = daddr; |
skb | 2986 | net/inet/tcp.c | skb->daddr = saddr; |
skb | 2994 | net/inet/tcp.c | sk->back_log = skb; |
skb | 2995 | net/inet/tcp.c | skb->next = skb; |
skb | 2996 | net/inet/tcp.c | skb->prev = skb; |
skb | 2998 | net/inet/tcp.c | skb->next = sk->back_log; |
skb | 2999 | net/inet/tcp.c | skb->prev = sk->back_log->prev; |
skb | 3000 | net/inet/tcp.c | skb->prev->next = skb; |
skb | 3001 | net/inet/tcp.c | skb->next->prev = skb; |
skb | 3021 | net/inet/tcp.c | if (sk->rmem_alloc + skb->mem_len >= sk->rcvbuf) { |
skb | 3022 | net/inet/tcp.c | skb->sk = NULL; |
skb | 3024 | net/inet/tcp.c | kfree_skb(skb, FREE_READ); |
skb | 3028 | net/inet/tcp.c | sk->rmem_alloc += skb->mem_len; |
skb | 3047 | net/inet/tcp.c | kfree_skb(skb, FREE_READ); |
skb | 3062 | net/inet/tcp.c | kfree_skb(skb, FREE_READ); |
skb | 3087 | net/inet/tcp.c | kfree_skb(skb, FREE_READ); |
skb | 3102 | net/inet/tcp.c | kfree_skb(skb, FREE_READ); |
skb | 3109 | net/inet/tcp.c | kfree_skb(skb, FREE_READ); |
skb | 3116 | net/inet/tcp.c | kfree_skb(skb, FREE_READ); |
skb | 3123 | net/inet/tcp.c | kfree_skb(skb, FREE_READ); |
skb | 3128 | net/inet/tcp.c | if (tcp_data(skb, sk, saddr, len)) { |
skb | 3129 | net/inet/tcp.c | kfree_skb(skb, FREE_READ); |
skb | 3140 | net/inet/tcp.c | kfree_skb(skb, FREE_READ); |
skb | 3150 | net/inet/tcp.c | kfree_skb(skb, FREE_READ); |
skb | 3156 | net/inet/tcp.c | kfree_skb(skb, FREE_READ); |
skb | 3162 | net/inet/tcp.c | kfree_skb(skb, FREE_READ); |
skb | 3182 | net/inet/tcp.c | tcp_conn_request(sk, skb, daddr, saddr, opt, dev); |
skb | 3187 | net/inet/tcp.c | kfree_skb(skb, FREE_READ); |
skb | 3193 | net/inet/tcp.c | kfree_skb(skb, FREE_READ); |
skb | 3207 | net/inet/tcp.c | kfree_skb(skb, FREE_READ); |
skb | 3220 | net/inet/tcp.c | kfree_skb(skb, FREE_READ); |
skb | 3230 | net/inet/tcp.c | kfree_skb(skb, FREE_READ); |
skb | 3240 | net/inet/tcp.c | kfree_skb(skb, FREE_READ); |
skb | 3250 | net/inet/tcp.c | kfree_skb(skb, FREE_READ); |
skb | 3265 | net/inet/tcp.c | kfree_skb(skb, FREE_READ); |
skb | 3289 | net/inet/tcp.c | kfree_skb(skb, FREE_READ); |
skb | 3294 | net/inet/tcp.c | if (tcp_data(skb, sk, saddr, len)) |
skb | 3295 | net/inet/tcp.c | kfree_skb(skb, FREE_READ); |
skb | 3304 | net/inet/tcp.c | kfree_skb(skb, FREE_READ); |
skb | 3310 | net/inet/tcp.c | if (tcp_data(skb, sk, saddr, len)) { |
skb | 3311 | net/inet/tcp.c | kfree_skb(skb, FREE_READ); |
skb | 140 | net/inet/tcp.h | extern int tcp_rcv(struct sk_buff *skb, struct device *dev, |
skb | 218 | net/inet/udp.c | struct sk_buff *skb; |
skb | 236 | net/inet/udp.c | skb = (struct sk_buff *) sk->prot->wmalloc(sk, size, 0, GFP_KERNEL); |
skb | 237 | net/inet/udp.c | if (skb == NULL) return(-ENOMEM); |
skb | 239 | net/inet/udp.c | skb->mem_addr = skb; |
skb | 240 | net/inet/udp.c | skb->mem_len = size; |
skb | 241 | net/inet/udp.c | skb->sk = NULL; /* to avoid changing sk->saddr */ |
skb | 242 | net/inet/udp.c | skb->free = 1; |
skb | 243 | net/inet/udp.c | skb->arp = 0; |
skb | 246 | net/inet/udp.c | buff = (unsigned char *) (skb+1); |
skb | 250 | net/inet/udp.c | saddr, sin->sin_addr.s_addr, dev, IPPROTO_UDP, skb->mem_len)); |
skb | 251 | net/inet/udp.c | tmp = sk->prot->build_header(skb, saddr, sin->sin_addr.s_addr, |
skb | 252 | net/inet/udp.c | &dev, IPPROTO_UDP, sk->opt, skb->mem_len); |
skb | 253 | net/inet/udp.c | skb->sk=sk; /* So memory is freed correctly */ |
skb | 256 | net/inet/udp.c | sk->prot->wfree(sk, skb->mem_addr, skb->mem_len); |
skb | 263 | net/inet/udp.c | skb->len = tmp + sizeof(struct udphdr) + len; /* len + UDP + IP + MAC */ |
skb | 264 | net/inet/udp.c | skb->dev = dev; |
skb | 273 | net/inet/udp.c | if (skb->len > 4095) |
skb | 277 | net/inet/udp.c | sk->prot->wfree(sk, skb->mem_addr, skb->mem_len); |
skb | 292 | net/inet/udp.c | udp_send_check(uh, saddr, sin->sin_addr.s_addr, skb->len - tmp, sk); |
skb | 295 | net/inet/udp.c | sk->prot->queue_xmit(sk, dev, skb, 1); |
skb | 400 | net/inet/udp.c | struct sk_buff *skb; |
skb | 405 | net/inet/udp.c | skb = sk->rqueue; |
skb | 406 | net/inet/udp.c | if (skb != NULL) { |
skb | 412 | net/inet/udp.c | amount = skb->len; |
skb | 439 | net/inet/udp.c | struct sk_buff *skb; |
skb | 475 | net/inet/udp.c | skb=skb_recv_datagram(sk,flags,noblock,&er); |
skb | 476 | net/inet/udp.c | if(skb==NULL) |
skb | 478 | net/inet/udp.c | copied = min(len, skb->len); |
skb | 481 | net/inet/udp.c | skb_copy_datagram(skb,sizeof(struct udphdr),to,copied); |
skb | 488 | net/inet/udp.c | addr.sin_port = skb->h.uh->source; |
skb | 489 | net/inet/udp.c | addr.sin_addr.s_addr = skb->daddr; |
skb | 493 | net/inet/udp.c | skb_free_datagram(skb); |
skb | 546 | net/inet/udp.c | udp_rcv(struct sk_buff *skb, struct device *dev, struct options *opt, |
skb | 553 | net/inet/udp.c | uh = (struct udphdr *) skb->h.uh; |
skb | 559 | net/inet/udp.c | icmp_send(skb, ICMP_DEST_UNREACH, ICMP_PORT_UNREACH, dev); |
skb | 566 | net/inet/udp.c | skb->sk = NULL; |
skb | 567 | net/inet/udp.c | kfree_skb(skb, FREE_WRITE); |
skb | 573 | net/inet/udp.c | skb->sk = NULL; |
skb | 574 | net/inet/udp.c | kfree_skb(skb, FREE_WRITE); |
skb | 578 | net/inet/udp.c | skb->sk = sk; |
skb | 579 | net/inet/udp.c | skb->dev = dev; |
skb | 580 | net/inet/udp.c | skb->len = len; |
skb | 583 | net/inet/udp.c | skb->daddr = saddr; |
skb | 584 | net/inet/udp.c | skb->saddr = daddr; |
skb | 588 | net/inet/udp.c | if (sk->rmem_alloc + skb->mem_len >= sk->rcvbuf) |
skb | 590 | net/inet/udp.c | skb->sk = NULL; |
skb | 591 | net/inet/udp.c | kfree_skb(skb, FREE_WRITE); |
skb | 595 | net/inet/udp.c | sk->rmem_alloc += skb->mem_len; |
skb | 603 | net/inet/udp.c | skb_queue_tail(&sk->rqueue,skb); |
skb | 605 | net/inet/udp.c | skb->len = len - sizeof(*uh); |
skb | 43 | net/inet/udp.h | extern int udp_rcv(struct sk_buff *skb, struct device *dev, |