tag | line | file | source code |
skb | 85 | net/tcp/arp.c | struct sk_buff *skb; |
skb | 92 | net/tcp/arp.c | while ((skb = next) != NULL) { |
skb | 93 | net/tcp/arp.c | if (skb->magic != ARP_QUEUE_MAGIC) |
skb | 95 | net/tcp/arp.c | printk ("arp.c skb with bad magic - %X: squashing queue\n", skb->magic); |
skb | 99 | net/tcp/arp.c | if (skb->next == NULL |
skb | 101 | net/tcp/arp.c | || (unsigned long)(skb->next) > 16*1024*1024 |
skb | 110 | net/tcp/arp.c | next = (struct sk_buff *)skb->next; |
skb | 111 | net/tcp/arp.c | if (next == skb) |
skb | 117 | net/tcp/arp.c | skb->prev->next = next; |
skb | 118 | net/tcp/arp.c | next->prev = skb->prev; |
skb | 121 | net/tcp/arp.c | skb->magic = 0; |
skb | 122 | net/tcp/arp.c | skb->next = NULL; |
skb | 123 | net/tcp/arp.c | skb->prev = NULL; |
skb | 125 | net/tcp/arp.c | if (!skb->dev->rebuild_header (skb+1, skb->dev)) |
skb | 127 | net/tcp/arp.c | skb->next = NULL; |
skb | 128 | net/tcp/arp.c | skb->prev = NULL; |
skb | 129 | net/tcp/arp.c | skb->arp = 1; |
skb | 130 | net/tcp/arp.c | skb->dev->queue_xmit (skb, skb->dev, 0); |
skb | 135 | net/tcp/arp.c | skb->magic = ARP_QUEUE_MAGIC; |
skb | 138 | net/tcp/arp.c | skb->next = skb; |
skb | 139 | net/tcp/arp.c | skb->prev = skb; |
skb | 140 | net/tcp/arp.c | arp_q = skb; |
skb | 144 | net/tcp/arp.c | skb->next = arp_q; |
skb | 145 | net/tcp/arp.c | skb->prev = arp_q->prev; |
skb | 146 | net/tcp/arp.c | arp_q->prev->next = skb; |
skb | 147 | net/tcp/arp.c | arp_q->prev = skb; |
skb | 245 | net/tcp/arp.c | struct sk_buff *skb; |
skb | 249 | net/tcp/arp.c | skb = arp_malloc (sizeof (*skb) + sizeof (*arp2) + |
skb | 252 | net/tcp/arp.c | if (skb == NULL) return (1); |
skb | 254 | net/tcp/arp.c | skb->lock = 0; |
skb | 255 | net/tcp/arp.c | skb->mem_addr = skb; |
skb | 256 | net/tcp/arp.c | skb->mem_len = sizeof (*skb) + sizeof (*arp2) + 2*arp1->hlen + |
skb | 258 | net/tcp/arp.c | skb->len = sizeof (*arp2) + 2*arp1->hlen + |
skb | 261 | net/tcp/arp.c | tmp = dev->hard_header((unsigned char *)(skb+1), dev, |
skb | 263 | net/tcp/arp.c | *arp_targetp(arp1),skb->len); |
skb | 267 | net/tcp/arp.c | arp2 =(struct arp *) ((unsigned char *)skb+sizeof (*skb) + tmp ); |
skb | 278 | net/tcp/arp.c | skb->free = 1; |
skb | 279 | net/tcp/arp.c | skb->arp = 1; /* so the code will know it's not waiting on an arp. */ |
skb | 280 | net/tcp/arp.c | skb->sk = NULL; |
skb | 281 | net/tcp/arp.c | skb->next = NULL; |
skb | 285 | net/tcp/arp.c | dev->queue_xmit (skb, dev, 0); |
skb | 364 | net/tcp/arp.c | arp_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt) |
skb | 371 | net/tcp/arp.c | arp = skb->h.arp; |
skb | 377 | net/tcp/arp.c | kfree_skb(skb, FREE_READ); |
skb | 384 | net/tcp/arp.c | kfree_skb (skb, FREE_READ); |
skb | 399 | net/tcp/arp.c | kfree_skb (skb, FREE_READ); |
skb | 411 | net/tcp/arp.c | kfree_skb (skb, FREE_READ); |
skb | 417 | net/tcp/arp.c | kfree_skb (skb, FREE_READ); |
skb | 424 | net/tcp/arp.c | struct sk_buff *skb; |
skb | 434 | net/tcp/arp.c | skb = arp_malloc (sizeof (*arp) + sizeof (*skb) + dev->hard_header_len + |
skb | 436 | net/tcp/arp.c | if (skb == NULL) return; |
skb | 438 | net/tcp/arp.c | skb->lock = 0; |
skb | 439 | net/tcp/arp.c | skb->sk = NULL; |
skb | 440 | net/tcp/arp.c | skb->mem_addr = skb; |
skb | 441 | net/tcp/arp.c | skb->mem_len = sizeof (*arp) + sizeof (*skb) + dev->hard_header_len + |
skb | 443 | net/tcp/arp.c | skb->arp = 1; |
skb | 444 | net/tcp/arp.c | skb->dev = dev; |
skb | 445 | net/tcp/arp.c | skb->len = sizeof (*arp) + dev->hard_header_len + 2*dev->addr_len+8; |
skb | 446 | net/tcp/arp.c | skb->next = NULL; |
skb | 448 | net/tcp/arp.c | tmp = dev->hard_header ((unsigned char *)(skb+1), dev, |
skb | 449 | net/tcp/arp.c | ETHERTYPE_ARP, 0, saddr, skb->len); |
skb | 452 | net/tcp/arp.c | arp_free (skb->mem_addr, skb->mem_len); |
skb | 456 | net/tcp/arp.c | arp =(struct arp *) ((unsigned char *)skb+sizeof (*skb) + tmp ); |
skb | 468 | net/tcp/arp.c | dev->queue_xmit (skb, dev, 0); |
skb | 536 | net/tcp/arp.c | arp_queue(struct sk_buff *skb) |
skb | 539 | net/tcp/arp.c | if (skb->next != NULL) |
skb | 543 | net/tcp/arp.c | skb->magic); |
skb | 548 | net/tcp/arp.c | arp_q = skb; |
skb | 549 | net/tcp/arp.c | skb->next = skb; |
skb | 550 | net/tcp/arp.c | skb->prev = skb; |
skb | 554 | net/tcp/arp.c | skb->next = arp_q; |
skb | 555 | net/tcp/arp.c | skb->prev = arp_q->prev; |
skb | 556 | net/tcp/arp.c | skb->next->prev = skb; |
skb | 557 | net/tcp/arp.c | skb->prev->next = skb; |
skb | 559 | net/tcp/arp.c | skb->magic = ARP_QUEUE_MAGIC; |
skb | 83 | net/tcp/arp.h | void arp_queue (struct sk_buff *skb); |
skb | 166 | net/tcp/dev.c | dev_queue_xmit (struct sk_buff *skb, struct device *dev, int pri) |
skb | 172 | net/tcp/dev.c | PRINTK (("dev_queue_xmit (skb=%X, dev=%X, pri = %d)\n", skb, dev, pri)); |
skb | 180 | net/tcp/dev.c | skb->dev = dev; |
skb | 181 | net/tcp/dev.c | if (skb->next != NULL) |
skb | 200 | net/tcp/dev.c | if (dev->hard_start_xmit(skb, dev) == 0) |
skb | 211 | net/tcp/dev.c | dev->buffs[pri]=skb; |
skb | 212 | net/tcp/dev.c | skb->next = skb; |
skb | 213 | net/tcp/dev.c | skb->prev = skb; |
skb | 219 | net/tcp/dev.c | skb->next = (struct sk_buff *)dev->buffs[pri]; |
skb | 220 | net/tcp/dev.c | skb->prev = (struct sk_buff *)dev->buffs[pri]->prev; |
skb | 221 | net/tcp/dev.c | skb->prev->next = skb; |
skb | 222 | net/tcp/dev.c | skb->next->prev = skb; |
skb | 223 | net/tcp/dev.c | dev->buffs[pri] = skb; |
skb | 228 | net/tcp/dev.c | skb->next = skb2; |
skb | 229 | net/tcp/dev.c | skb->prev = skb2->prev; |
skb | 230 | net/tcp/dev.c | skb->next->prev = skb; |
skb | 231 | net/tcp/dev.c | skb->prev->next = skb; |
skb | 234 | net/tcp/dev.c | skb->magic = DEV_QUEUE_MAGIC; |
skb | 259 | net/tcp/dev.c | struct sk_buff *skb=NULL; |
skb | 267 | net/tcp/dev.c | skb = (struct sk_buff *)buff; |
skb | 271 | net/tcp/dev.c | skb = kmalloc (sizeof (*skb) + len, GFP_ATOMIC); |
skb | 272 | net/tcp/dev.c | if (skb == NULL) |
skb | 277 | net/tcp/dev.c | skb->lock = 0; |
skb | 278 | net/tcp/dev.c | skb->mem_len = sizeof (*skb) + len; |
skb | 279 | net/tcp/dev.c | skb->mem_addr = (struct sk_buff *)skb; |
skb | 282 | net/tcp/dev.c | to = (unsigned char *)(skb+1); |
skb | 296 | net/tcp/dev.c | skb->len = len; |
skb | 297 | net/tcp/dev.c | skb->dev = dev; |
skb | 298 | net/tcp/dev.c | skb->sk = NULL; |
skb | 304 | net/tcp/dev.c | skb->prev = skb; |
skb | 305 | net/tcp/dev.c | skb->next = skb; |
skb | 306 | net/tcp/dev.c | backlog = skb; |
skb | 310 | net/tcp/dev.c | skb->prev = (struct sk_buff *)backlog->prev; |
skb | 311 | net/tcp/dev.c | skb->next = (struct sk_buff *)backlog; |
skb | 312 | net/tcp/dev.c | skb->next->prev = skb; |
skb | 313 | net/tcp/dev.c | skb->prev->next = skb; |
skb | 340 | net/tcp/dev.c | struct sk_buff *skb; |
skb | 361 | net/tcp/dev.c | skb= (struct sk_buff *)backlog; |
skb | 362 | net/tcp/dev.c | if (skb->next == skb) |
skb | 368 | net/tcp/dev.c | backlog = skb->next; |
skb | 369 | net/tcp/dev.c | skb->next->prev = skb->prev; |
skb | 370 | net/tcp/dev.c | skb->prev->next = skb->next; |
skb | 375 | net/tcp/dev.c | skb->h.raw = (unsigned char *)(skb+1) + skb->dev->hard_header_len; |
skb | 376 | net/tcp/dev.c | skb->len -= skb->dev->hard_header_len; |
skb | 379 | net/tcp/dev.c | type = skb->dev->type_trans ((struct sk_buff *)skb, skb->dev); |
skb | 391 | net/tcp/dev.c | skb2 = kmalloc (skb->mem_len, GFP_ATOMIC); |
skb | 393 | net/tcp/dev.c | memcpy (skb2, (const void *) skb, skb->mem_len); |
skb | 397 | net/tcp/dev.c | + (unsigned long)skb->h.raw |
skb | 398 | net/tcp/dev.c | - (unsigned long)skb); |
skb | 403 | net/tcp/dev.c | skb2 = (struct sk_buff *)skb; |
skb | 407 | net/tcp/dev.c | ptype->func (skb2, skb->dev, ptype); |
skb | 414 | net/tcp/dev.c | kfree_skb ((struct sk_buff *)skb, FREE_READ); |
skb | 435 | net/tcp/dev.c | struct sk_buff *skb; |
skb | 441 | net/tcp/dev.c | skb=(struct sk_buff *)dev->buffs[i]; |
skb | 442 | net/tcp/dev.c | if (skb->magic != DEV_QUEUE_MAGIC) |
skb | 445 | net/tcp/dev.c | skb->magic); |
skb | 452 | net/tcp/dev.c | skb->magic = 0; |
skb | 454 | net/tcp/dev.c | if (skb->next == skb) |
skb | 461 | net/tcp/dev.c | if (skb->next == NULL |
skb | 463 | net/tcp/dev.c | || (unsigned long)(skb->next) > 16*1024*1024 |
skb | 474 | net/tcp/dev.c | dev->buffs[i]= skb->next; |
skb | 475 | net/tcp/dev.c | skb->prev->next = skb->next; |
skb | 476 | net/tcp/dev.c | skb->next->prev = skb->prev; |
skb | 479 | net/tcp/dev.c | skb->next = NULL; |
skb | 480 | net/tcp/dev.c | skb->prev = NULL; |
skb | 483 | net/tcp/dev.c | dev->queue_xmit (skb, dev, -i-1); |
skb | 79 | net/tcp/dev.h | int (*hard_start_xmit) (struct sk_buff *skb, struct device *dev); |
skb | 83 | net/tcp/dev.h | void (*add_arp) (unsigned long addr, struct sk_buff *skb, |
skb | 85 | net/tcp/dev.h | void (*queue_xmit)(struct sk_buff *skb, struct device *dev, int pri); |
skb | 87 | net/tcp/dev.h | unsigned short (*type_trans) (struct sk_buff *skb, struct device *dev); |
skb | 88 | net/tcp/dev.h | void (*send_packet)(struct sk_buff *skb, struct device *dev); /* no longer |
skb | 118 | net/tcp/dev.h | void dev_queue_xmit (struct sk_buff *skb, struct device *dev, int pri); |
skb | 125 | net/tcp/eth.c | eth_add_arp (unsigned long addr, struct sk_buff *skb, struct device *dev) |
skb | 128 | net/tcp/eth.c | eh = (struct enet_header *)(skb + 1); |
skb | 133 | net/tcp/eth.c | eth_type_trans (struct sk_buff *skb, struct device *dev) |
skb | 136 | net/tcp/eth.c | eh = (struct enet_header *)(skb + 1); |
skb | 99 | net/tcp/eth.h | void eth_add_arp (unsigned long addr, struct sk_buff *skb, |
skb | 101 | net/tcp/eth.h | unsigned short eth_type_trans (struct sk_buff *skb, struct device *dev); |
skb | 122 | net/tcp/icmp.c | struct sk_buff *skb; |
skb | 132 | net/tcp/icmp.c | len = sizeof (*skb) + 8 /* amount of header to return. */ + |
skb | 137 | net/tcp/icmp.c | skb = kmalloc (len, GFP_ATOMIC); |
skb | 138 | net/tcp/icmp.c | if (skb == NULL) return; |
skb | 140 | net/tcp/icmp.c | skb->lock = 0; |
skb | 141 | net/tcp/icmp.c | skb->mem_addr = skb; |
skb | 142 | net/tcp/icmp.c | skb->mem_len = len; |
skb | 144 | net/tcp/icmp.c | len -= sizeof (*skb); |
skb | 151 | net/tcp/icmp.c | offset = ip_build_header( skb, iph->daddr, iph->saddr, |
skb | 156 | net/tcp/icmp.c | skb->sk = NULL; |
skb | 157 | net/tcp/icmp.c | kfree_skb (skb, FREE_READ); |
skb | 162 | net/tcp/icmp.c | skb->len = offset + sizeof (struct icmp_header) + 8; |
skb | 164 | net/tcp/icmp.c | icmph = (struct icmp_header *)((unsigned char *)(skb+1) + offset); |
skb | 171 | net/tcp/icmp.c | ip_queue_xmit (NULL, dev, skb, 1); |
skb | 184 | net/tcp/icmp.c | struct sk_buff *skb; |
skb | 281 | net/tcp/icmp.c | skb = kmalloc( size, GFP_ATOMIC ); |
skb | 282 | net/tcp/icmp.c | if (skb == NULL) |
skb | 288 | net/tcp/icmp.c | skb->sk = NULL; |
skb | 289 | net/tcp/icmp.c | skb->lock = 0; |
skb | 290 | net/tcp/icmp.c | skb->mem_addr = skb; |
skb | 291 | net/tcp/icmp.c | skb->mem_len = size; |
skb | 294 | net/tcp/icmp.c | offset = ip_build_header( skb, daddr, saddr, &dev, IPPROTO_ICMP, opt, len ); |
skb | 299 | net/tcp/icmp.c | kfree_s (skb->mem_addr, skb->mem_len); |
skb | 306 | net/tcp/icmp.c | skb->len = offset + len; |
skb | 309 | net/tcp/icmp.c | icmphr = (struct icmp_header *)( (char *)( skb + 1 ) + offset ); |
skb | 321 | net/tcp/icmp.c | ip_queue_xmit( (volatile struct sock *)NULL, dev, skb, 1 ); |
skb | 71 | net/tcp/icmp.h | icmp_rcv(struct sk_buff *skb, struct device *dev, struct options *opt, |
skb | 514 | net/tcp/ip.c | ip_build_header (struct sk_buff *skb, unsigned long saddr, |
skb | 527 | net/tcp/ip.c | skb, saddr, daddr, *dev, type, opt, len)); |
skb | 528 | net/tcp/ip.c | buff = (unsigned char *)(skb + 1); |
skb | 560 | net/tcp/ip.c | skb->arp = 0; |
skb | 564 | net/tcp/ip.c | skb->arp = 1; |
skb | 568 | net/tcp/ip.c | skb->dev = *dev; |
skb | 811 | net/tcp/ip.c | ip_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt) |
skb | 820 | net/tcp/ip.c | iph=skb->h.iph; |
skb | 828 | net/tcp/ip.c | skb->sk = NULL; |
skb | 829 | net/tcp/ip.c | kfree_skb(skb, 0); |
skb | 841 | net/tcp/ip.c | skb->sk = NULL; |
skb | 842 | net/tcp/ip.c | kfree_skb(skb, 0); |
skb | 852 | net/tcp/ip.c | icmp_reply (skb, ICMP_DEST_UNREACH, ICMP_PROT_UNREACH, dev); |
skb | 853 | net/tcp/ip.c | skb->sk = NULL; |
skb | 854 | net/tcp/ip.c | kfree_skb(skb, 0); |
skb | 858 | net/tcp/ip.c | skb->h.raw += iph->ihl*4; |
skb | 877 | net/tcp/ip.c | skb2 = kmalloc (skb->mem_len, GFP_ATOMIC); |
skb | 879 | net/tcp/ip.c | memcpy (skb2, skb, skb->mem_len); |
skb | 883 | net/tcp/ip.c | + (unsigned long)skb->h.raw |
skb | 884 | net/tcp/ip.c | - (unsigned long)skb); |
skb | 888 | net/tcp/ip.c | skb2 = skb; |
skb | 898 | net/tcp/ip.c | icmp_reply (skb, ICMP_DEST_UNREACH, ICMP_PROT_UNREACH, dev); |
skb | 899 | net/tcp/ip.c | skb->sk = NULL; |
skb | 900 | net/tcp/ip.c | kfree_skb (skb, 0); |
skb | 915 | net/tcp/ip.c | struct sk_buff *skb, int free) |
skb | 927 | net/tcp/ip.c | skb->free = free; |
skb | 928 | net/tcp/ip.c | skb->dev = dev; |
skb | 929 | net/tcp/ip.c | skb->when = jiffies; |
skb | 931 | net/tcp/ip.c | ptr = (unsigned char *)(skb + 1); |
skb | 934 | net/tcp/ip.c | iph->tot_len = net16(skb->len-dev->hard_header_len); |
skb | 937 | net/tcp/ip.c | skb->next = NULL; |
skb | 941 | net/tcp/ip.c | skb->magic = 1; |
skb | 945 | net/tcp/ip.c | skb->link3 = NULL; |
skb | 950 | net/tcp/ip.c | sk->send_tail = skb; |
skb | 951 | net/tcp/ip.c | sk->send_head = skb; |
skb | 955 | net/tcp/ip.c | sk->send_tail->link3 = skb; |
skb | 956 | net/tcp/ip.c | sk->send_tail = skb; |
skb | 965 | net/tcp/ip.c | skb->sk = sk; |
skb | 971 | net/tcp/ip.c | dev->queue_xmit(skb, dev, sk->priority); |
skb | 975 | net/tcp/ip.c | dev->queue_xmit (skb, dev, SOPRI_NORMAL); |
skb | 981 | net/tcp/ip.c | kfree_skb (skb, FREE_WRITE); |
skb | 988 | net/tcp/ip.c | struct sk_buff * skb; |
skb | 993 | net/tcp/ip.c | skb = sk->send_head; |
skb | 994 | net/tcp/ip.c | while (skb != NULL) |
skb | 996 | net/tcp/ip.c | dev = skb->dev; |
skb | 999 | net/tcp/ip.c | if (!skb->arp) |
skb | 1001 | net/tcp/ip.c | if (dev->rebuild_header ((struct enet_header *)(skb+1),dev)) |
skb | 1004 | net/tcp/ip.c | skb=(struct sk_buff *)skb->link3; |
skb | 1008 | net/tcp/ip.c | skb->arp = 1; |
skb | 1009 | net/tcp/ip.c | skb->when = jiffies; |
skb | 1013 | net/tcp/ip.c | dev->queue_xmit(skb, dev, sk->priority); |
skb | 1015 | net/tcp/ip.c | dev->queue_xmit(skb, dev, SOPRI_NORMAL ); |
skb | 1024 | net/tcp/ip.c | skb=(struct sk_buff *)skb->link3; |
skb | 138 | net/tcp/ip.h | int (*handler) (struct sk_buff *skb, struct device *dev, |
skb | 175 | net/tcp/ip.h | int ip_build_header(struct sk_buff *skb, unsigned long saddr, |
skb | 179 | net/tcp/ip.h | struct sk_buff *skb, int free); |
skb | 86 | net/tcp/loopback.c | loopback_xmit(struct sk_buff *skb, struct device *dev) |
skb | 89 | net/tcp/loopback.c | if (!skb || !dev) return 0; |
skb | 100 | net/tcp/loopback.c | done = dev_rint ((unsigned char *)(skb+1), skb->len, 0, dev); |
skb | 102 | net/tcp/loopback.c | if (skb->free) |
skb | 103 | net/tcp/loopback.c | kfree_skb (skb, FREE_WRITE); |
skb | 42 | net/tcp/pack_type.c | extern int arp_rcv (struct sk_buff *skb, struct device *dev, |
skb | 54 | net/tcp/pack_type.c | extern int ip_rcv (struct sk_buff *skb, struct device *dev, |
skb | 76 | net/tcp/packet.c | packet_rcv (struct sk_buff *skb, struct device *dev, struct packet_type *pt) |
skb | 81 | net/tcp/packet.c | skb->dev = dev; |
skb | 82 | net/tcp/packet.c | skb->len += dev->hard_header_len; |
skb | 92 | net/tcp/packet.c | skb->sk = NULL; |
skb | 93 | net/tcp/packet.c | kfree_skb (skb, FREE_READ); |
skb | 100 | net/tcp/packet.c | skb->sk = sk; |
skb | 103 | net/tcp/packet.c | if (sk->rmem_alloc + skb->mem_len >= SK_RMEM_MAX) |
skb | 105 | net/tcp/packet.c | skb->sk = NULL; |
skb | 106 | net/tcp/packet.c | kfree_skb (skb, FREE_READ); |
skb | 110 | net/tcp/packet.c | sk->rmem_alloc += skb->mem_len; |
skb | 115 | net/tcp/packet.c | sk->rqueue = skb; |
skb | 116 | net/tcp/packet.c | skb->next = skb; |
skb | 117 | net/tcp/packet.c | skb->prev = skb; |
skb | 121 | net/tcp/packet.c | skb->next = sk->rqueue; |
skb | 122 | net/tcp/packet.c | skb->prev = sk->rqueue->prev; |
skb | 123 | net/tcp/packet.c | skb->prev->next = skb; |
skb | 124 | net/tcp/packet.c | skb->next->prev = skb; |
skb | 137 | net/tcp/packet.c | struct sk_buff *skb; |
skb | 156 | net/tcp/packet.c | skb = sk->prot->wmalloc (sk, len+sizeof (*skb), 0, GFP_KERNEL); |
skb | 159 | net/tcp/packet.c | if (skb == NULL) |
skb | 164 | net/tcp/packet.c | skb->lock = 0; |
skb | 165 | net/tcp/packet.c | skb->mem_addr = skb; |
skb | 166 | net/tcp/packet.c | skb->mem_len = len + sizeof (*skb); |
skb | 167 | net/tcp/packet.c | skb->sk = sk; |
skb | 168 | net/tcp/packet.c | skb->free = 1; |
skb | 173 | net/tcp/packet.c | sk->prot->wfree (sk, skb->mem_addr, skb->mem_len); |
skb | 177 | net/tcp/packet.c | memcpy_fromfs (skb+1, from, len); |
skb | 178 | net/tcp/packet.c | skb->len = len; |
skb | 179 | net/tcp/packet.c | skb->next = NULL; |
skb | 181 | net/tcp/packet.c | dev->queue_xmit (skb, dev, sk->priority); |
skb | 183 | net/tcp/packet.c | kfree_skb (skb, FREE_WRITE); |
skb | 232 | net/tcp/packet.c | struct sk_buff *skb; |
skb | 269 | net/tcp/packet.c | skb = sk->rqueue; |
skb | 273 | net/tcp/packet.c | if (skb->next == skb ) |
skb | 280 | net/tcp/packet.c | skb->prev->next = skb->next; |
skb | 281 | net/tcp/packet.c | skb->next->prev = skb->prev; |
skb | 284 | net/tcp/packet.c | copied = min (len, skb->len); |
skb | 286 | net/tcp/packet.c | memcpy_tofs (to, skb+1, copied); |
skb | 291 | net/tcp/packet.c | addr.sa_family = skb->dev->type; |
skb | 292 | net/tcp/packet.c | memcpy (addr.sa_data,skb->dev->name, 14); |
skb | 299 | net/tcp/packet.c | kfree_skb (skb, FREE_READ); |
skb | 36 | net/tcp/protocols.c | int udp_rcv(struct sk_buff *skb, struct device *dev, struct options *opt, |
skb | 44 | net/tcp/protocols.c | int tcp_rcv(struct sk_buff *skb, struct device *dev, struct options *opt, |
skb | 51 | net/tcp/protocols.c | int icmp_rcv(struct sk_buff *skb, struct device *dev, struct options *opt, |
skb | 137 | net/tcp/raw.c | raw_rcv (struct sk_buff *skb, struct device *dev, struct options *opt, |
skb | 146 | net/tcp/raw.c | skb, dev, opt, daddr, len, saddr, redo, protocol)); |
skb | 148 | net/tcp/raw.c | if (skb == NULL) return (0); |
skb | 151 | net/tcp/raw.c | kfree_skb (skb, FREE_READ); |
skb | 157 | net/tcp/raw.c | kfree_skb (skb, FREE_READ); |
skb | 162 | net/tcp/raw.c | skb->sk = sk; |
skb | 163 | net/tcp/raw.c | skb->len = len; |
skb | 164 | net/tcp/raw.c | skb->dev = dev; |
skb | 165 | net/tcp/raw.c | skb->saddr = daddr; |
skb | 166 | net/tcp/raw.c | skb->daddr = saddr; |
skb | 177 | net/tcp/raw.c | sk->back_log = skb; |
skb | 178 | net/tcp/raw.c | skb->next = skb; |
skb | 179 | net/tcp/raw.c | skb->prev = skb; |
skb | 183 | net/tcp/raw.c | skb->next = sk->back_log; |
skb | 184 | net/tcp/raw.c | skb->prev = sk->back_log->prev; |
skb | 185 | net/tcp/raw.c | skb->prev->next = skb; |
skb | 186 | net/tcp/raw.c | skb->next->prev = skb; |
skb | 196 | net/tcp/raw.c | if (sk->rmem_alloc + skb->mem_len >= SK_RMEM_MAX) |
skb | 198 | net/tcp/raw.c | skb->sk = NULL; |
skb | 199 | net/tcp/raw.c | kfree_skb (skb, FREE_READ); |
skb | 203 | net/tcp/raw.c | sk->rmem_alloc += skb->mem_len; |
skb | 208 | net/tcp/raw.c | sk->rqueue = skb; |
skb | 209 | net/tcp/raw.c | skb->next = skb; |
skb | 210 | net/tcp/raw.c | skb->prev = skb; |
skb | 214 | net/tcp/raw.c | skb->next = sk->rqueue; |
skb | 215 | net/tcp/raw.c | skb->prev = sk->rqueue->prev; |
skb | 216 | net/tcp/raw.c | skb->prev->next = skb; |
skb | 217 | net/tcp/raw.c | skb->next->prev = skb; |
skb | 230 | net/tcp/raw.c | struct sk_buff *skb; |
skb | 265 | net/tcp/raw.c | skb = NULL; |
skb | 266 | net/tcp/raw.c | while (skb == NULL) |
skb | 268 | net/tcp/raw.c | skb = sk->prot->wmalloc (sk, len+sizeof (*skb) + sk->prot->max_header, |
skb | 272 | net/tcp/raw.c | if (skb == NULL) |
skb | 293 | net/tcp/raw.c | skb->lock = 0; |
skb | 294 | net/tcp/raw.c | skb->mem_addr = skb; |
skb | 295 | net/tcp/raw.c | skb->mem_len = len + sizeof (*skb) +sk->prot->max_header; |
skb | 296 | net/tcp/raw.c | skb->sk = sk; |
skb | 298 | net/tcp/raw.c | skb->free = 1; /* these two should be unecessary. */ |
skb | 299 | net/tcp/raw.c | skb->arp = 0; |
skb | 301 | net/tcp/raw.c | tmp = sk->prot->build_header (skb, sk->saddr, |
skb | 303 | net/tcp/raw.c | sk->protocol, sk->opt, skb->mem_len); |
skb | 307 | net/tcp/raw.c | sk->prot->wfree (sk, skb->mem_addr, skb->mem_len); |
skb | 313 | net/tcp/raw.c | memcpy_fromfs ((unsigned char *)(skb+1)+tmp, from, len); |
skb | 314 | net/tcp/raw.c | skb->len = tmp + len; |
skb | 315 | net/tcp/raw.c | sk->prot->queue_xmit (sk, dev, skb, 1); |
skb | 371 | net/tcp/raw.c | struct sk_buff *skb; |
skb | 409 | net/tcp/raw.c | skb = sk->rqueue; |
skb | 413 | net/tcp/raw.c | if (skb->next == skb ) |
skb | 420 | net/tcp/raw.c | skb->prev->next = skb->next; |
skb | 421 | net/tcp/raw.c | skb->next->prev = skb->prev; |
skb | 424 | net/tcp/raw.c | copied = min (len, skb->len); |
skb | 426 | net/tcp/raw.c | memcpy_tofs (to, skb->h.raw, copied); |
skb | 432 | net/tcp/raw.c | addr.sin_addr.s_addr = skb->daddr; |
skb | 439 | net/tcp/raw.c | kfree_skb (skb, FREE_READ); |
skb | 225 | net/tcp/sock.c | print_skb(struct sk_buff *skb) |
skb | 227 | net/tcp/sock.c | if (!skb) { |
skb | 231 | net/tcp/sock.c | printk (" prev = %X, next = %X\n", skb->prev, skb->next); |
skb | 232 | net/tcp/sock.c | printk (" sk = %X link3 = %X\n", skb->sk, skb->link3); |
skb | 233 | net/tcp/sock.c | printk (" mem_addr = %X, mem_len = %d\n", skb->mem_addr, skb->mem_len); |
skb | 234 | net/tcp/sock.c | printk (" used = %d free = %d\n", skb->used,skb->free); |
skb | 245 | net/tcp/sock.c | lock_skb (struct sk_buff *skb) |
skb | 247 | net/tcp/sock.c | if (skb->lock) |
skb | 251 | net/tcp/sock.c | skb->lock = 1; |
skb | 256 | net/tcp/sock.c | kfree_skb (struct sk_buff *skb, int rw) |
skb | 258 | net/tcp/sock.c | if (skb == NULL) |
skb | 264 | net/tcp/sock.c | if (skb->lock) |
skb | 266 | net/tcp/sock.c | skb->free = 1; |
skb | 269 | net/tcp/sock.c | skb->magic = 0; |
skb | 270 | net/tcp/sock.c | if (skb->sk) |
skb | 274 | net/tcp/sock.c | skb->sk->prot->rfree (skb->sk, skb->mem_addr, skb->mem_len); |
skb | 278 | net/tcp/sock.c | skb->sk->prot->wfree (skb->sk, skb->mem_addr, skb->mem_len); |
skb | 283 | net/tcp/sock.c | kfree_s (skb->mem_addr, skb->mem_len); |
skb | 288 | net/tcp/sock.c | unlock_skb (struct sk_buff *skb, int rw) |
skb | 290 | net/tcp/sock.c | if (skb->lock != 1) |
skb | 294 | net/tcp/sock.c | skb->lock = 0; |
skb | 295 | net/tcp/sock.c | if (skb->free) |
skb | 296 | net/tcp/sock.c | kfree_skb (skb, rw); |
skb | 469 | net/tcp/sock.c | struct sk_buff *skb; |
skb | 485 | net/tcp/sock.c | for (skb = sk->wfront; skb != NULL; ) |
skb | 488 | net/tcp/sock.c | skb2=(struct sk_buff *)skb->next; |
skb | 489 | net/tcp/sock.c | if (skb->magic != TCP_WRITE_QUEUE_MAGIC) |
skb | 492 | net/tcp/sock.c | skb->magic); |
skb | 495 | net/tcp/sock.c | kfree_skb(skb, FREE_WRITE); |
skb | 496 | net/tcp/sock.c | skb=skb2; |
skb | 504 | net/tcp/sock.c | skb = sk->rqueue; |
skb | 507 | net/tcp/sock.c | skb2=(struct sk_buff *)skb->next; |
skb | 512 | net/tcp/sock.c | if (skb->sk != NULL && skb->sk != sk) |
skb | 514 | net/tcp/sock.c | skb->sk->dead = 1; |
skb | 515 | net/tcp/sock.c | skb->sk->prot->close (skb->sk, 0); |
skb | 517 | net/tcp/sock.c | kfree_skb(skb, FREE_READ); |
skb | 518 | net/tcp/sock.c | skb=skb2; |
skb | 519 | net/tcp/sock.c | } while (skb != sk->rqueue); |
skb | 525 | net/tcp/sock.c | for (skb = sk->send_head; skb != NULL; ) |
skb | 535 | net/tcp/sock.c | if (skb->next != NULL) |
skb | 539 | net/tcp/sock.c | if (skb->next != skb) |
skb | 541 | net/tcp/sock.c | skb->next->prev = skb->prev; |
skb | 542 | net/tcp/sock.c | skb->prev->next = skb->next; |
skb | 544 | net/tcp/sock.c | if (skb == arp_q) |
skb | 546 | net/tcp/sock.c | if (skb->magic != ARP_QUEUE_MAGIC) |
skb | 550 | net/tcp/sock.c | "bas magic (%X)\n", skb->magic); |
skb | 555 | net/tcp/sock.c | arp_q = skb->next; |
skb | 561 | net/tcp/sock.c | if (skb->dev && skb->dev->buffs[i] == skb) |
skb | 563 | net/tcp/sock.c | if (skb->magic != DEV_QUEUE_MAGIC) |
skb | 567 | net/tcp/sock.c | "with bad magic (%X)\n", skb->magic); |
skb | 571 | net/tcp/sock.c | skb->dev->buffs[i]= skb->next; |
skb | 579 | net/tcp/sock.c | if (skb == arp_q) |
skb | 581 | net/tcp/sock.c | if (skb->magic != ARP_QUEUE_MAGIC) |
skb | 585 | net/tcp/sock.c | "bas magic (%X)\n", skb->magic); |
skb | 594 | net/tcp/sock.c | if (skb->dev && skb->dev->buffs[i] == skb) |
skb | 596 | net/tcp/sock.c | if (skb->magic != DEV_QUEUE_MAGIC) |
skb | 600 | net/tcp/sock.c | "with bad magic (%X)\n", skb->magic); |
skb | 604 | net/tcp/sock.c | skb->dev->buffs[i]= NULL; |
skb | 611 | net/tcp/sock.c | skb->dev = NULL; |
skb | 613 | net/tcp/sock.c | skb2=(struct sk_buff *)skb->link3; |
skb | 614 | net/tcp/sock.c | kfree_skb(skb, FREE_WRITE); |
skb | 615 | net/tcp/sock.c | skb=skb2; |
skb | 627 | net/tcp/sock.c | skb = (struct sk_buff *)sk->back_log; |
skb | 630 | net/tcp/sock.c | skb2=(struct sk_buff *)skb->next; |
skb | 631 | net/tcp/sock.c | kfree_skb(skb, FREE_READ); |
skb | 632 | net/tcp/sock.c | skb=skb2; |
skb | 633 | net/tcp/sock.c | } while (skb != sk->back_log); |
skb | 1852 | net/tcp/sock.c | struct sk_buff *skb; |
skb | 1854 | net/tcp/sock.c | skb = (struct sk_buff *)sk->back_log; |
skb | 1855 | net/tcp/sock.c | PRINTK (("release_sock: skb = %X:\n",skb)); |
skb | 1856 | net/tcp/sock.c | if (skb->next != skb) |
skb | 1858 | net/tcp/sock.c | sk->back_log = skb->next; |
skb | 1859 | net/tcp/sock.c | skb->prev->next = skb->next; |
skb | 1860 | net/tcp/sock.c | skb->next->prev = skb->prev; |
skb | 1869 | net/tcp/sock.c | sk->prot->rcv(skb, skb->dev, sk->opt, |
skb | 1870 | net/tcp/sock.c | skb->saddr, skb->len, skb->daddr, 1, |
skb | 129 | net/tcp/sock.h | int (*build_header) (struct sk_buff *skb, unsigned long saddr, |
skb | 136 | net/tcp/sock.h | struct sk_buff *skb, int free); |
skb | 214 | net/tcp/sock.h | void kfree_skb (struct sk_buff *skb, int rw); |
skb | 215 | net/tcp/sock.h | void lock_skb (struct sk_buff *skb); |
skb | 216 | net/tcp/sock.h | void unlock_skb (struct sk_buff *skb, int rw); |
skb | 146 | net/tcp/tcp.c | struct sk_buff *skb; |
skb | 147 | net/tcp/tcp.c | skb = sk->rqueue; |
skb | 148 | net/tcp/tcp.c | if (skb == NULL) return (NULL); |
skb | 149 | net/tcp/tcp.c | sk->rqueue = (struct sk_buff *)skb->next; |
skb | 150 | net/tcp/tcp.c | if (sk->rqueue == skb) |
skb | 156 | net/tcp/tcp.c | sk->rqueue->prev=skb->prev; |
skb | 159 | net/tcp/tcp.c | return (skb); |
skb | 258 | net/tcp/tcp.c | struct sk_buff *skb; |
skb | 268 | net/tcp/tcp.c | skb = (struct sk_buff *)sk->rqueue->next; |
skb | 279 | net/tcp/tcp.c | if (before (counted, skb->h.th->seq)) break; |
skb | 280 | net/tcp/tcp.c | sum = skb->len - ( counted - skb->h.th->seq); |
skb | 281 | net/tcp/tcp.c | if (skb->h.th->syn) sum ++; |
skb | 282 | net/tcp/tcp.c | if (skb->h.th->urg) |
skb | 284 | net/tcp/tcp.c | sum -= net16(skb->h.th->urg_ptr); |
skb | 289 | net/tcp/tcp.c | if (skb->h.th->syn) amount --; |
skb | 292 | net/tcp/tcp.c | if (amount && skb->h.th->psh) break; |
skb | 293 | net/tcp/tcp.c | skb = (struct sk_buff *)skb->next; |
skb | 294 | net/tcp/tcp.c | } while (skb != sk->rqueue->next); |
skb | 411 | net/tcp/tcp.c | struct sk_buff *skb; |
skb | 417 | net/tcp/tcp.c | skb = (struct sk_buff *)sk->rqueue->next; |
skb | 418 | net/tcp/tcp.c | if (sk->copied_seq+1 == skb->h.th->seq && skb->h.th->urg) |
skb | 525 | net/tcp/tcp.c | struct sk_buff *skb; |
skb | 529 | net/tcp/tcp.c | skb = sk->send_tmp; |
skb | 531 | net/tcp/tcp.c | tcp_send_check (skb->h.th, sk->saddr, sk->daddr, |
skb | 532 | net/tcp/tcp.c | skb->len-(unsigned long)skb->h.th + |
skb | 533 | net/tcp/tcp.c | (unsigned long)(skb+1), sk); |
skb | 535 | net/tcp/tcp.c | skb->h.seq = sk->send_seq; |
skb | 543 | net/tcp/tcp.c | skb->next = NULL; |
skb | 544 | net/tcp/tcp.c | skb->magic = TCP_WRITE_QUEUE_MAGIC; |
skb | 547 | net/tcp/tcp.c | sk->wfront=skb; |
skb | 551 | net/tcp/tcp.c | sk->wback->next = skb; |
skb | 553 | net/tcp/tcp.c | sk->wback = skb; |
skb | 557 | net/tcp/tcp.c | sk->prot->queue_xmit (sk, skb->dev, skb,0); |
skb | 676 | net/tcp/tcp.c | struct sk_buff *skb; |
skb | 777 | net/tcp/tcp.c | skb = sk->send_tmp; |
skb | 780 | net/tcp/tcp.c | copy = min (sk->mss - skb->len + 128 + prot->max_header, len); |
skb | 786 | net/tcp/tcp.c | memcpy_fromfs ((unsigned char *)(skb+1) + skb->len, from, copy); |
skb | 787 | net/tcp/tcp.c | skb->len += copy; |
skb | 794 | net/tcp/tcp.c | if (skb->len - (unsigned long)skb->h.th + |
skb | 795 | net/tcp/tcp.c | (unsigned long)(skb+1) >= sk->mss |
skb | 818 | net/tcp/tcp.c | skb=prot->wmalloc (sk, |
skb | 819 | net/tcp/tcp.c | sk->mss + 128 + prot->max_header + sizeof (*skb), |
skb | 822 | net/tcp/tcp.c | sk->send_tmp = skb; |
skb | 823 | net/tcp/tcp.c | if (skb != NULL) |
skb | 824 | net/tcp/tcp.c | skb->mem_len = sk->mss + 128 + prot->max_header+sizeof (*skb); |
skb | 830 | net/tcp/tcp.c | skb=prot->wmalloc (sk, copy + prot->max_header+sizeof (*skb),0, |
skb | 833 | net/tcp/tcp.c | if (skb != NULL) |
skb | 834 | net/tcp/tcp.c | skb->mem_len = copy+prot->max_header+sizeof (*skb); |
skb | 838 | net/tcp/tcp.c | if (skb == NULL) |
skb | 872 | net/tcp/tcp.c | skb->mem_addr = skb; |
skb | 873 | net/tcp/tcp.c | skb->len = 0; |
skb | 874 | net/tcp/tcp.c | skb->sk = sk; |
skb | 875 | net/tcp/tcp.c | skb->lock = 0; |
skb | 876 | net/tcp/tcp.c | skb->free = 0; |
skb | 878 | net/tcp/tcp.c | buff =(unsigned char *)( skb+1); |
skb | 882 | net/tcp/tcp.c | tmp = prot->build_header (skb, sk->saddr, sk->daddr, &dev, |
skb | 883 | net/tcp/tcp.c | IPPROTO_TCP, sk->opt, skb->mem_len); |
skb | 886 | net/tcp/tcp.c | prot->wfree (sk, skb->mem_addr, skb->mem_len); |
skb | 892 | net/tcp/tcp.c | skb->len += tmp; |
skb | 893 | net/tcp/tcp.c | skb->dev = dev; |
skb | 895 | net/tcp/tcp.c | skb->h.th =(struct tcp_header *) buff; |
skb | 900 | net/tcp/tcp.c | prot->wfree (sk, skb->mem_addr, skb->mem_len); |
skb | 912 | net/tcp/tcp.c | skb->len += tmp; |
skb | 918 | net/tcp/tcp.c | skb->len += copy; |
skb | 919 | net/tcp/tcp.c | skb->free = 0; |
skb | 931 | net/tcp/tcp.c | skb->h.seq = sk->send_seq; |
skb | 939 | net/tcp/tcp.c | skb->next = NULL; |
skb | 940 | net/tcp/tcp.c | skb->magic = TCP_WRITE_QUEUE_MAGIC; |
skb | 943 | net/tcp/tcp.c | sk->wfront=skb; |
skb | 947 | net/tcp/tcp.c | sk->wback->next = skb; |
skb | 949 | net/tcp/tcp.c | sk->wback = skb; |
skb | 953 | net/tcp/tcp.c | prot->queue_xmit (sk, dev, skb,0); |
skb | 1057 | net/tcp/tcp.c | struct sk_buff *skb; |
skb | 1058 | net/tcp/tcp.c | skb=(struct sk_buff *)sk->rqueue->next; |
skb | 1059 | net/tcp/tcp.c | if (!skb->used) break; |
skb | 1060 | net/tcp/tcp.c | if (sk->rqueue == skb) |
skb | 1066 | net/tcp/tcp.c | skb->next->prev = skb->prev; |
skb | 1067 | net/tcp/tcp.c | skb->prev->next = skb->next; |
skb | 1069 | net/tcp/tcp.c | skb->sk = sk; |
skb | 1070 | net/tcp/tcp.c | kfree_skb (skb, FREE_READ); |
skb | 1113 | net/tcp/tcp.c | struct sk_buff *skb; |
skb | 1177 | net/tcp/tcp.c | skb = (struct sk_buff *)sk->rqueue->next; |
skb | 1180 | net/tcp/tcp.c | if (skb->h.th->urg && !skb->urg_used) |
skb | 1182 | net/tcp/tcp.c | if (skb->h.th->urg_ptr == 0) |
skb | 1184 | net/tcp/tcp.c | skb->h.th->urg_ptr = net16(skb->len); |
skb | 1186 | net/tcp/tcp.c | amt = min(net16(skb->h.th->urg_ptr),len); |
skb | 1188 | net/tcp/tcp.c | memcpy_tofs (to, (unsigned char *)(skb->h.th) + |
skb | 1189 | net/tcp/tcp.c | skb->h.th->doff*4, amt); |
skb | 1193 | net/tcp/tcp.c | skb->urg_used = 1; |
skb | 1200 | net/tcp/tcp.c | skb = (struct sk_buff *)skb->next; |
skb | 1201 | net/tcp/tcp.c | } while (skb != sk->rqueue->next); |
skb | 1214 | net/tcp/tcp.c | struct sk_buff *skb; |
skb | 1234 | net/tcp/tcp.c | skb=(struct sk_buff *)sk->rqueue->next; |
skb | 1236 | net/tcp/tcp.c | skb = NULL; |
skb | 1243 | net/tcp/tcp.c | while ( skb == NULL || before (sk->copied_seq+1, skb->h.th->seq) || |
skb | 1244 | net/tcp/tcp.c | skb->used) /* skb->used just checks to see if we've |
skb | 1248 | net/tcp/tcp.c | PRINTK(("skb = %X:\n",skb)); |
skb | 1342 | net/tcp/tcp.c | skb=(struct sk_buff *)sk->rqueue->next; |
skb | 1344 | net/tcp/tcp.c | skb = NULL; |
skb | 1351 | net/tcp/tcp.c | offset = sk->copied_seq+1 - skb->h.th->seq; |
skb | 1353 | net/tcp/tcp.c | if (skb->h.th->syn) offset --; |
skb | 1354 | net/tcp/tcp.c | if (offset < skb->len ) |
skb | 1358 | net/tcp/tcp.c | if (skb->h.th->urg) |
skb | 1360 | net/tcp/tcp.c | if (skb->urg_used) |
skb | 1362 | net/tcp/tcp.c | sk->copied_seq += net16(skb->h.th->urg_ptr); |
skb | 1363 | net/tcp/tcp.c | offset += net16(skb->h.th->urg_ptr); |
skb | 1364 | net/tcp/tcp.c | if (offset >= skb->len) |
skb | 1366 | net/tcp/tcp.c | skb->used = 1; |
skb | 1367 | net/tcp/tcp.c | skb = (struct sk_buff *)skb->next; |
skb | 1378 | net/tcp/tcp.c | used = min(skb->len - offset, len); |
skb | 1381 | net/tcp/tcp.c | memcpy_tofs(to, ((unsigned char *)skb->h.th) + |
skb | 1382 | net/tcp/tcp.c | skb->h.th->doff*4 + |
skb | 1395 | net/tcp/tcp.c | (!skb->h.th->urg || skb->urg_used) && |
skb | 1396 | net/tcp/tcp.c | (used + offset >= skb->len) ) |
skb | 1397 | net/tcp/tcp.c | skb->used = 1; |
skb | 1401 | net/tcp/tcp.c | if ( skb->h.th->psh || skb->h.th->urg) |
skb | 1408 | net/tcp/tcp.c | skb->used = 1; |
skb | 1410 | net/tcp/tcp.c | skb=(struct sk_buff *)skb->next; |
skb | 1607 | net/tcp/tcp.c | tcp_conn_request(volatile struct sock *sk, struct sk_buff *skb, |
skb | 1617 | net/tcp/tcp.c | th = skb->h.th; |
skb | 1621 | net/tcp/tcp.c | sk, skb, daddr, saddr, opt, dev)); |
skb | 1632 | net/tcp/tcp.c | kfree_skb (skb, FREE_READ); |
skb | 1640 | net/tcp/tcp.c | kfree_skb (skb, FREE_READ); |
skb | 1654 | net/tcp/tcp.c | kfree_skb (skb, FREE_READ); |
skb | 1682 | net/tcp/tcp.c | newsk->acked_seq = skb->h.th->seq+1; |
skb | 1683 | net/tcp/tcp.c | newsk->fin_seq = skb->h.th->seq; |
skb | 1684 | net/tcp/tcp.c | newsk->copied_seq = skb->h.th->seq; |
skb | 1694 | net/tcp/tcp.c | newsk->dummy_th.source = skb->h.th->dest; |
skb | 1695 | net/tcp/tcp.c | newsk->dummy_th.dest = skb->h.th->source; |
skb | 1710 | net/tcp/tcp.c | newsk->acked_seq = skb->h.th->seq+1; |
skb | 1711 | net/tcp/tcp.c | newsk->copied_seq = skb->h.th->seq; |
skb | 1713 | net/tcp/tcp.c | if (skb->h.th->doff == 5) |
skb | 1719 | net/tcp/tcp.c | ptr = (unsigned char *)(skb->h.th + 1); |
skb | 1737 | net/tcp/tcp.c | kfree_skb (skb, FREE_READ); |
skb | 1760 | net/tcp/tcp.c | skb->sk = sk; |
skb | 1761 | net/tcp/tcp.c | kfree_skb (skb, FREE_READ); |
skb | 1768 | net/tcp/tcp.c | memcpy (t1, skb->h.th, sizeof (*t1)); |
skb | 1771 | net/tcp/tcp.c | t1->dest = skb->h.th->source; |
skb | 1783 | net/tcp/tcp.c | t1->ack_seq = net32(skb->h.th->seq+1); |
skb | 1798 | net/tcp/tcp.c | skb->sk = newsk; |
skb | 1800 | net/tcp/tcp.c | sk->rmem_alloc -= skb->mem_len; |
skb | 1801 | net/tcp/tcp.c | newsk->rmem_alloc += skb->mem_len; |
skb | 1805 | net/tcp/tcp.c | skb->next = skb; |
skb | 1806 | net/tcp/tcp.c | skb->prev = skb; |
skb | 1807 | net/tcp/tcp.c | sk->rqueue = skb; |
skb | 1811 | net/tcp/tcp.c | skb->next = sk->rqueue; |
skb | 1812 | net/tcp/tcp.c | skb->prev = sk->rqueue->prev; |
skb | 1813 | net/tcp/tcp.c | sk->rqueue->prev = skb; |
skb | 1814 | net/tcp/tcp.c | skb->prev->next = skb; |
skb | 1843 | net/tcp/tcp.c | struct sk_buff *skb; |
skb | 1845 | net/tcp/tcp.c | skb = sk->rqueue; |
skb | 1847 | net/tcp/tcp.c | skb2=(struct sk_buff *)skb->next; |
skb | 1849 | net/tcp/tcp.c | if (skb->len > 0 && |
skb | 1850 | net/tcp/tcp.c | after (skb->h.th->seq + skb->len + 1, sk->copied_seq)) |
skb | 1852 | net/tcp/tcp.c | kfree_skb (skb, FREE_READ); |
skb | 1853 | net/tcp/tcp.c | skb=skb2; |
skb | 1854 | net/tcp/tcp.c | } while (skb != sk->rqueue); |
skb | 1993 | net/tcp/tcp.c | struct sk_buff *skb; |
skb | 1998 | net/tcp/tcp.c | skb = sk->wfront; |
skb | 1999 | net/tcp/tcp.c | sk->wfront = (struct sk_buff *)skb->next; |
skb | 2002 | net/tcp/tcp.c | skb->next = NULL; |
skb | 2003 | net/tcp/tcp.c | if (skb->magic != TCP_WRITE_QUEUE_MAGIC) |
skb | 2006 | net/tcp/tcp.c | "queue\n", skb->magic)); |
skb | 2011 | net/tcp/tcp.c | skb->magic = 0; |
skb | 2013 | net/tcp/tcp.c | sk->prot->queue_xmit (sk, skb->dev, skb, skb->free); |
skb | 2052 | net/tcp/tcp.c | struct sk_buff *skb; |
skb | 2058 | net/tcp/tcp.c | for (skb = sk->send_head; skb != NULL; skb= (struct sk_buff *)skb->link3) |
skb | 2060 | net/tcp/tcp.c | if (after( skb->h.seq, sk->window_seq)) |
skb | 2066 | net/tcp/tcp.c | sk->send_head = (struct sk_buff *)skb->link3; |
skb | 2070 | net/tcp/tcp.c | skb2->link3 = skb->link3; |
skb | 2072 | net/tcp/tcp.c | if (sk->send_tail == skb) |
skb | 2076 | net/tcp/tcp.c | if (skb->next != NULL) |
skb | 2079 | net/tcp/tcp.c | if (skb->next != skb) |
skb | 2081 | net/tcp/tcp.c | skb->next->prev = skb->prev; |
skb | 2082 | net/tcp/tcp.c | skb->prev->next = skb->next; |
skb | 2086 | net/tcp/tcp.c | if (skb->dev->buffs[i] == skb) |
skb | 2088 | net/tcp/tcp.c | if (skb->next == skb) |
skb | 2089 | net/tcp/tcp.c | skb->dev->buffs[i] = NULL; |
skb | 2091 | net/tcp/tcp.c | skb->dev->buffs[i] = skb->next; |
skb | 2095 | net/tcp/tcp.c | if (arp_q == skb) |
skb | 2097 | net/tcp/tcp.c | if (skb->next == skb) |
skb | 2100 | net/tcp/tcp.c | arp_q = skb->next; |
skb | 2105 | net/tcp/tcp.c | skb->magic = TCP_WRITE_QUEUE_MAGIC; |
skb | 2108 | net/tcp/tcp.c | skb->next = sk->wfront; |
skb | 2109 | net/tcp/tcp.c | sk->wfront = skb; |
skb | 2113 | net/tcp/tcp.c | skb->next = wskb->next; |
skb | 2114 | net/tcp/tcp.c | wskb->next = skb; |
skb | 2116 | net/tcp/tcp.c | wskb = skb; |
skb | 2120 | net/tcp/tcp.c | skb2 = skb; |
skb | 2305 | net/tcp/tcp.c | tcp_data (struct sk_buff *skb, volatile struct sock *sk, |
skb | 2311 | net/tcp/tcp.c | th = skb->h.th; |
skb | 2313 | net/tcp/tcp.c | skb->len = len - (th->doff*4); |
skb | 2315 | net/tcp/tcp.c | PRINTK(("tcp_data len = %d sk = %X:\n",skb->len, sk)); |
skb | 2317 | net/tcp/tcp.c | sk->bytes_rcv += skb->len; |
skb | 2319 | net/tcp/tcp.c | if (skb->len == 0 && !th->fin && !th->urg && !th->psh) |
skb | 2324 | net/tcp/tcp.c | kfree_skb(skb, FREE_READ); |
skb | 2330 | net/tcp/tcp.c | sk->acked_seq = th->seq + skb->len + th->syn + th->fin; |
skb | 2331 | net/tcp/tcp.c | tcp_reset (sk->saddr, sk->daddr, skb->h.th, |
skb | 2332 | net/tcp/tcp.c | sk->prot, NULL, skb->dev); |
skb | 2337 | net/tcp/tcp.c | kfree_skb (skb, FREE_READ); |
skb | 2351 | net/tcp/tcp.c | PRINTK (("tcp_data: skb = %X:\n",skb)); |
skb | 2353 | net/tcp/tcp.c | sk->rqueue = skb; |
skb | 2354 | net/tcp/tcp.c | skb->next = skb; |
skb | 2355 | net/tcp/tcp.c | skb->prev = skb; |
skb | 2368 | net/tcp/tcp.c | skb->prev = skb1; |
skb | 2369 | net/tcp/tcp.c | skb->next = skb1->next; |
skb | 2370 | net/tcp/tcp.c | skb->next->prev = skb; |
skb | 2371 | net/tcp/tcp.c | skb1->next = skb; |
skb | 2373 | net/tcp/tcp.c | sk->rqueue = skb; |
skb | 2378 | net/tcp/tcp.c | skb->next= skb1; |
skb | 2379 | net/tcp/tcp.c | skb->prev = skb1->prev; |
skb | 2380 | net/tcp/tcp.c | skb->prev->next = skb; |
skb | 2381 | net/tcp/tcp.c | skb1->prev = skb; |
skb | 2387 | net/tcp/tcp.c | PRINTK (("skb = %X:\n",skb)); |
skb | 2391 | net/tcp/tcp.c | th->ack_seq = th->seq + skb->len; |
skb | 2408 | net/tcp/tcp.c | skb->acked = 1; |
skb | 2411 | net/tcp/tcp.c | if (skb->h.th->fin) |
skb | 2417 | net/tcp/tcp.c | for (skb2=(struct sk_buff *)skb->next; |
skb | 2654 | net/tcp/tcp.c | struct sk_buff *skb; |
skb | 2669 | net/tcp/tcp.c | while ( (skb = get_firstr(sk)) == NULL ) |
skb | 2693 | net/tcp/tcp.c | newsk = skb->sk; |
skb | 2695 | net/tcp/tcp.c | kfree_skb (skb, FREE_READ); |
skb | 2854 | net/tcp/tcp.c | tcp_rcv(struct sk_buff *skb, struct device *dev, struct options *opt, |
skb | 2861 | net/tcp/tcp.c | if (!skb) |
skb | 2884 | net/tcp/tcp.c | th = skb->h.th; |
skb | 2889 | net/tcp/tcp.c | PRINTK(("len = %d, redo = %d, skb=%X\n", len, redo, skb)); |
skb | 2900 | net/tcp/tcp.c | skb->sk = NULL; |
skb | 2902 | net/tcp/tcp.c | kfree_skb (skb, 0); |
skb | 2913 | net/tcp/tcp.c | skb->sk = NULL; |
skb | 2914 | net/tcp/tcp.c | kfree_skb (skb, 0); |
skb | 2918 | net/tcp/tcp.c | skb->len = len; |
skb | 2919 | net/tcp/tcp.c | skb->sk = sk; |
skb | 2920 | net/tcp/tcp.c | skb->acked = 0; |
skb | 2921 | net/tcp/tcp.c | skb->used = 0; |
skb | 2922 | net/tcp/tcp.c | skb->free = 0; |
skb | 2923 | net/tcp/tcp.c | skb->urg_used = 0; |
skb | 2924 | net/tcp/tcp.c | skb->saddr = daddr; |
skb | 2925 | net/tcp/tcp.c | skb->daddr = saddr; |
skb | 2936 | net/tcp/tcp.c | sk->back_log = skb; |
skb | 2937 | net/tcp/tcp.c | skb->next = skb; |
skb | 2938 | net/tcp/tcp.c | skb->prev = skb; |
skb | 2942 | net/tcp/tcp.c | skb->next = sk->back_log; |
skb | 2943 | net/tcp/tcp.c | skb->prev = sk->back_log->prev; |
skb | 2944 | net/tcp/tcp.c | skb->prev->next = skb; |
skb | 2945 | net/tcp/tcp.c | skb->next->prev = skb; |
skb | 2969 | net/tcp/tcp.c | if (sk->rmem_alloc + skb->mem_len >= SK_RMEM_MAX) |
skb | 2971 | net/tcp/tcp.c | skb->sk = NULL; |
skb | 2973 | net/tcp/tcp.c | kfree_skb (skb, 0); |
skb | 2978 | net/tcp/tcp.c | sk->rmem_alloc += skb->mem_len; |
skb | 2998 | net/tcp/tcp.c | kfree_skb (skb, FREE_READ); |
skb | 3011 | net/tcp/tcp.c | kfree_skb (skb, FREE_READ); |
skb | 3036 | net/tcp/tcp.c | kfree_skb (skb, FREE_READ); |
skb | 3052 | net/tcp/tcp.c | kfree_skb (skb, FREE_READ); |
skb | 3061 | net/tcp/tcp.c | kfree_skb (skb, FREE_READ); |
skb | 3070 | net/tcp/tcp.c | kfree_skb (skb, FREE_READ); |
skb | 3078 | net/tcp/tcp.c | kfree_skb (skb, FREE_READ); |
skb | 3083 | net/tcp/tcp.c | if ( tcp_data (skb, sk, saddr, len)) |
skb | 3085 | net/tcp/tcp.c | kfree_skb (skb, FREE_READ); |
skb | 3098 | net/tcp/tcp.c | kfree_skb (skb, FREE_READ); |
skb | 3109 | net/tcp/tcp.c | kfree_skb (skb, FREE_READ); |
skb | 3116 | net/tcp/tcp.c | kfree_skb (skb, FREE_READ); |
skb | 3123 | net/tcp/tcp.c | kfree_skb (skb, FREE_READ); |
skb | 3142 | net/tcp/tcp.c | tcp_conn_request (sk, skb, daddr, saddr, opt, dev); |
skb | 3148 | net/tcp/tcp.c | kfree_skb (skb, FREE_READ); |
skb | 3155 | net/tcp/tcp.c | kfree_skb (skb, FREE_READ); |
skb | 3170 | net/tcp/tcp.c | kfree_skb (skb, FREE_READ); |
skb | 3185 | net/tcp/tcp.c | kfree_skb (skb, FREE_READ); |
skb | 3197 | net/tcp/tcp.c | kfree_skb (skb, FREE_READ); |
skb | 3208 | net/tcp/tcp.c | kfree_skb (skb, FREE_READ); |
skb | 3218 | net/tcp/tcp.c | kfree_skb (skb, FREE_READ); |
skb | 3233 | net/tcp/tcp.c | kfree_skb (skb, FREE_READ); |
skb | 3256 | net/tcp/tcp.c | kfree_skb (skb, FREE_READ); |
skb | 3260 | net/tcp/tcp.c | if (tcp_data (skb, sk, saddr, len)) |
skb | 3261 | net/tcp/tcp.c | kfree_skb (skb, FREE_READ); |
skb | 3274 | net/tcp/tcp.c | kfree_skb (skb, FREE_READ); |
skb | 3280 | net/tcp/tcp.c | if (tcp_data (skb, sk, saddr, len)) |
skb | 3282 | net/tcp/tcp.c | kfree_skb (skb, FREE_READ); |
skb | 258 | net/tcp/udp.c | struct sk_buff *skb; |
skb | 269 | net/tcp/udp.c | skb = pair->prot->rmalloc (pair, |
skb | 270 | net/tcp/udp.c | sizeof (*skb) + sizeof (*uh) + len + 4, |
skb | 274 | net/tcp/udp.c | if (skb == NULL) return (len); |
skb | 275 | net/tcp/udp.c | skb->lock = 0; |
skb | 276 | net/tcp/udp.c | skb->mem_addr = skb; |
skb | 277 | net/tcp/udp.c | skb->mem_len = sizeof (*skb) + len + sizeof (*uh) + 4; |
skb | 279 | net/tcp/udp.c | skb->daddr = saddr; |
skb | 280 | net/tcp/udp.c | skb->saddr = daddr; |
skb | 282 | net/tcp/udp.c | skb->len = len; |
skb | 283 | net/tcp/udp.c | skb->h.raw = (unsigned char *)(skb+1); |
skb | 285 | net/tcp/udp.c | uh = skb->h.uh; |
skb | 294 | net/tcp/udp.c | pair->rqueue = skb; |
skb | 295 | net/tcp/udp.c | skb->next = skb; |
skb | 296 | net/tcp/udp.c | skb->prev = skb; |
skb | 300 | net/tcp/udp.c | skb->next = pair->rqueue; |
skb | 301 | net/tcp/udp.c | skb->prev = pair->rqueue->prev; |
skb | 302 | net/tcp/udp.c | skb->prev->next = skb; |
skb | 303 | net/tcp/udp.c | skb->next->prev = skb; |
skb | 318 | net/tcp/udp.c | struct sk_buff *skb; |
skb | 378 | net/tcp/udp.c | skb = sk->prot->wmalloc (sk, len + sizeof (*skb) |
skb | 383 | net/tcp/udp.c | if (skb == NULL) |
skb | 405 | net/tcp/udp.c | skb->lock = 0; |
skb | 406 | net/tcp/udp.c | skb->mem_addr = skb; |
skb | 407 | net/tcp/udp.c | skb->mem_len = len + sizeof (*skb) + sk->prot->max_header; |
skb | 408 | net/tcp/udp.c | skb->sk = sk; |
skb | 409 | net/tcp/udp.c | skb->free = 1; |
skb | 410 | net/tcp/udp.c | skb->arp = 0; |
skb | 413 | net/tcp/udp.c | buff = (unsigned char *)(skb+1); |
skb | 414 | net/tcp/udp.c | tmp = sk->prot->build_header (skb, saddr, |
skb | 416 | net/tcp/udp.c | IPPROTO_UDP, sk->opt, skb->mem_len); |
skb | 419 | net/tcp/udp.c | sk->prot->wfree (sk, skb->mem_addr, skb->mem_len); |
skb | 432 | net/tcp/udp.c | skb->len = amt; |
skb | 458 | net/tcp/udp.c | sk->prot->queue_xmit (sk, dev, skb, 1); |
skb | 495 | net/tcp/udp.c | struct sk_buff *skb; |
skb | 500 | net/tcp/udp.c | skb = sk->rqueue; |
skb | 501 | net/tcp/udp.c | if (skb != NULL) |
skb | 505 | net/tcp/udp.c | amount = skb->len; |
skb | 523 | net/tcp/udp.c | struct sk_buff *skb; |
skb | 569 | net/tcp/udp.c | skb = sk->rqueue; |
skb | 573 | net/tcp/udp.c | if (skb->next == skb ) |
skb | 580 | net/tcp/udp.c | skb->prev->next = skb->next; |
skb | 581 | net/tcp/udp.c | skb->next->prev = skb->prev; |
skb | 584 | net/tcp/udp.c | copied = min (len, skb->len); |
skb | 586 | net/tcp/udp.c | memcpy_tofs (to, skb->h.raw + sizeof (struct udp_header), copied); |
skb | 592 | net/tcp/udp.c | addr.sin_port = skb->h.uh->source; |
skb | 593 | net/tcp/udp.c | addr.sin_addr.s_addr = skb->daddr; |
skb | 600 | net/tcp/udp.c | kfree_skb (skb, FREE_READ); |
skb | 642 | net/tcp/udp.c | udp_rcv(struct sk_buff *skb, struct device *dev, struct options *opt, |
skb | 651 | net/tcp/udp.c | uh = (struct udp_header *) skb->h.uh; |
skb | 653 | net/tcp/udp.c | if (dev->add_arp) dev->add_arp (saddr, skb, dev); |
skb | 663 | net/tcp/udp.c | icmp_reply (skb, ICMP_DEST_UNREACH, ICMP_PORT_UNREACH, dev); |
skb | 665 | net/tcp/udp.c | skb->sk = NULL; |
skb | 666 | net/tcp/udp.c | kfree_skb (skb, 0); |
skb | 676 | net/tcp/udp.c | skb->sk = NULL; |
skb | 677 | net/tcp/udp.c | kfree_skb (skb, 0); |
skb | 681 | net/tcp/udp.c | skb->sk = sk; |
skb | 682 | net/tcp/udp.c | skb->dev = dev; |
skb | 683 | net/tcp/udp.c | skb->len = len; |
skb | 686 | net/tcp/udp.c | skb->daddr = saddr; |
skb | 687 | net/tcp/udp.c | skb->saddr = daddr; |
skb | 695 | net/tcp/udp.c | sk->back_log = skb; |
skb | 696 | net/tcp/udp.c | skb->next = skb; |
skb | 697 | net/tcp/udp.c | skb->prev = skb; |
skb | 701 | net/tcp/udp.c | skb->next = sk->back_log; |
skb | 702 | net/tcp/udp.c | skb->prev = sk->back_log->prev; |
skb | 703 | net/tcp/udp.c | skb->prev->next = skb; |
skb | 704 | net/tcp/udp.c | skb->next->prev = skb; |
skb | 714 | net/tcp/udp.c | if (sk->rmem_alloc + skb->mem_len >= SK_RMEM_MAX) |
skb | 716 | net/tcp/udp.c | skb->sk = NULL; |
skb | 717 | net/tcp/udp.c | kfree_skb (skb, 0); |
skb | 722 | net/tcp/udp.c | sk->rmem_alloc += skb->mem_len; |
skb | 730 | net/tcp/udp.c | sk->rqueue = skb; |
skb | 731 | net/tcp/udp.c | skb->next = skb; |
skb | 732 | net/tcp/udp.c | skb->prev = skb; |
skb | 736 | net/tcp/udp.c | skb->next = sk->rqueue; |
skb | 737 | net/tcp/udp.c | skb->prev = sk->rqueue->prev; |
skb | 738 | net/tcp/udp.c | skb->prev->next = skb; |
skb | 739 | net/tcp/udp.c | skb->next->prev = skb; |
skb | 742 | net/tcp/udp.c | skb->len = len - sizeof (*uh); |
skb | 214 | net/tcp/we.c | wd8003_start_xmit(struct sk_buff *skb, struct device *dev) |
skb | 233 | net/tcp/we.c | if (skb == NULL) |
skb | 241 | net/tcp/we.c | if (skb->dev != dev) |
skb | 248 | net/tcp/we.c | if (!skb->arp) |
skb | 250 | net/tcp/we.c | if ( dev->rebuild_header (skb+1, dev)) |
skb | 253 | net/tcp/we.c | if (skb->dev == dev) |
skb | 255 | net/tcp/we.c | arp_queue (skb); |
skb | 264 | net/tcp/we.c | memcpy ((unsigned char *)dev->mem_start, skb+1, skb->len); |
skb | 266 | net/tcp/we.c | len = skb->len; |
skb | 288 | net/tcp/we.c | if (skb->free) |
skb | 290 | net/tcp/we.c | kfree_skb (skb, FREE_WRITE); |