tag | line | file | source code |
buff | 573 | drivers/block/sbpcd.c | char buff[256]; |
buff | 580 | drivers/block/sbpcd.c | vsprintf(buff, fmt, args); |
buff | 582 | drivers/block/sbpcd.c | printk(buff); |
buff | 46 | drivers/net/apricot.c | #define kfree_skbmem(buff, size) kfree_s(buff,size) |
buff | 123 | drivers/net/plip.c | static int plip_header(unsigned char *buff, struct device *dev, |
buff | 127 | drivers/net/plip.c | static int plip_rebuild_header(void *buff, struct device *dev, |
buff | 405 | drivers/net/plip.c | plip_header(unsigned char *buff, struct device *dev, |
buff | 417 | drivers/net/plip.c | return eth_header(buff, dev, type, daddr, saddr, len, skb); |
buff | 429 | drivers/net/plip.c | plip_rebuild_header(void *buff, struct device *dev, unsigned long dst, |
buff | 432 | drivers/net/plip.c | struct ethhdr *eth = (struct ethhdr *)buff; |
buff | 116 | drivers/net/ppp.c | static int ppp_header(unsigned char *buff, struct device *dev, |
buff | 119 | drivers/net/ppp.c | static int ppp_rebuild_header(void *buff, struct device *dev); |
buff | 814 | drivers/net/ppp.c | unsigned char buff[128]; |
buff | 830 | drivers/net/ppp.c | n = tty_read_raw_data(tty, buff, 128); |
buff | 835 | drivers/net/ppp.c | ppp_print_buffer ("receive buffer", buff, n > 0 ? n : -n, KERNEL_DS); |
buff | 841 | drivers/net/ppp.c | error = buff[n]; |
buff | 844 | drivers/net/ppp.c | ppp_unesc(ppp,buff,n); |
buff | 1820 | drivers/net/ppp.c | ppp_header(unsigned char *buff, struct device *dev, unsigned short type, |
buff | 1827 | drivers/net/ppp.c | ppp_rebuild_header(void *buff, struct device *dev) |
buff | 1840 | drivers/net/ppp.c | ppp_header(unsigned char *buff, struct device *dev, unsigned short type, |
buff | 1847 | drivers/net/ppp.c | ppp_rebuild_header(void *buff, struct device *dev, unsigned long raddr, |
buff | 497 | drivers/net/slip.c | sl_header(unsigned char *buff, struct device *dev, unsigned short type, |
buff | 504 | drivers/net/slip.c | return ax25_encapsulate(buff,dev,type,daddr,saddr,len,skb); |
buff | 514 | drivers/net/slip.c | sl_rebuild_header(void *buff, struct device *dev, unsigned long raddr, |
buff | 522 | drivers/net/slip.c | return ax25_rebuild_header(buff,dev,raddr, skb); |
buff | 477 | drivers/scsi/aha1542.c | void *buff = SCpnt->request_buffer; |
buff | 593 | drivers/scsi/aha1542.c | if(((unsigned int) buff & 0xff000000)) goto baddma; |
buff | 604 | drivers/scsi/aha1542.c | any2scsi(ccb[mbo].dataptr, buff); |
buff | 244 | drivers/scsi/aha1740.c | void *buff = SCpnt->request_buffer; |
buff | 339 | drivers/scsi/aha1740.c | ecb[ecbno].dataptr = (long) buff; |
buff | 604 | drivers/scsi/buslogic.c | void *buff = scpnt->request_buffer; |
buff | 749 | drivers/scsi/buslogic.c | ccb[mbo].dataptr = buff; |
buff | 161 | drivers/scsi/scsi_debug.c | unsigned char * buff; |
buff | 173 | drivers/scsi/scsi_debug.c | buff = (unsigned char *) SCpnt->request_buffer; |
buff | 186 | drivers/scsi/scsi_debug.c | printk("scsi_debug: Requesting sense buffer (%x %x %x %d):", SCpnt, buff, done, bufflen); |
buff | 191 | drivers/scsi/scsi_debug.c | memset(buff, 0, bufflen); |
buff | 192 | drivers/scsi/scsi_debug.c | memcpy(buff, sense_buffer, bufflen); |
buff | 203 | drivers/scsi/scsi_debug.c | printk("Inquiry...(%x %d)\n", buff, bufflen); |
buff | 204 | drivers/scsi/scsi_debug.c | memset(buff, 0, bufflen); |
buff | 205 | drivers/scsi/scsi_debug.c | buff[0] = TYPE_DISK; |
buff | 206 | drivers/scsi/scsi_debug.c | buff[1] = 0x80; /* Removable disk */ |
buff | 207 | drivers/scsi/scsi_debug.c | buff[2] = 1; |
buff | 208 | drivers/scsi/scsi_debug.c | buff[4] = 33 - 5; |
buff | 209 | drivers/scsi/scsi_debug.c | memcpy(&buff[8],"Foo Inc",7); |
buff | 210 | drivers/scsi/scsi_debug.c | memcpy(&buff[16],"XYZZY",5); |
buff | 211 | drivers/scsi/scsi_debug.c | memcpy(&buff[32],"1",1); |
buff | 216 | drivers/scsi/scsi_debug.c | if (buff) |
buff | 217 | drivers/scsi/scsi_debug.c | memset(buff, 0, bufflen); |
buff | 223 | drivers/scsi/scsi_debug.c | memset(buff, 0, bufflen); |
buff | 224 | drivers/scsi/scsi_debug.c | buff[0] = (CAPACITY >> 24); |
buff | 225 | drivers/scsi/scsi_debug.c | buff[1] = (CAPACITY >> 16) & 0xff; |
buff | 226 | drivers/scsi/scsi_debug.c | buff[2] = (CAPACITY >> 8) & 0xff; |
buff | 227 | drivers/scsi/scsi_debug.c | buff[3] = CAPACITY & 0xff; |
buff | 228 | drivers/scsi/scsi_debug.c | buff[6] = 2; /* 512 byte sectors */ |
buff | 259 | drivers/scsi/scsi_debug.c | sgpnt = (struct scatterlist *) buff; |
buff | 260 | drivers/scsi/scsi_debug.c | buff = sgpnt[sgcount].address; |
buff | 269 | drivers/scsi/scsi_debug.c | memset(buff, 0, bufflen); |
buff | 274 | drivers/scsi/scsi_debug.c | *((unsigned short *) (buff+510)) = 0xAA55; |
buff | 275 | drivers/scsi/scsi_debug.c | p = (struct partition* ) (buff + 0x1be); |
buff | 314 | drivers/scsi/scsi_debug.c | memcpy(buff, &target, sizeof(target)); |
buff | 315 | drivers/scsi/scsi_debug.c | memcpy(buff+sizeof(target), cmd, 24); |
buff | 316 | drivers/scsi/scsi_debug.c | memcpy(buff+60, &block, sizeof(block)); |
buff | 317 | drivers/scsi/scsi_debug.c | memcpy(buff+64, SCpnt, sizeof(Scsi_Cmnd)); |
buff | 322 | drivers/scsi/scsi_debug.c | memcpy(buff+128, bh, sizeof(struct buffer_head)); |
buff | 329 | drivers/scsi/scsi_debug.c | buff = sgpnt[sgcount].address; |
buff | 356 | drivers/scsi/scsi_debug.c | sgpnt = (struct scatterlist *) buff; |
buff | 357 | drivers/scsi/scsi_debug.c | buff = sgpnt[sgcount].address; |
buff | 360 | drivers/scsi/scsi_debug.c | if (block != *((unsigned long *) (buff+60))) { |
buff | 361 | drivers/scsi/scsi_debug.c | printk("%x %x :",block, *((unsigned long *) (buff+60))); |
buff | 405 | drivers/scsi/sd.c | char * buff, *bounce_buffer; |
buff | 498 | drivers/scsi/sd.c | buff = SCpnt->request.buffer; |
buff | 518 | drivers/scsi/sd.c | buff = SCpnt->request.buffer; |
buff | 563 | drivers/scsi/sd.c | buff = SCpnt->request.buffer; |
buff | 565 | drivers/scsi/sd.c | buff = (char *) sgpnt; |
buff | 602 | drivers/scsi/sd.c | buff = SCpnt->request.buffer; |
buff | 676 | drivers/scsi/sd.c | if (((int) buff) + (this_count << 9) - 1 > ISA_DMA_THRESHOLD && |
buff | 679 | drivers/scsi/sd.c | buff = bounce_buffer; |
buff | 681 | drivers/scsi/sd.c | buff = (char *) scsi_malloc(this_count << 9); |
buff | 682 | drivers/scsi/sd.c | if(buff == NULL) { /* Try backing off a bit if we are low on mem*/ |
buff | 684 | drivers/scsi/sd.c | buff = (char *) scsi_malloc(this_count << 9); |
buff | 685 | drivers/scsi/sd.c | if(!buff) panic("Ran out of DMA buffers."); |
buff | 688 | drivers/scsi/sd.c | memcpy(buff, (char *)SCpnt->request.buffer, this_count << 9); |
buff | 745 | drivers/scsi/sd.c | scsi_do_cmd (SCpnt, (void *) cmd, buff, |
buff | 85 | drivers/scsi/seagate.c | void *buff, int bufflen, int reselect); |
buff | 574 | drivers/scsi/seagate.c | void *buff, int bufflen, int reselect) { |
buff | 53 | drivers/scsi/sg.c | char *buff; /* the buffer */ |
buff | 111 | drivers/scsi/sg.c | scsi_free(scsi_generics[dev].buff,scsi_generics[dev].buff_len); |
buff | 148 | drivers/scsi/sg.c | static void sg_free(char *buff,int size) |
buff | 151 | drivers/scsi/sg.c | if (buff==big_buff) |
buff | 158 | drivers/scsi/sg.c | scsi_free(buff,size); |
buff | 185 | drivers/scsi/sg.c | memcpy_tofs(buf,device->buff,count-sizeof(struct sg_header)); |
buff | 190 | drivers/scsi/sg.c | sg_free(device->buff,device->buff_len); |
buff | 254 | drivers/scsi/sg.c | if ((bsize<0) || !(device->buff=sg_malloc(device->buff_len=bsize))) |
buff | 267 | drivers/scsi/sg.c | sg_free(device->buff,device->buff_len); |
buff | 279 | drivers/scsi/sg.c | memcpy_fromfs(device->buff,buf,device->header.pack_len-size-sizeof(struct sg_header)); |
buff | 285 | drivers/scsi/sg.c | (void *) device->buff,amt,sg_command_done,device->timeout,SG_DEFAULT_RETRIES); |
buff | 142 | drivers/sound/audio.c | translate_bytes (const unsigned char *table, unsigned char *buff, unsigned long n) |
buff | 147 | drivers/sound/audio.c | buff[i] = table[buff[i]]; |
buff | 152 | drivers/sound/audio.c | translate_bytes (const void *table, void *buff, unsigned long n) |
buff | 159 | drivers/sound/audio.c | :"b" ((long) table), "c" (n), "D" ((long) buff), "S" ((long) buff) |
buff | 31 | include/linux/etherdevice.h | extern int eth_header(unsigned char *buff, struct device *dev, |
buff | 35 | include/linux/etherdevice.h | extern int eth_rebuild_header(void *buff, struct device *dev, |
buff | 108 | include/linux/net.h | int (*send) (struct socket *sock, void *buff, int len, int nonblock, |
buff | 110 | include/linux/net.h | int (*recv) (struct socket *sock, void *buff, int len, int nonblock, |
buff | 112 | include/linux/net.h | int (*sendto) (struct socket *sock, void *buff, int len, int nonblock, |
buff | 114 | include/linux/net.h | int (*recvfrom) (struct socket *sock, void *buff, int len, int nonblock, |
buff | 124 | include/linux/netdevice.h | int (*hard_header) (unsigned char *buff, |
buff | 185 | include/linux/netdevice.h | extern int dev_rint(unsigned char *buff, long len, int flags, |
buff | 529 | net/inet/dev.c | int dev_rint(unsigned char *buff, long len, int flags, struct device *dev) |
buff | 537 | net/inet/dev.c | if (dev == NULL || buff == NULL || len <= 0) |
buff | 542 | net/inet/dev.c | skb = (struct sk_buff *) buff; |
buff | 575 | net/inet/dev.c | (unsigned long) buff); |
buff | 576 | net/inet/dev.c | memcpy(to, buff, amount); |
buff | 579 | net/inet/dev.c | buff += amount; |
buff | 581 | net/inet/dev.c | if ((unsigned long) buff == dev->rmem_end) |
buff | 582 | net/inet/dev.c | buff = (unsigned char *) dev->rmem_start; |
buff | 82 | net/inet/eth.c | int eth_header(unsigned char *buff, struct device *dev, unsigned short type, |
buff | 86 | net/inet/eth.c | struct ethhdr *eth = (struct ethhdr *)buff; |
buff | 133 | net/inet/eth.c | int eth_rebuild_header(void *buff, struct device *dev, unsigned long dst, |
buff | 136 | net/inet/eth.c | struct ethhdr *eth = (struct ethhdr *)buff; |
buff | 27 | net/inet/eth.h | extern int eth_header(unsigned char *buff, struct device *dev, |
buff | 30 | net/inet/eth.h | extern int eth_rebuild_header(void *buff, struct device *dev); |
buff | 581 | net/inet/icmp.c | unsigned char *buff; |
buff | 595 | net/inet/icmp.c | buff = skb1->h.raw; |
buff | 596 | net/inet/icmp.c | icmph = (struct icmphdr *) buff; |
buff | 198 | net/inet/ip.c | unsigned char *buff; |
buff | 210 | net/inet/ip.c | buff = skb->data; |
buff | 269 | net/inet/ip.c | buff += tmp; |
buff | 293 | net/inet/ip.c | iph = (struct iphdr *)buff; |
buff | 315 | net/inet/ip.c | unsigned char *buff; |
buff | 332 | net/inet/ip.c | buff = (unsigned char *)(iph + 1); |
buff | 335 | net/inet/ip.c | while (!done && len < iph->ihl*4) switch(*buff) { |
buff | 340 | net/inet/ip.c | buff++; |
buff | 344 | net/inet/ip.c | buff++; |
buff | 345 | net/inet/ip.c | if (*buff != 11) return(1); |
buff | 346 | net/inet/ip.c | buff++; |
buff | 347 | net/inet/ip.c | opt->security = ntohs(*(unsigned short *)buff); |
buff | 348 | net/inet/ip.c | buff += 2; |
buff | 349 | net/inet/ip.c | opt->compartment = ntohs(*(unsigned short *)buff); |
buff | 350 | net/inet/ip.c | buff += 2; |
buff | 351 | net/inet/ip.c | opt->handling = ntohs(*(unsigned short *)buff); |
buff | 352 | net/inet/ip.c | buff += 2; |
buff | 353 | net/inet/ip.c | opt->tcc = ((*buff) << 16) + ntohs(*(unsigned short *)(buff+1)); |
buff | 354 | net/inet/ip.c | buff += 3; |
buff | 358 | net/inet/ip.c | buff++; |
buff | 359 | net/inet/ip.c | if ((*buff - 3)% 4 != 0) return(1); |
buff | 360 | net/inet/ip.c | len += *buff; |
buff | 361 | net/inet/ip.c | opt->loose_route.route_size = (*buff -3)/4; |
buff | 362 | net/inet/ip.c | buff++; |
buff | 363 | net/inet/ip.c | if (*buff % 4 != 0) return(1); |
buff | 364 | net/inet/ip.c | opt->loose_route.pointer = *buff/4 - 1; |
buff | 365 | net/inet/ip.c | buff++; |
buff | 366 | net/inet/ip.c | buff++; |
buff | 370 | net/inet/ip.c | opt->loose_route.route[i] = *(unsigned long *)buff; |
buff | 371 | net/inet/ip.c | buff += 4; |
buff | 375 | net/inet/ip.c | buff++; |
buff | 376 | net/inet/ip.c | if ((*buff - 3)% 4 != 0) return(1); |
buff | 377 | net/inet/ip.c | len += *buff; |
buff | 378 | net/inet/ip.c | opt->strict_route.route_size = (*buff -3)/4; |
buff | 379 | net/inet/ip.c | buff++; |
buff | 380 | net/inet/ip.c | if (*buff % 4 != 0) return(1); |
buff | 381 | net/inet/ip.c | opt->strict_route.pointer = *buff/4 - 1; |
buff | 382 | net/inet/ip.c | buff++; |
buff | 383 | net/inet/ip.c | buff++; |
buff | 387 | net/inet/ip.c | opt->strict_route.route[i] = *(unsigned long *)buff; |
buff | 388 | net/inet/ip.c | buff += 4; |
buff | 392 | net/inet/ip.c | buff++; |
buff | 393 | net/inet/ip.c | if ((*buff - 3)% 4 != 0) return(1); |
buff | 394 | net/inet/ip.c | len += *buff; |
buff | 395 | net/inet/ip.c | opt->record_route.route_size = (*buff -3)/4; |
buff | 396 | net/inet/ip.c | buff++; |
buff | 397 | net/inet/ip.c | if (*buff % 4 != 0) return(1); |
buff | 398 | net/inet/ip.c | opt->record_route.pointer = *buff/4 - 1; |
buff | 399 | net/inet/ip.c | buff++; |
buff | 400 | net/inet/ip.c | buff++; |
buff | 404 | net/inet/ip.c | opt->record_route.route[i] = *(unsigned long *)buff; |
buff | 405 | net/inet/ip.c | buff += 4; |
buff | 410 | net/inet/ip.c | buff +=2; |
buff | 411 | net/inet/ip.c | opt->stream = *(unsigned short *)buff; |
buff | 412 | net/inet/ip.c | buff += 2; |
buff | 415 | net/inet/ip.c | buff++; |
buff | 416 | net/inet/ip.c | len += *buff; |
buff | 417 | net/inet/ip.c | if (*buff % 4 != 0) return(1); |
buff | 418 | net/inet/ip.c | opt->tstamp.len = *buff / 4 - 1; |
buff | 419 | net/inet/ip.c | buff++; |
buff | 420 | net/inet/ip.c | if ((*buff - 1) % 4 != 0) return(1); |
buff | 421 | net/inet/ip.c | opt->tstamp.ptr = (*buff-1)/4; |
buff | 422 | net/inet/ip.c | buff++; |
buff | 423 | net/inet/ip.c | opt->tstamp.x.full_char = *buff; |
buff | 424 | net/inet/ip.c | buff++; |
buff | 426 | net/inet/ip.c | opt->tstamp.data[i] = *(unsigned long *)buff; |
buff | 427 | net/inet/ip.c | buff += 4; |
buff | 464 | net/inet/ip.c | static inline unsigned short ip_fast_csum(unsigned char * buff, int wlen) |
buff | 482 | net/inet/ip.c | : "=r" (sum), "=S" (buff), "=r" (wlen), "=a" (bogus) |
buff | 483 | net/inet/ip.c | : "0" (sum), "1" (buff), "2" (wlen)); |
buff | 493 | net/inet/ip.c | unsigned short ip_compute_csum(unsigned char * buff, int len) |
buff | 510 | net/inet/ip.c | : "=b" (sum) , "=S" (buff) |
buff | 511 | net/inet/ip.c | : "0" (sum), "c" (len >> 2) ,"1" (buff) |
buff | 519 | net/inet/ip.c | : "=b" (sum), "=S" (buff) |
buff | 520 | net/inet/ip.c | : "0" (sum), "1" (buff) |
buff | 529 | net/inet/ip.c | : "=b" (sum), "=S" (buff) |
buff | 530 | net/inet/ip.c | : "0" (sum), "1" (buff) |
buff | 78 | net/inet/ip.h | extern unsigned short ip_compute_csum(unsigned char * buff, int len); |
buff | 207 | net/inet/packet.c | static int packet_write(struct sock *sk, unsigned char *buff, |
buff | 210 | net/inet/packet.c | return(packet_sendto(sk, buff, len, noblock, flags, NULL, 0)); |
buff | 347 | net/inet/packet.c | int packet_read(struct sock *sk, unsigned char *buff, |
buff | 350 | net/inet/packet.c | return(packet_recvfrom(sk, buff, len, noblock, flags, NULL, NULL)); |
buff | 39 | net/inet/protocol.h | void (*err_handler)(int err, unsigned char *buff, |
buff | 249 | net/inet/raw.c | unsigned char *buff; |
buff | 252 | net/inet/raw.c | buff = skb->data; |
buff | 253 | net/inet/raw.c | buff += tmp; |
buff | 255 | net/inet/raw.c | iph = (struct iphdr *)buff; |
buff | 267 | net/inet/raw.c | static int raw_write(struct sock *sk, unsigned char *buff, int len, int noblock, |
buff | 270 | net/inet/raw.c | return(raw_sendto(sk, buff, len, noblock, flags, NULL, 0)); |
buff | 351 | net/inet/raw.c | int raw_read (struct sock *sk, unsigned char *buff, int len, int noblock,unsigned flags) |
buff | 353 | net/inet/raw.c | return(raw_recvfrom(sk, buff, len, noblock, flags, NULL, NULL)); |
buff | 33 | net/inet/raw.h | extern int raw_read(struct sock *sk, unsigned char *buff, |
buff | 217 | net/inet/sock.h | int (*rcv)(struct sk_buff *buff, struct device *dev, |
buff | 778 | net/inet/tcp.c | struct sk_buff *buff; |
buff | 790 | net/inet/tcp.c | buff = sk->prot->wmalloc(sk, MAX_ACK_SIZE, 1, GFP_ATOMIC); |
buff | 791 | net/inet/tcp.c | if (buff == NULL) |
buff | 802 | net/inet/tcp.c | buff->len = sizeof(struct tcphdr); |
buff | 803 | net/inet/tcp.c | buff->sk = sk; |
buff | 804 | net/inet/tcp.c | buff->localroute = sk->localroute; |
buff | 805 | net/inet/tcp.c | t1 =(struct tcphdr *) buff->data; |
buff | 808 | net/inet/tcp.c | tmp = sk->prot->build_header(buff, sk->saddr, daddr, &dev, |
buff | 812 | net/inet/tcp.c | buff->free=1; |
buff | 813 | net/inet/tcp.c | sk->prot->wfree(sk, buff->mem_addr, buff->mem_len); |
buff | 816 | net/inet/tcp.c | buff->len += tmp; |
buff | 860 | net/inet/tcp.c | sk->prot->queue_xmit(sk, dev, buff, 1); |
buff | 901 | net/inet/tcp.c | unsigned char *buff; |
buff | 1141 | net/inet/tcp.c | buff = skb->data; |
buff | 1160 | net/inet/tcp.c | buff += tmp; |
buff | 1161 | net/inet/tcp.c | skb->h.th =(struct tcphdr *) buff; |
buff | 1162 | net/inet/tcp.c | tmp = tcp_build_header((struct tcphdr *)buff, sk, len-copy); |
buff | 1174 | net/inet/tcp.c | ((struct tcphdr *)buff)->urg = 1; |
buff | 1175 | net/inet/tcp.c | ((struct tcphdr *)buff)->urg_ptr = ntohs(copy); |
buff | 1178 | net/inet/tcp.c | memcpy_fromfs(buff+tmp, from, copy); |
buff | 1241 | net/inet/tcp.c | struct sk_buff *buff; |
buff | 1257 | net/inet/tcp.c | buff = sk->prot->wmalloc(sk,MAX_ACK_SIZE,1, GFP_ATOMIC); |
buff | 1258 | net/inet/tcp.c | if (buff == NULL) |
buff | 1265 | net/inet/tcp.c | buff->len = sizeof(struct tcphdr); |
buff | 1266 | net/inet/tcp.c | buff->sk = sk; |
buff | 1267 | net/inet/tcp.c | buff->localroute = sk->localroute; |
buff | 1273 | net/inet/tcp.c | tmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev, |
buff | 1277 | net/inet/tcp.c | buff->free=1; |
buff | 1278 | net/inet/tcp.c | sk->prot->wfree(sk, buff->mem_addr, buff->mem_len); |
buff | 1282 | net/inet/tcp.c | buff->len += tmp; |
buff | 1283 | net/inet/tcp.c | t1 =(struct tcphdr *)(buff->data +tmp); |
buff | 1301 | net/inet/tcp.c | sk->prot->queue_xmit(sk, dev, buff, 1); |
buff | 1614 | net/inet/tcp.c | struct sk_buff *buff; |
buff | 1663 | net/inet/tcp.c | buff = prot->wmalloc(sk, MAX_RESET_SIZE,1 , GFP_KERNEL); |
buff | 1664 | net/inet/tcp.c | if (buff == NULL) |
buff | 1668 | net/inet/tcp.c | buff->sk = sk; |
buff | 1669 | net/inet/tcp.c | buff->len = sizeof(*t1); |
buff | 1670 | net/inet/tcp.c | buff->localroute = sk->localroute; |
buff | 1671 | net/inet/tcp.c | t1 =(struct tcphdr *) buff->data; |
buff | 1677 | net/inet/tcp.c | tmp = prot->build_header(buff,sk->saddr, sk->daddr, &dev, |
buff | 1692 | net/inet/tcp.c | buff->free=1; |
buff | 1693 | net/inet/tcp.c | prot->wfree(sk,buff->mem_addr, buff->mem_len); |
buff | 1707 | net/inet/tcp.c | buff->len += tmp; |
buff | 1708 | net/inet/tcp.c | buff->dev = dev; |
buff | 1712 | net/inet/tcp.c | buff->h.seq = sk->write_seq; |
buff | 1728 | net/inet/tcp.c | buff->free=0; |
buff | 1729 | net/inet/tcp.c | if (buff->next != NULL) |
buff | 1732 | net/inet/tcp.c | skb_unlink(buff); |
buff | 1734 | net/inet/tcp.c | skb_queue_tail(&sk->write_queue, buff); |
buff | 1739 | net/inet/tcp.c | sk->prot->queue_xmit(sk, dev, buff, 0); |
buff | 1790 | net/inet/tcp.c | struct sk_buff *buff; |
buff | 1800 | net/inet/tcp.c | buff = prot->wmalloc(NULL, MAX_RESET_SIZE, 1, GFP_ATOMIC); |
buff | 1801 | net/inet/tcp.c | if (buff == NULL) |
buff | 1804 | net/inet/tcp.c | buff->len = sizeof(*t1); |
buff | 1805 | net/inet/tcp.c | buff->sk = NULL; |
buff | 1806 | net/inet/tcp.c | buff->dev = dev; |
buff | 1807 | net/inet/tcp.c | buff->localroute = 0; |
buff | 1809 | net/inet/tcp.c | t1 =(struct tcphdr *) buff->data; |
buff | 1815 | net/inet/tcp.c | tmp = prot->build_header(buff, saddr, daddr, &ndev, IPPROTO_TCP, opt, |
buff | 1819 | net/inet/tcp.c | buff->free = 1; |
buff | 1820 | net/inet/tcp.c | prot->wfree(NULL, buff->mem_addr, buff->mem_len); |
buff | 1825 | net/inet/tcp.c | buff->len += tmp; |
buff | 1859 | net/inet/tcp.c | prot->queue_xmit(NULL, dev, buff, 1); |
buff | 1944 | net/inet/tcp.c | struct sk_buff *buff; |
buff | 2113 | net/inet/tcp.c | buff = newsk->prot->wmalloc(newsk, MAX_SYN_SIZE, 1, GFP_ATOMIC); |
buff | 2114 | net/inet/tcp.c | if (buff == NULL) |
buff | 2124 | net/inet/tcp.c | buff->len = sizeof(struct tcphdr)+4; |
buff | 2125 | net/inet/tcp.c | buff->sk = newsk; |
buff | 2126 | net/inet/tcp.c | buff->localroute = newsk->localroute; |
buff | 2128 | net/inet/tcp.c | t1 =(struct tcphdr *) buff->data; |
buff | 2134 | net/inet/tcp.c | tmp = sk->prot->build_header(buff, newsk->saddr, newsk->daddr, &ndev, |
buff | 2144 | net/inet/tcp.c | buff->free=1; |
buff | 2145 | net/inet/tcp.c | kfree_skb(buff,FREE_WRITE); |
buff | 2154 | net/inet/tcp.c | buff->len += tmp; |
buff | 2158 | net/inet/tcp.c | buff->h.seq = newsk->write_seq; |
buff | 2184 | net/inet/tcp.c | newsk->prot->queue_xmit(newsk, dev, buff, 0); |
buff | 2205 | net/inet/tcp.c | struct sk_buff *buff; |
buff | 2319 | net/inet/tcp.c | buff = prot->wmalloc(sk, MAX_FIN_SIZE, 1, GFP_ATOMIC); |
buff | 2320 | net/inet/tcp.c | if (buff == NULL) |
buff | 2331 | net/inet/tcp.c | buff->sk = sk; |
buff | 2332 | net/inet/tcp.c | buff->free = 1; |
buff | 2333 | net/inet/tcp.c | buff->len = sizeof(*t1); |
buff | 2334 | net/inet/tcp.c | buff->localroute = sk->localroute; |
buff | 2335 | net/inet/tcp.c | t1 =(struct tcphdr *) buff->data; |
buff | 2340 | net/inet/tcp.c | tmp = prot->build_header(buff,sk->saddr, sk->daddr, &dev, |
buff | 2346 | net/inet/tcp.c | kfree_skb(buff,FREE_WRITE); |
buff | 2366 | net/inet/tcp.c | buff->len += tmp; |
buff | 2367 | net/inet/tcp.c | buff->dev = dev; |
buff | 2371 | net/inet/tcp.c | buff->h.seq = sk->write_seq; |
buff | 2391 | net/inet/tcp.c | prot->queue_xmit(sk, dev, buff, 0); |
buff | 2396 | net/inet/tcp.c | if (buff->next != NULL) |
buff | 2399 | net/inet/tcp.c | skb_unlink(buff); |
buff | 2401 | net/inet/tcp.c | skb_queue_tail(&sk->write_queue, buff); |
buff | 3561 | net/inet/tcp.c | struct sk_buff *buff; |
buff | 3609 | net/inet/tcp.c | buff = sk->prot->wmalloc(sk,MAX_SYN_SIZE,0, GFP_KERNEL); |
buff | 3610 | net/inet/tcp.c | if (buff == NULL) |
buff | 3615 | net/inet/tcp.c | buff->len = 24; |
buff | 3616 | net/inet/tcp.c | buff->sk = sk; |
buff | 3617 | net/inet/tcp.c | buff->free = 1; |
buff | 3618 | net/inet/tcp.c | buff->localroute = sk->localroute; |
buff | 3620 | net/inet/tcp.c | t1 = (struct tcphdr *) buff->data; |
buff | 3633 | net/inet/tcp.c | tmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev, |
buff | 3637 | net/inet/tcp.c | sk->prot->wfree(sk, buff->mem_addr, buff->mem_len); |
buff | 3642 | net/inet/tcp.c | buff->len += tmp; |
buff | 3648 | net/inet/tcp.c | buff->h.seq = sk->write_seq; |
buff | 3712 | net/inet/tcp.c | sk->prot->queue_xmit(sk, dev, buff, 0); |
buff | 4315 | net/inet/tcp.c | struct sk_buff *buff; |
buff | 4337 | net/inet/tcp.c | buff = sk->prot->wmalloc(sk,MAX_ACK_SIZE,1, GFP_ATOMIC); |
buff | 4338 | net/inet/tcp.c | if (buff == NULL) |
buff | 4341 | net/inet/tcp.c | buff->len = sizeof(struct tcphdr); |
buff | 4342 | net/inet/tcp.c | buff->free = 1; |
buff | 4343 | net/inet/tcp.c | buff->sk = sk; |
buff | 4344 | net/inet/tcp.c | buff->localroute = sk->localroute; |
buff | 4346 | net/inet/tcp.c | t1 = (struct tcphdr *) buff->data; |
buff | 4349 | net/inet/tcp.c | tmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev, |
buff | 4353 | net/inet/tcp.c | sk->prot->wfree(sk, buff->mem_addr, buff->mem_len); |
buff | 4357 | net/inet/tcp.c | buff->len += tmp; |
buff | 4383 | net/inet/tcp.c | sk->prot->queue_xmit(sk, dev, buff, 1); |
buff | 255 | net/inet/udp.c | unsigned char *buff; |
buff | 278 | net/inet/udp.c | buff = skb->data; |
buff | 295 | net/inet/udp.c | buff += tmp; |
buff | 304 | net/inet/udp.c | uh = (struct udphdr *) buff; |
buff | 308 | net/inet/udp.c | buff = (unsigned char *) (uh + 1); |
buff | 314 | net/inet/udp.c | memcpy_fromfs(buff, from, len); |
buff | 392 | net/inet/udp.c | static int udp_write(struct sock *sk, unsigned char *buff, int len, int noblock, |
buff | 395 | net/inet/udp.c | return(udp_sendto(sk, buff, len, noblock, flags, NULL, 0)); |
buff | 510 | net/inet/udp.c | int udp_read(struct sock *sk, unsigned char *buff, int len, int noblock, |
buff | 513 | net/inet/udp.c | return(udp_recvfrom(sk, buff, len, noblock, flags, NULL, NULL)); |
buff | 39 | net/inet/udp.h | extern int udp_read(struct sock *sk, unsigned char *buff, |
buff | 51 | net/inet/utils.c | static char buff[18]; |
buff | 55 | net/inet/utils.c | sprintf(buff, "%d.%d.%d.%d", |
buff | 57 | net/inet/utils.c | return(buff); |
buff | 915 | net/socket.c | static int sock_send(int fd, void * buff, int len, unsigned flags) |
buff | 928 | net/socket.c | err=verify_area(VERIFY_READ, buff, len); |
buff | 931 | net/socket.c | return(sock->ops->send(sock, buff, len, (file->f_flags & O_NONBLOCK), flags)); |
buff | 940 | net/socket.c | static int sock_sendto(int fd, void * buff, int len, unsigned flags, |
buff | 955 | net/socket.c | err=verify_area(VERIFY_READ,buff,len); |
buff | 962 | net/socket.c | return(sock->ops->sendto(sock, buff, len, (file->f_flags & O_NONBLOCK), |
buff | 975 | net/socket.c | static int sock_recv(int fd, void * buff, int len, unsigned flags) |
buff | 991 | net/socket.c | err=verify_area(VERIFY_WRITE, buff, len); |
buff | 995 | net/socket.c | return(sock->ops->recv(sock, buff, len,(file->f_flags & O_NONBLOCK), flags)); |
buff | 1004 | net/socket.c | static int sock_recvfrom(int fd, void * buff, int len, unsigned flags, |
buff | 1021 | net/socket.c | err=verify_area(VERIFY_WRITE,buff,len); |
buff | 1025 | net/socket.c | len=sock->ops->recvfrom(sock, buff, len, (file->f_flags & O_NONBLOCK), |
buff | 81 | net/unix/sock.c | static int unix_proto_send(struct socket *sock, void *buff, int len, |
buff | 83 | net/unix/sock.c | static int unix_proto_recv(struct socket *sock, void *buff, int len, |
buff | 85 | net/unix/sock.c | static int unix_proto_sendto(struct socket *sock, void *buff, int len, |
buff | 88 | net/unix/sock.c | static int unix_proto_recvfrom(struct socket *sock, void *buff, int len, |
buff | 164 | net/unix/sock.c | static int unix_proto_sendto(struct socket *sock, void *buff, int len, int nonblock, |
buff | 170 | net/unix/sock.c | static int unix_proto_recvfrom(struct socket *sock, void *buff, int len, int nonblock, |
buff | 190 | net/unix/sock.c | static int unix_proto_send(struct socket *sock, void *buff, int len, int nonblock, |
buff | 195 | net/unix/sock.c | return(unix_proto_write(sock, (char *) buff, len, nonblock)); |
buff | 203 | net/unix/sock.c | static int unix_proto_recv(struct socket *sock, void *buff, int len, int nonblock, |
buff | 208 | net/unix/sock.c | return(unix_proto_read(sock, (char *) buff, len, nonblock)); |