taglinefilesource code
skb122drivers/net/3c501.cstatic int  el_start_xmit(struct sk_buff *skb, struct device *dev);
skb377drivers/net/3c501.cstatic int el_start_xmit(struct sk_buff *skb, struct device *dev)
skb406drivers/net/3c501.cif (skb == NULL) 
skb433drivers/net/3c501.cint gp_start = 0x800 - (ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN);
skb434drivers/net/3c501.cunsigned char *buf = skb->data;
skb462drivers/net/3c501.coutsb(DATAPORT,buf,skb->len);  /* load buffer (usual thing each byte increments the pointer) */
skb482drivers/net/3c501.cdev_kfree_skb (skb, FREE_WRITE);
skb679drivers/net/3c501.cstruct sk_buff *skb;
skb699drivers/net/3c501.cskb = dev_alloc_skb(pkt_len+2);
skb706drivers/net/3c501.cif (skb == NULL) 
skb714drivers/net/3c501.cskb_reserve(skb,2);  /* Force 16 byte alignment */
skb715drivers/net/3c501.cskb->dev = dev;
skb721drivers/net/3c501.cinsb(DATAPORT, skb_put(skb,pkt_len), pkt_len);
skb722drivers/net/3c501.cskb->protocol=eth_type_trans(skb,dev);
skb723drivers/net/3c501.cnetif_rx(skb);
skb77drivers/net/3c503.cstatic void el2_block_input(struct device *dev, int count, struct sk_buff *skb,
skb513drivers/net/3c503.cel2_block_input(struct device *dev, int count, struct sk_buff *skb, int ring_offset)
skb525drivers/net/3c503.cmemcpy_fromio(skb->data, dev->mem_start + ring_offset, semi_count);
skb527drivers/net/3c503.cmemcpy_fromio(skb->data + semi_count, dev->rmem_start, count);
skb530drivers/net/3c503.ceth_io_copy_and_sum(skb, dev->mem_start + ring_offset, count, 0);
skb551drivers/net/3c503.c(skb->data)[i] = inb_p(E33G_FIFOH);
skb557drivers/net/3c505.cstruct sk_buff *skb;
skb572drivers/net/3c505.cskb = dev_alloc_skb(rlen+2);
skb583drivers/net/3c505.cif (skb == NULL) {
skb599drivers/net/3c505.cskb_reserve(skb,2);  /* 16 byte alignment */
skb600drivers/net/3c505.cskb->dev = dev;
skb605drivers/net/3c505.cptr = (unsigned short *)skb_put(skb,len);
skb614drivers/net/3c505.ckfree_skb(skb, FREE_WRITE);
skb623drivers/net/3c505.cskb->protocol=eth_type_trans(skb,dev);
skb624drivers/net/3c505.cnetif_rx(skb);
skb1005drivers/net/3c505.celp_start_xmit (struct sk_buff *skb, struct device *dev)
skb1012drivers/net/3c505.cif (skb == NULL) {
skb1020drivers/net/3c505.cif (skb->len <= 0)
skb1024drivers/net/3c505.cprintk("%s: request to send packet of length %d\n", dev->name, (int)skb->len);
skb1045drivers/net/3c505.cif (!send_packet(dev, skb->data, skb->len)) {
skb1051drivers/net/3c505.cprintk("%s: packet of length %d sent\n", dev->name, (int)skb->len);
skb1067drivers/net/3c505.cdev_kfree_skb(skb, FREE_WRITE);
skb282drivers/net/3c507.cstatic int  el16_send_packet(struct sk_buff *skb, struct device *dev);
skb451drivers/net/3c507.cel16_send_packet(struct sk_buff *skb, struct device *dev)
skb486drivers/net/3c507.cif (skb == NULL) {
skb495drivers/net/3c507.cshort length = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN;
skb496drivers/net/3c507.cunsigned char *buf = skb->data;
skb506drivers/net/3c507.cdev_kfree_skb (skb, FREE_WRITE);
skb841drivers/net/3c507.cstruct sk_buff *skb;
skb844drivers/net/3c507.cskb = dev_alloc_skb(pkt_len+2);
skb845drivers/net/3c507.cif (skb == NULL) {
skb851drivers/net/3c507.cskb_reserve(skb,2);
skb852drivers/net/3c507.cskb->dev = dev;
skb855drivers/net/3c507.cmemcpy(skb_put(skb,pkt_len), data_frame + 5, pkt_len);
skb857drivers/net/3c507.cskb->protocol=eth_type_trans(skb,dev);
skb858drivers/net/3c507.cnetif_rx(skb);
skb104drivers/net/3c509.cstatic int el3_start_xmit(struct sk_buff *skb, struct device *dev);
skb382drivers/net/3c509.cel3_start_xmit(struct sk_buff *skb, struct device *dev)
skb401drivers/net/3c509.cif (skb == NULL) {
skb406drivers/net/3c509.cif (skb->len <= 0)
skb411drivers/net/3c509.cdev->name, skb->len, inw(ioaddr + EL3_STATUS));
skb435drivers/net/3c509.coutw(skb->len, ioaddr + TX_FIFO);
skb438drivers/net/3c509.coutsl(ioaddr + TX_FIFO, skb->data, (skb->len + 3) >> 2);
skb448drivers/net/3c509.cdev_kfree_skb (skb, FREE_WRITE);
skb596drivers/net/3c509.cstruct sk_buff *skb;
skb598drivers/net/3c509.cskb = dev_alloc_skb(pkt_len+5);
skb602drivers/net/3c509.cif (skb != NULL) {
skb603drivers/net/3c509.cskb->dev = dev;
skb604drivers/net/3c509.cskb_reserve(skb,2);  /* Align IP on 16 byte boundaries */
skb607drivers/net/3c509.cinsl(ioaddr+RX_FIFO, skb_put(skb,pkt_len),
skb610drivers/net/3c509.cskb->protocol=eth_type_trans(skb,dev);
skb611drivers/net/3c509.cnetif_rx(skb);
skb238drivers/net/3c59x.cstatic int vortex_start_xmit(struct sk_buff *skb, struct device *dev);
skb636drivers/net/3c59x.cvortex_start_xmit(struct sk_buff *skb, struct device *dev)
skb663drivers/net/3c59x.cif (skb == NULL || skb->len <= 0) {
skb679drivers/net/3c59x.coutl(skb->len, ioaddr + TX_FIFO);
skb683drivers/net/3c59x.coutl((int)(skb->data), ioaddr + Wn7_MasterAddr);
skb684drivers/net/3c59x.coutw((skb->len + 3) & ~3, ioaddr + Wn7_MasterLen);
skb685drivers/net/3c59x.cvp->tx_skb = skb;
skb689drivers/net/3c59x.coutsl(ioaddr + TX_FIFO, skb->data, (skb->len + 3) >> 2);
skb690drivers/net/3c59x.cdev_kfree_skb (skb, FREE_WRITE);
skb699drivers/net/3c59x.coutsl(ioaddr + TX_FIFO, skb->data, (skb->len + 3) >> 2);
skb700drivers/net/3c59x.cdev_kfree_skb (skb, FREE_WRITE);
skb891drivers/net/3c59x.cstruct sk_buff *skb;
skb893drivers/net/3c59x.cskb = dev_alloc_skb(pkt_len + 5);
skb897drivers/net/3c59x.cif (skb != NULL) {
skb898drivers/net/3c59x.cskb->dev = dev;
skb899drivers/net/3c59x.cskb_reserve(skb, 2);  /* Align IP on 16 byte boundaries */
skb901drivers/net/3c59x.cinsl(ioaddr + RX_FIFO, skb_put(skb, pkt_len),
skb903drivers/net/3c59x.cskb->protocol = eth_type_trans(skb, dev);
skb904drivers/net/3c59x.cnetif_rx(skb);
skb140drivers/net/8390.cstatic int ei_start_xmit(struct sk_buff *skb, struct device *dev)
skb182drivers/net/8390.cif (skb == NULL) {
skb187drivers/net/8390.clength = skb->len;
skb188drivers/net/8390.cif (skb->len <= 0)
skb228drivers/net/8390.cei_block_output(dev, length, skb->data, output_page);
skb242drivers/net/8390.cei_block_output(dev, length, skb->data, ei_local->tx_start_page);
skb253drivers/net/8390.cdev_kfree_skb (skb, FREE_WRITE);
skb467drivers/net/8390.cstruct sk_buff *skb;
skb469drivers/net/8390.cskb = dev_alloc_skb(pkt_len+2);
skb470drivers/net/8390.cif (skb == NULL) {
skb477drivers/net/8390.cskb_reserve(skb,2);  /* IP headers on 16 byte boundaries */
skb478drivers/net/8390.cskb->dev = dev;
skb479drivers/net/8390.cskb_put(skb, pkt_len);  /* Make room */
skb480drivers/net/8390.cei_block_input(dev, pkt_len, skb, current_offset + sizeof(rx_frame));
skb481drivers/net/8390.cskb->protocol=eth_type_trans(skb,dev);
skb482drivers/net/8390.cnetif_rx(skb);
skb76drivers/net/ac3200.cstruct sk_buff *skb, int ring_offset);
skb269drivers/net/ac3200.cstatic void ac_block_input(struct device *dev, int count, struct sk_buff *skb,
skb277drivers/net/ac3200.cmemcpy_fromio(skb->data, xfer_start, semi_count);
skb279drivers/net/ac3200.cmemcpy_fromio(skb->data + semi_count, dev->rmem_start, count);
skb282drivers/net/ac3200.ceth_io_copy_and_sum(skb, xfer_start, count, 0);
skb185drivers/net/apricot.cstatic int i596_start_xmit(struct sk_buff *skb, struct device *dev);
skb340drivers/net/apricot.cstruct sk_buff *skb = dev_alloc_skb(pkt_len);
skb344drivers/net/apricot.cif (skb == NULL)
skb351drivers/net/apricot.cskb->dev = dev;    
skb352drivers/net/apricot.cmemcpy(skb_put(skb,pkt_len), lp->scb.rfd->data, pkt_len);
skb354drivers/net/apricot.cskb->protocol=eth_type_trans(skb,dev);
skb355drivers/net/apricot.cnetif_rx(skb);
skb358drivers/net/apricot.cif (i596_debug > 4) print_eth(skb->data);
skb406drivers/net/apricot.cstruct sk_buff *skb = ((struct sk_buff *)(tx_cmd->tbd->data)) -1;
skb408drivers/net/apricot.cdev_kfree_skb(skb, FREE_WRITE);
skb569drivers/net/apricot.ci596_start_xmit(struct sk_buff *skb, struct device *dev)
skb607drivers/net/apricot.cif (skb == NULL) {
skb613drivers/net/apricot.cif (skb->len <= 0) return 0;
skb623drivers/net/apricot.cshort length = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN;
skb632drivers/net/apricot.cdev_kfree_skb(skb, FREE_WRITE);
skb646drivers/net/apricot.ctx_cmd->tbd->data = skb->data;
skb648drivers/net/apricot.cif (i596_debug > 3) print_eth(skb->data);
skb804drivers/net/apricot.cstruct sk_buff *skb = ((struct sk_buff *)(tx_cmd->tbd->data)) -1;
skb806drivers/net/apricot.cdev_kfree_skb(skb, FREE_WRITE);
skb810drivers/net/apricot.cif (i596_debug >2) print_eth(skb->data);
skb520drivers/net/arcnet.cstruct sk_buff *skb;    /* packet data buffer             */
skb528drivers/net/arcnet.cstruct sk_buff *skb;    /* buffer from upper levels */
skb586drivers/net/arcnet.cstatic int arcnet_send_packet_bad(struct sk_buff *skb,struct device *dev);
skb587drivers/net/arcnet.cstatic int arcnetA_send_packet(struct sk_buff *skb, struct device *dev);
skb602drivers/net/arcnet.cint arcnetA_header(struct sk_buff *skb,struct device *dev,
skb605drivers/net/arcnet.cstruct sk_buff *skb);
skb606drivers/net/arcnet.cunsigned short arcnetA_type_trans(struct sk_buff *skb,struct device *dev);
skb611drivers/net/arcnet.cstatic int arcnetE_send_packet(struct sk_buff *skb, struct device *dev);
skb619drivers/net/arcnet.cstatic int arcnetS_send_packet(struct sk_buff *skb, struct device *dev);
skb622drivers/net/arcnet.cint arcnetS_header(struct sk_buff *skb,struct device *dev,
skb625drivers/net/arcnet.cstruct sk_buff *skb);
skb626drivers/net/arcnet.cunsigned short arcnetS_type_trans(struct sk_buff *skb,struct device *dev);
skb1369drivers/net/arcnet.carcnet_send_packet_bad(struct sk_buff *skb, struct device *dev)
skb1402drivers/net/arcnet.cstatus,tickssofar,lp->outgoing.skb,
skb1427drivers/net/arcnet.cif (lp->outgoing.skb)
skb1429drivers/net/arcnet.cdev_kfree_skb(lp->outgoing.skb,FREE_WRITE);
skb1432drivers/net/arcnet.clp->outgoing.skb=NULL;
skb1444drivers/net/arcnet.cif (skb == NULL) {
skb1485drivers/net/arcnet.carcnetA_send_packet(struct sk_buff *skb, struct device *dev)
skb1493drivers/net/arcnet.cbad=arcnet_send_packet_bad(skb,dev);
skb1502drivers/net/arcnet.cout->length = 1 < skb->len ? skb->len : 1;
skb1503drivers/net/arcnet.cout->hdr=(struct ClientData*)skb->data;
skb1504drivers/net/arcnet.cout->skb=skb;
skb1509drivers/net/arcnet.cfor(i=0; i<skb->len; i++)
skb1512drivers/net/arcnet.cprintk("%02hX ",((unsigned char*)skb->data)[i]);
skb1532drivers/net/arcnet.c((char *)skb->data)+sizeof(struct ClientData),
skb1537drivers/net/arcnet.cdev_kfree_skb(out->skb,FREE_WRITE);
skb1538drivers/net/arcnet.cout->skb=NULL;
skb1551drivers/net/arcnet.cout->data=(u_char *)skb->data
skb1583drivers/net/arcnet.cif (out->skb)
skb1584drivers/net/arcnet.cdev_kfree_skb(out->skb,FREE_WRITE);
skb1585drivers/net/arcnet.cout->skb=NULL;
skb1923drivers/net/arcnet.cstatus,out->numsegs,out->segnum,out->skb);
skb1954drivers/net/arcnet.cif (!lp->outgoing.skb)
skb1982drivers/net/arcnet.cif (out->skb)
skb1983drivers/net/arcnet.cdev_kfree_skb(out->skb,FREE_WRITE);
skb1984drivers/net/arcnet.cout->skb=NULL;
skb2210drivers/net/arcnet.cstruct sk_buff *skb;
skb2239drivers/net/arcnet.cif (in->skb)  /* already assembling one! */
skb2244drivers/net/arcnet.ckfree_skb(in->skb,FREE_WRITE);
skb2247drivers/net/arcnet.cin->skb=NULL;
skb2252drivers/net/arcnet.cskb = alloc_skb(length, GFP_ATOMIC);
skb2253drivers/net/arcnet.cif (skb == NULL) {
skb2258drivers/net/arcnet.csoft=(struct ClientData *)skb->data;
skb2260drivers/net/arcnet.cskb->len = length;
skb2261drivers/net/arcnet.cskb->dev = dev;
skb2309drivers/net/arcnet.cfor(i=0; i< skb->len; i++)
skb2312drivers/net/arcnet.cprintk("%02hX ",((unsigned char*)skb->data)[i]);
skb2317drivers/net/arcnet.cskb->protocol=arcnetA_type_trans(skb,dev);
skb2319drivers/net/arcnet.cnetif_rx(skb);
skb2345drivers/net/arcnet.cif (in->skb && in->sequence!=arcsoft->sequence)
skb2350drivers/net/arcnet.ckfree_skb(in->skb,FREE_WRITE);
skb2351drivers/net/arcnet.cin->skb=NULL;
skb2361drivers/net/arcnet.cif (in->skb)  /* already assembling one! */
skb2368drivers/net/arcnet.ckfree_skb(in->skb,FREE_WRITE);
skb2384drivers/net/arcnet.cin->skb=skb=alloc_skb(508*in->numpackets
skb2387drivers/net/arcnet.cif (skb == NULL) {
skb2396drivers/net/arcnet.cskb->free=1;
skb2398drivers/net/arcnet.csoft=(struct ClientData *)skb->data;
skb2400drivers/net/arcnet.cskb->len=sizeof(struct ClientData);
skb2401drivers/net/arcnet.cskb->dev=dev;
skb2415drivers/net/arcnet.cif (!in->skb)
skb2441drivers/net/arcnet.ckfree_skb(in->skb,FREE_WRITE);
skb2442drivers/net/arcnet.cin->skb=NULL;
skb2449drivers/net/arcnet.csoft=(struct ClientData *)in->skb->data;
skb2452drivers/net/arcnet.cskb=in->skb;
skb2454drivers/net/arcnet.cmemcpy(skb->data+skb->len,
skb2458drivers/net/arcnet.cskb->len+=length-sizeof(struct ClientData);
skb2466drivers/net/arcnet.cif (!skb || !in->skb)
skb2469drivers/net/arcnet.cskb,in->skb);
skb2473drivers/net/arcnet.cin->skb=NULL;
skb2479drivers/net/arcnet.cfor(i=0; i<skb->len; i++)
skb2482drivers/net/arcnet.cprintk("%02hX ",((unsigned char*)skb->data)[i]);
skb2488drivers/net/arcnet.cskb->protocol=arcnetA_type_trans(skb,dev);
skb2490drivers/net/arcnet.cnetif_rx(skb);
skb2545drivers/net/arcnet.cint arcnetA_header(struct sk_buff *skb,struct device *dev,
skb2549drivers/net/arcnet.cskb_push(skb,dev->hard_header_len);
skb2620drivers/net/arcnet.cstruct sk_buff *skb)
skb2647drivers/net/arcnet.cstatus=arp_find(&(head->daddr), dst, dev, dev->pa_addr, skb)? 1 : 0;
skb2661drivers/net/arcnet.cunsigned short arcnetA_type_trans(struct sk_buff *skb,struct device *dev)
skb2667drivers/net/arcnet.cskb->mac.raw=skb->data;
skb2668drivers/net/arcnet.cskb_pull(skb,dev->hard_header_len);
skb2669drivers/net/arcnet.chead=(struct ClientData *)skb->mac.raw;
skb2672drivers/net/arcnet.cskb->pkt_type=PACKET_BROADCAST;
skb2677drivers/net/arcnet.cskb->pkt_type=PACKET_OTHERHOST;
skb2732drivers/net/arcnet.carcnetE_send_packet(struct sk_buff *skb, struct device *dev)
skb2739drivers/net/arcnet.cshort offset,length=skb->len+1;
skb2743drivers/net/arcnet.cbad=arcnet_send_packet_bad(skb,dev);
skb2758drivers/net/arcnet.cdev_kfree_skb(skb,FREE_WRITE);
skb2774drivers/net/arcnet.cif (((struct ethhdr*)(skb->data))->h_dest[0] == 0xFF)
skb2778drivers/net/arcnet.c((struct ethhdr*)(skb->data))->h_dest[5];
skb2806drivers/net/arcnet.cmemcpy(arcsoft,skb->data,skb->len);
skb2831drivers/net/arcnet.cdev_kfree_skb(skb,FREE_WRITE);
skb2858drivers/net/arcnet.cstruct sk_buff *skb;
skb2863drivers/net/arcnet.cskb = alloc_skb(length, GFP_ATOMIC);
skb2864drivers/net/arcnet.cif (skb == NULL) {
skb2870drivers/net/arcnet.cskb->len = length;
skb2871drivers/net/arcnet.cskb->dev = dev;
skb2873drivers/net/arcnet.cmemcpy(skb->data,(u_char *)arcsoft+1,length-1);
skb2879drivers/net/arcnet.cfor(i=0; i<skb->len; i++)
skb2884drivers/net/arcnet.cprintk("%02hX ",((u_char *)skb->data)[i]);
skb2889drivers/net/arcnet.cskb->protocol=eth_type_trans(skb,dev);
skb2891drivers/net/arcnet.cnetif_rx(skb);
skb2930drivers/net/arcnet.carcnetS_send_packet(struct sk_buff *skb, struct device *dev)
skb2934drivers/net/arcnet.cstruct S_ClientData *hdr=(struct S_ClientData *)skb->data;
skb2938drivers/net/arcnet.cbad=arcnet_send_packet_bad(skb,dev);
skb2947drivers/net/arcnet.clength = 1 < skb->len ? skb->len : 1;
skb2952drivers/net/arcnet.cfor(i=0; i<skb->len; i++)
skb2955drivers/net/arcnet.cprintk("%02hX ",((unsigned char*)skb->data)[i]);
skb2964drivers/net/arcnet.cskb->data+S_EXTRA_CLIENTDATA,
skb2966drivers/net/arcnet.cskb->data+sizeof(struct S_ClientData),
skb2971drivers/net/arcnet.cdev_kfree_skb(skb,FREE_WRITE);
skb2984drivers/net/arcnet.cdev_kfree_skb(skb,FREE_WRITE);
skb3008drivers/net/arcnet.cstruct sk_buff *skb;
skb3021drivers/net/arcnet.cskb = alloc_skb(length, GFP_ATOMIC);
skb3022drivers/net/arcnet.cif (skb == NULL) {
skb3027drivers/net/arcnet.csoft=(struct S_ClientData *)skb->data;
skb3028drivers/net/arcnet.cskb->len = length;
skb3038drivers/net/arcnet.cskb->dev = dev;  /* is already lp->sdev */
skb3043drivers/net/arcnet.cfor(i=0; i<skb->len; i++)
skb3046drivers/net/arcnet.cprintk("%02hX ",((unsigned char*)skb->data)[i]);
skb3051drivers/net/arcnet.cskb->protocol=arcnetS_type_trans(skb,dev);
skb3053drivers/net/arcnet.cnetif_rx(skb);
skb3063drivers/net/arcnet.cint arcnetS_header(struct sk_buff *skb,struct device *dev,
skb3067drivers/net/arcnet.cskb_push(skb,dev->hard_header_len);
skb3120drivers/net/arcnet.cstruct sk_buff *skb)
skb3144drivers/net/arcnet.creturn arp_find(&(head->daddr), dst, dev, dev->pa_addr, skb)? 1 : 0;
skb3155drivers/net/arcnet.cunsigned short arcnetS_type_trans(struct sk_buff *skb,struct device *dev)
skb3161drivers/net/arcnet.cskb->mac.raw=skb->data;
skb3162drivers/net/arcnet.cskb_pull(skb,dev->hard_header_len);
skb3163drivers/net/arcnet.chead=(struct S_ClientData *)skb->mac.raw;
skb3166drivers/net/arcnet.cskb->pkt_type=PACKET_BROADCAST;
skb3171drivers/net/arcnet.cskb->pkt_type=PACKET_OTHERHOST;
skb119drivers/net/at1700.cstatic int  net_send_packet(struct sk_buff *skb, struct device *dev);
skb364drivers/net/at1700.cnet_send_packet(struct sk_buff *skb, struct device *dev)
skb398drivers/net/at1700.cif (skb == NULL) {
skb408drivers/net/at1700.cshort length = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN;
skb409drivers/net/at1700.cunsigned char *buf = skb->data;
skb435drivers/net/at1700.cdev_kfree_skb (skb, FREE_WRITE);
skb520drivers/net/at1700.cstruct sk_buff *skb;
skb531drivers/net/at1700.cskb = dev_alloc_skb(pkt_len+3);
skb532drivers/net/at1700.cif (skb == NULL) {
skb541drivers/net/at1700.cskb->dev = dev;
skb542drivers/net/at1700.cskb_reserve(skb,2);
skb544drivers/net/at1700.cinsw(ioaddr + DATAPORT, skb_put(skb,pkt_len), (pkt_len + 1) >> 1);
skb545drivers/net/at1700.cskb->protocol=eth_type_trans(skb, dev);
skb546drivers/net/at1700.cnetif_rx(skb);
skb137drivers/net/atp.cstatic int  net_send_packet(struct sk_buff *skb, struct device *dev);
skb416drivers/net/atp.cnet_send_packet(struct sk_buff *skb, struct device *dev)
skb440drivers/net/atp.cif (skb == NULL) {
skb450drivers/net/atp.cshort length = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN;
skb451drivers/net/atp.cunsigned char *buf = skb->data;
skb479drivers/net/atp.cdev_kfree_skb (skb, FREE_WRITE);
skb673drivers/net/atp.cstruct sk_buff *skb;
skb675drivers/net/atp.cskb = dev_alloc_skb(pkt_len);
skb676drivers/net/atp.cif (skb == NULL) {
skb681drivers/net/atp.cskb->dev = dev;
skb683drivers/net/atp.cread_block(ioaddr, pkt_len, skb_put(skb,pkt_len), dev->if_port);
skb686drivers/net/atp.cunsigned char *data = skb->data;
skb694drivers/net/atp.cskb->protocol=eth_type_trans(skb,dev);
skb695drivers/net/atp.cnetif_rx(skb);
skb353drivers/net/de4x5.cstruct sk_buff *skb[NUM_TX_DESC];        /* TX skb for freeing when sent */
skb398drivers/net/de4x5.cstatic int     de4x5_queue_pkt(struct sk_buff *skb, struct device *dev);
skb418drivers/net/de4x5.cstatic void    load_packet(struct device *dev, char *buf, u32 flags, struct sk_buff *skb);
skb938drivers/net/de4x5.cde4x5_queue_pkt(struct sk_buff *skb, struct device *dev)
skb977drivers/net/de4x5.cif (lp->skb[i] != NULL) {
skb978drivers/net/de4x5.cif (lp->skb[i]->len != FAKE_FRAME_LEN) {
skb980drivers/net/de4x5.cdev_queue_xmit(lp->skb[i], dev, SOPRI_NORMAL);
skb982drivers/net/de4x5.cdev_kfree_skb(lp->skb[i], FREE_WRITE);
skb985drivers/net/de4x5.cdev_kfree_skb(lp->skb[i], FREE_WRITE);
skb987drivers/net/de4x5.clp->skb[i] = NULL;
skb990drivers/net/de4x5.cif (skb->len != FAKE_FRAME_LEN) {
skb991drivers/net/de4x5.cdev_queue_xmit(skb, dev, SOPRI_NORMAL);
skb993drivers/net/de4x5.cdev_kfree_skb(skb, FREE_WRITE);
skb1023drivers/net/de4x5.c} else if (skb == NULL) {
skb1025drivers/net/de4x5.c} else if (skb->len == FAKE_FRAME_LEN) {     /* Don't TX a fake frame! */
skb1026drivers/net/de4x5.cdev_kfree_skb(skb, FREE_WRITE);
skb1027drivers/net/de4x5.c} else if (skb->len > 0) {
skb1035drivers/net/de4x5.cload_packet(dev, skb->data, TD_IC | TD_LS | TD_FS | skb->len, skb);
skb1146drivers/net/de4x5.cstruct sk_buff *skb;
skb1149drivers/net/de4x5.cif ((skb = dev_alloc_skb(pkt_len+2)) != NULL) {
skb1150drivers/net/de4x5.cskb->dev = dev;
skb1152drivers/net/de4x5.cskb_reserve(skb,2);    /* Align */
skb1155drivers/net/de4x5.cmemcpy(skb_put(skb,len), bus_to_virt(lp->rx_ring[lp->rx_old].buf), len);
skb1156drivers/net/de4x5.cmemcpy(skb_put(skb,pkt_len-len), bus_to_virt(lp->rx_ring[0].buf), pkt_len - len);
skb1158drivers/net/de4x5.cmemcpy(skb_put(skb,pkt_len), bus_to_virt(lp->rx_ring[lp->rx_old].buf), pkt_len);
skb1162drivers/net/de4x5.cskb->protocol=eth_type_trans(skb,dev);
skb1163drivers/net/de4x5.cnetif_rx(skb);
skb1173drivers/net/de4x5.cbuf = skb->data;                  /* Look at the dest addr */
skb1252drivers/net/de4x5.cif (lp->skb[entry] != NULL) {
skb1253drivers/net/de4x5.cdev_kfree_skb(lp->skb[entry], FREE_WRITE);
skb1254drivers/net/de4x5.clp->skb[entry] = NULL;
skb1360drivers/net/de4x5.cstatic void load_packet(struct device *dev, char *buf, u32 flags, struct sk_buff *skb)
skb1367drivers/net/de4x5.clp->skb[lp->tx_new] = skb;
skb2478drivers/net/de4x5.cstruct sk_buff *skb;
skb2480drivers/net/de4x5.cif ((skb = alloc_skb(0, GFP_ATOMIC)) != NULL) {
skb2481drivers/net/de4x5.cskb->len= FAKE_FRAME_LEN;
skb2482drivers/net/de4x5.cskb->arp=1;
skb2483drivers/net/de4x5.cskb->dev=dev;
skb2484drivers/net/de4x5.cdev_queue_xmit(skb, dev, SOPRI_NORMAL);
skb247drivers/net/de600.cstatic int  de600_start_xmit(struct sk_buff *skb, struct device *dev);
skb397drivers/net/de600.cde600_start_xmit(struct sk_buff *skb, struct device *dev)
skb402drivers/net/de600.cbyte  *buffer = skb->data;
skb410drivers/net/de600.cif (skb == NULL) {
skb434drivers/net/de600.cPRINTK(("de600_start_xmit:len=%d, page %d/%d\n", skb->len, tx_fifo_in, free_tx_pages));
skb436drivers/net/de600.cif ((len = skb->len) < RUNT)
skb476drivers/net/de600.cif (skb->sk && (skb->sk->protocol == IPPROTO_TCP) &&
skb477drivers/net/de600.c(skb->sk->prot->rspace != &de600_rspace))
skb478drivers/net/de600.cskb->sk->prot->rspace = de600_rspace; /* Ugh! */
skb481drivers/net/de600.cdev_kfree_skb (skb, FREE_WRITE);
skb580drivers/net/de600.cstruct sk_buff  *skb;
skb605drivers/net/de600.cskb = dev_alloc_skb(size+2);
skb607drivers/net/de600.cif (skb == NULL) {
skb614drivers/net/de600.cskb->dev = dev;
skb615drivers/net/de600.cskb_reserve(skb,2);  /* Align */
skb618drivers/net/de600.cbuffer = skb_put(skb,size);
skb627drivers/net/de600.cskb->protocol=eth_type_trans(skb,dev);
skb629drivers/net/de600.cnetif_rx(skb);
skb511drivers/net/de620.cde620_start_xmit(struct sk_buff *skb, struct device *dev)
skb516drivers/net/de620.cbyte *buffer = skb->data;
skb525drivers/net/de620.cif (skb == NULL) {
skb550drivers/net/de620.cif ((len = skb->len) < RUNT)
skb560drivers/net/de620.c(int)skb->len, using_txbuf));
skb590drivers/net/de620.cdev_kfree_skb (skb, FREE_WRITE);
skb652drivers/net/de620.cstruct sk_buff *skb;
skb707drivers/net/de620.cskb = dev_alloc_skb(size+2);
skb708drivers/net/de620.cif (skb == NULL) { /* Yeah, but no place to put it... */
skb714drivers/net/de620.cskb_reserve(skb,2);  /* Align */
skb715drivers/net/de620.cskb->dev = dev;
skb716drivers/net/de620.cskb->free = 1;
skb718drivers/net/de620.cbuffer = skb_put(skb,size);
skb722drivers/net/de620.cskb->protocol=eth_type_trans(skb,dev);
skb723drivers/net/de620.cnetif_rx(skb); /* deliver it "upstairs" */
skb383drivers/net/depca.cstatic int    depca_start_xmit(struct sk_buff *skb, struct device *dev);
skb408drivers/net/depca.cstatic int    load_packet(struct device *dev, struct sk_buff *skb);
skb779drivers/net/depca.cdepca_start_xmit(struct sk_buff *skb, struct device *dev)
skb804drivers/net/depca.c} else if (skb == NULL) {
skb806drivers/net/depca.c} else if (skb->len > 0) {
skb813drivers/net/depca.cstatus = load_packet(dev, skb);
skb821drivers/net/depca.cdev_kfree_skb(skb, FREE_WRITE);
skb912drivers/net/depca.cstruct sk_buff *skb;
skb914drivers/net/depca.cskb = dev_alloc_skb(pkt_len+2);
skb915drivers/net/depca.cif (skb != NULL) {
skb917drivers/net/depca.cskb_reserve(skb,2);               /* 16 byte align the IP header */
skb918drivers/net/depca.cbuf = skb_put(skb,pkt_len);
skb919drivers/net/depca.cskb->dev = dev;
skb932drivers/net/depca.cskb->protocol=eth_type_trans(skb,dev);
skb933drivers/net/depca.cnetif_rx(skb);
skb1529drivers/net/depca.cstatic int load_packet(struct device *dev, struct sk_buff *skb)
skb1535drivers/net/depca.cend = (entry + (skb->len - 1) / TX_BUFF_SZ) & lp->txRingMask;
skb1543drivers/net/depca.cmemcpy_toio(lp->tx_memcpy[entry], skb->data, len);
skb1544drivers/net/depca.cmemcpy_toio(lp->tx_memcpy[0], skb->data + len, skb->len - len);
skb1546drivers/net/depca.cmemcpy_toio(lp->tx_memcpy[entry], skb->data, skb->len);
skb1550drivers/net/depca.clen = (skb->len < ETH_ZLEN) ? ETH_ZLEN : skb->len;
skb56drivers/net/dummy.cstatic int dummy_xmit(struct sk_buff *skb, struct device *dev);
skb105drivers/net/dummy.cdummy_xmit(struct sk_buff *skb, struct device *dev)
skb111drivers/net/dummy.cif (skb == NULL || dev == NULL)
skb114drivers/net/dummy.cdev_kfree_skb(skb, FREE_WRITE);
skb102drivers/net/e2100.cstruct sk_buff *skb, int ring_offset);
skb318drivers/net/e2100.ce21_block_input(struct device *dev, int count, struct sk_buff *skb, int ring_offset)
skb326drivers/net/e2100.ceth_io_copy_and_sum(skb, dev->mem_start + (ring_offset & 0xff), count, 0);
skb137drivers/net/eepro.cstatic int  eepro_send_packet(struct sk_buff *skb, struct device *dev);
skb595drivers/net/eepro.ceepro_send_packet(struct sk_buff *skb, struct device *dev)
skb633drivers/net/eepro.cif (skb == NULL) {
skb642drivers/net/eepro.cshort length = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN;
skb643drivers/net/eepro.cunsigned char *buf = skb->data;
skb649drivers/net/eepro.cdev_kfree_skb (skb, FREE_WRITE);
skb1046drivers/net/eepro.cstruct sk_buff *skb;
skb1049drivers/net/eepro.cskb = dev_alloc_skb(rcv_size+2);
skb1050drivers/net/eepro.cif (skb == NULL) {
skb1055drivers/net/eepro.cskb->dev = dev;
skb1056drivers/net/eepro.cskb_reserve(skb,2);
skb1058drivers/net/eepro.cinsw(ioaddr+IO_PORT, skb_put(skb,rcv_size), (rcv_size + 1) >> 1);
skb1060drivers/net/eepro.cskb->protocol = eth_type_trans(skb,dev);  
skb1061drivers/net/eepro.cnetif_rx(skb);
skb288drivers/net/eexpress.cstatic int  eexp_send_packet(struct sk_buff *skb, struct device *dev);
skb450drivers/net/eexpress.ceexp_send_packet(struct sk_buff *skb, struct device *dev)
skb485drivers/net/eexpress.cif (skb == NULL) {
skb494drivers/net/eexpress.cshort length = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN;
skb495drivers/net/eexpress.cunsigned char *buf = skb->data;
skb505drivers/net/eexpress.cdev_kfree_skb (skb, FREE_WRITE);
skb930drivers/net/eexpress.cstruct sk_buff *skb;
skb933drivers/net/eexpress.cskb = dev_alloc_skb(pkt_len+2);
skb934drivers/net/eexpress.cif (skb == NULL) {
skb939drivers/net/eexpress.cskb->dev = dev;
skb940drivers/net/eexpress.cskb_reserve(skb,2);
skb944drivers/net/eexpress.cinsw(ioaddr, skb_put(skb,pkt_len), (pkt_len + 1) >> 1);
skb946drivers/net/eexpress.cskb->protocol=eth_type_trans(skb,dev);
skb947drivers/net/eexpress.cnetif_rx(skb);
skb149drivers/net/eql.cstatic int eql_slave_xmit(struct sk_buff *skb, struct device *dev); /*  */
skb152drivers/net/eql.cstatic int eql_header(struct sk_buff *skb, struct device *dev, 
skb156drivers/net/eql.cunsigned long raddr, struct sk_buff *skb); /*  */
skb361drivers/net/eql.cstatic int eql_slave_xmit(struct sk_buff *skb, struct device *dev)
skb367drivers/net/eql.cif (skb == NULL)
skb380drivers/net/eql.cdev->name, eql_number_slaves (eql->queue), skb->len,
skb383drivers/net/eql.cdev_queue_xmit (skb, slave_dev, 1);
skb385drivers/net/eql.cslave->bytes_queued += skb->len; 
skb395drivers/net/eql.cdev_kfree_skb(skb, FREE_WRITE);
skb408drivers/net/eql.cstatic int  eql_header(struct sk_buff *skb, struct device *dev, 
skb417drivers/net/eql.cunsigned long raddr, struct sk_buff *skb)
skb327drivers/net/eth16i.cstatic int eth16i_tx(struct sk_buff *skb, struct device *dev);
skb859drivers/net/eth16i.cstatic int eth16i_tx(struct sk_buff *skb, struct device *dev)
skb918drivers/net/eth16i.cif(skb == NULL) {
skb932drivers/net/eth16i.cshort length = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN;
skb933drivers/net/eth16i.cunsigned char *buf = skb->data;
skb973drivers/net/eth16i.cdev_kfree_skb(skb, FREE_WRITE);
skb1003drivers/net/eth16i.cstruct sk_buff *skb;
skb1016drivers/net/eth16i.cskb = dev_alloc_skb(pkt_len + 3);
skb1017drivers/net/eth16i.cif( skb == NULL ) {
skb1025drivers/net/eth16i.cskb->dev = dev;
skb1026drivers/net/eth16i.cskb_reserve(skb,2);
skb1034drivers/net/eth16i.cinsw(ioaddr + DATAPORT, skb_put(skb, pkt_len), (pkt_len + 1) >> 1);
skb1036drivers/net/eth16i.cunsigned char *buf = skb_put(skb, pkt_len);
skb1051drivers/net/eth16i.cskb->protocol=eth_type_trans(skb, dev);
skb1052drivers/net/eth16i.cnetif_rx(skb);
skb1059drivers/net/eth16i.cprintk(" %02x", skb->data[i]);
skb288drivers/net/ewrk3.cstatic int    ewrk3_queue_pkt(struct sk_buff *skb, struct device *dev);
skb720drivers/net/ewrk3.cewrk3_queue_pkt(struct sk_buff *skb, struct device *dev)
skb756drivers/net/ewrk3.c} else if (skb == NULL) {
skb758drivers/net/ewrk3.c} else if (skb->len > 0) {
skb806drivers/net/ewrk3.cu_char *p = skb->data;
skb809drivers/net/ewrk3.coutb((char)(skb->len & 0xff), EWRK3_DATA);
skb810drivers/net/ewrk3.coutb((char)((skb->len >> 8) & 0xff), EWRK3_DATA);
skb812drivers/net/ewrk3.cfor (i=0; i<skb->len; i++) {
skb819drivers/net/ewrk3.cwriteb((char)(skb->len & 0xff), (char *)buf);/* length (16 bit xfer)*/
skb822drivers/net/ewrk3.cwriteb((char)(((skb->len >> 8) & 0xff) | XCT), (char *)buf);
skb826drivers/net/ewrk3.cwriteb(0x00, (char *)(buf + skb->len));    /* Write the XCT flag */
skb827drivers/net/ewrk3.cmemcpy_toio(buf, skb->data, PRELOAD);/* Write PRELOAD bytes*/
skb829drivers/net/ewrk3.cmemcpy_toio(buf+PRELOAD, skb->data+PRELOAD, skb->len-PRELOAD);
skb830drivers/net/ewrk3.cwriteb(0xff, (char *)(buf + skb->len));    /* Write the XCT flag */
skb832drivers/net/ewrk3.cwriteb((char)((skb->len >> 8) & 0xff), (char *)buf);
skb836drivers/net/ewrk3.cmemcpy_toio((char *)buf, skb->data, skb->len);/* Write data bytes */
skb842drivers/net/ewrk3.cdev_kfree_skb (skb, FREE_WRITE);
skb998drivers/net/ewrk3.cstruct sk_buff *skb;
skb1000drivers/net/ewrk3.cif ((skb = dev_alloc_skb(pkt_len+2)) != NULL) {
skb1002drivers/net/ewrk3.cskb->dev = dev;
skb1003drivers/net/ewrk3.cskb_reserve(skb,2);             /* Align to 16 bytes */
skb1004drivers/net/ewrk3.cp = skb_put(skb,pkt_len);
skb1019drivers/net/ewrk3.cskb->protocol=eth_type_trans(skb,dev);
skb1020drivers/net/ewrk3.cnetif_rx(skb);
skb1032drivers/net/ewrk3.cp = skb->data;                  /* Look at the dest addr */
skb102drivers/net/hp-plus.cstruct sk_buff *skb, int ring_offset);
skb108drivers/net/hp-plus.cstruct sk_buff *skb, int ring_offset);
skb340drivers/net/hp-plus.chpp_io_block_input(struct device *dev, int count, struct sk_buff *skb, int ring_offset)
skb343drivers/net/hp-plus.cchar *buf = skb->data;
skb367drivers/net/hp-plus.chpp_mem_block_input(struct device *dev, int count, struct sk_buff *skb, int ring_offset)
skb380drivers/net/hp-plus.cmemcpy_fromio(skb->data, dev->mem_start, count);
skb66drivers/net/hp.cstruct sk_buff *skb , int ring_offset);
skb276drivers/net/hp.chp_block_input(struct device *dev, int count, struct sk_buff *skb, int ring_offset)
skb281drivers/net/hp.cchar *buf = skb->data;
skb193drivers/net/hp100.cstatic int hp100_start_xmit( struct sk_buff *skb, struct device *dev );
skb574drivers/net/hp100.cstatic int hp100_start_xmit( struct sk_buff *skb, struct device *dev )
skb595drivers/net/hp100.cif ( ( i = ( hp100_inl( TX_MEM_FREE ) & ~0x7fffffff ) ) < skb -> len + 16 )
skb639drivers/net/hp100.cif ( skb == NULL )
skb645drivers/net/hp100.cif ( skb -> len <= 0 ) return 0;
skb658drivers/net/hp100.cprintk( "hp100_start_xmit: irq_status = 0x%x, len = %d\n", val, (int)skb -> len );
skb660drivers/net/hp100.cok_flag = skb -> len >= HP100_MIN_PACKET_SIZE;
skb661drivers/net/hp100.ci = ok_flag ? skb -> len : HP100_MIN_PACKET_SIZE;
skb668drivers/net/hp100.cmemcpy( lp -> mem_ptr_virt, skb -> data, skb -> len );
skb670drivers/net/hp100.cmemset( lp -> mem_ptr_virt, 0, HP100_MIN_PACKET_SIZE - skb -> len );
skb674drivers/net/hp100.cmemcpy_toio( lp -> mem_ptr_phys, skb -> data, skb -> len );
skb676drivers/net/hp100.cmemset_io( lp -> mem_ptr_phys, 0, HP100_MIN_PACKET_SIZE - skb -> len );
skb681drivers/net/hp100.coutsl( ioaddr + HP100_REG_DATA32, skb -> data, ( skb -> len + 3 ) >> 2 );
skb683drivers/net/hp100.cfor ( i = ( skb -> len + 3 ) & ~3; i < HP100_MIN_PACKET_SIZE; i += 4 )
skb691drivers/net/hp100.cdev_kfree_skb( skb, FREE_WRITE );
skb710drivers/net/hp100.cstruct sk_buff *skb;
skb753drivers/net/hp100.cskb = dev_alloc_skb( pkt_len );
skb754drivers/net/hp100.cif ( skb == NULL )
skb765drivers/net/hp100.cskb -> dev = dev;
skb766drivers/net/hp100.cptr = (u_char *)skb_put( skb, pkt_len );
skb776drivers/net/hp100.cskb -> protocol = eth_type_trans( skb, dev );
skb777drivers/net/hp100.cnetif_rx( skb );
skb148drivers/net/ibmtr.cstatic int tok_send_packet(struct sk_buff *skb, struct device *dev);
skb1139drivers/net/ibmtr.cstruct sk_buff *skb;
skb1183drivers/net/ibmtr.cif(!(skb=dev_alloc_skb(ntohs(rec_req->frame_len)-lan_hdr_len+sizeof(struct trh_hdr)))) {
skb1191drivers/net/ibmtr.cskb_put(skb,ntohs(rec_req->frame_len)-lan_hdr_len+sizeof(struct trh_hdr));
skb1192drivers/net/ibmtr.cskb->dev=dev;
skb1199drivers/net/ibmtr.cdata=skb->data;
skb1229drivers/net/ibmtr.cskb->protocol=tr_type_trans(skb,dev);
skb1230drivers/net/ibmtr.cnetif_rx(skb);
skb1235drivers/net/ibmtr.cstatic int tok_send_packet(struct sk_buff *skb, struct device *dev) {
skb1256drivers/net/ibmtr.cif(skb==NULL) {
skb1266drivers/net/ibmtr.cti->current_skb=skb; /* save skb. We will need it when the adapter
skb255drivers/net/lance.cstatic int lance_start_xmit(struct sk_buff *skb, struct device *dev);
skb705drivers/net/lance.clance_start_xmit(struct sk_buff *skb, struct device *dev)
skb747drivers/net/lance.cif (skb == NULL) {
skb752drivers/net/lance.cif (skb->len <= 0)
skb787drivers/net/lance.c-(ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN);
skb789drivers/net/lance.clp->tx_ring[entry].length = -skb->len;
skb795drivers/net/lance.cif ((int)(skb->data) + skb->len > 0x01000000) {
skb798drivers/net/lance.cdev->name, (int)(skb->data));
skb799drivers/net/lance.cmemcpy(&lp->tx_bounce_buffs[entry], skb->data, skb->len);
skb802drivers/net/lance.cdev_kfree_skb (skb, FREE_WRITE);
skb804drivers/net/lance.clp->tx_skbuff[entry] = skb;
skb805drivers/net/lance.clp->tx_ring[entry].base = (int)(skb->data) | 0x83000000;
skb984drivers/net/lance.cstruct sk_buff *skb;
skb993drivers/net/lance.cskb = dev_alloc_skb(pkt_len+2);
skb994drivers/net/lance.cif (skb == NULL) 
skb1009drivers/net/lance.cskb->dev = dev;
skb1010drivers/net/lance.cskb_reserve(skb,2);  /* 16 byte align */
skb1011drivers/net/lance.cskb_put(skb,pkt_len);  /* Make room */
skb1012drivers/net/lance.ceth_copy_and_sum(skb,
skb1015drivers/net/lance.cskb->protocol=eth_type_trans(skb,dev);
skb1016drivers/net/lance.cnetif_rx(skb);
skb56drivers/net/loopback.cstatic int loopback_xmit(struct sk_buff *skb, struct device *dev)
skb61drivers/net/loopback.cif (skb == NULL || dev == NULL) 
skb69drivers/net/loopback.cif(skb->free==0)
skb71drivers/net/loopback.cstruct sk_buff *skb2=skb;
skb72drivers/net/loopback.cskb=skb_clone(skb, GFP_ATOMIC);    /* Clone the buffer */
skb73drivers/net/loopback.cif(skb==NULL)
skb78drivers/net/loopback.celse if(skb->sk)
skb84drivers/net/loopback.cskb->sk->wmem_alloc-=skb->truesize;
skb85drivers/net/loopback.cskb->sk->write_space(skb->sk);
skb88drivers/net/loopback.cskb->protocol=eth_type_trans(skb,dev);
skb89drivers/net/loopback.cskb->dev=dev;
skb91drivers/net/loopback.cskb->ip_summed = CHECKSUM_UNNECESSARY;
skb93drivers/net/loopback.cnetif_rx(skb);
skb95drivers/net/loopback.cskb_device_unlock(skb);
skb109drivers/net/ne.cstruct sk_buff *skb, int ring_offset);
skb498drivers/net/ne.cne_block_input(struct device *dev, int count, struct sk_buff *skb, int ring_offset)
skb504drivers/net/ne.cchar *buf = skb->data;
skb804drivers/net/ni52.cstruct sk_buff *skb;
skb818drivers/net/ni52.cskb = (struct sk_buff *) dev_alloc_skb(totlen+2);
skb819drivers/net/ni52.cif(skb != NULL)
skb821drivers/net/ni52.cskb->dev = dev;
skb822drivers/net/ni52.cskb_reserve(skb,2);    /* 16 byte alignment */
skb823drivers/net/ni52.cmemcpy(skb_put(skb,totlen),(char *) p->base+(unsigned long) rbd->buffer, totlen);
skb824drivers/net/ni52.cskb->protocol=eth_type_trans(skb,dev);
skb825drivers/net/ni52.cnetif_rx(skb);
skb940drivers/net/ni52.cstatic int ni52_send_packet(struct sk_buff *skb, struct device *dev)
skb984drivers/net/ni52.cif(skb == NULL)
skb990drivers/net/ni52.cif (skb->len <= 0)
skb992drivers/net/ni52.cif(skb->len > XMIT_BUFF_SIZE)
skb994drivers/net/ni52.cprintk("%s: Sorry, max. framelength is %d bytes. The length of your frame is %ld bytes.\n",dev->name,XMIT_BUFF_SIZE,skb->len);
skb1002drivers/net/ni52.cmemcpy((char *)p->xmit_cbuffs[p->xmit_count],(char *)(skb->data),skb->len);
skb1003drivers/net/ni52.clen = (ETH_ZLEN < skb->len) ? skb->len : ETH_ZLEN;
skb1017drivers/net/ni52.cdev_kfree_skb(skb,FREE_WRITE);
skb1037drivers/net/ni52.cdev_kfree_skb(skb,FREE_WRITE);
skb1057drivers/net/ni52.cdev_kfree_skb(skb,FREE_WRITE);
skb122drivers/net/ni65.cstatic int   ni65_send_packet(struct sk_buff *skb, struct device *dev);
skb455drivers/net/ni65.cstruct sk_buff *skb;
skb465drivers/net/ni65.cskb = (struct sk_buff *) p->tmdbufs[p->tmdlast];
skb466drivers/net/ni65.cdev_kfree_skb(skb,FREE_WRITE); 
skb503drivers/net/ni65.cstruct sk_buff *skb,*skb1;
skb532drivers/net/ni65.cskb = dev_alloc_skb(R_BUF_SIZE);
skb533drivers/net/ni65.cif(skb != NULL)
skb535drivers/net/ni65.cif( (unsigned long) (skb->data + R_BUF_SIZE) & 0xff000000) {
skb536drivers/net/ni65.cmemcpy(skb_put(skb,len),p->recv_skb[p->rmdnum]->data,len);
skb537drivers/net/ni65.cskb1 = skb;
skb541drivers/net/ni65.cp->recv_skb[p->rmdnum] = skb;
skb567drivers/net/ni65.cstatic int ni65_send_packet(struct sk_buff *skb, struct device *dev)
skb584drivers/net/ni65.cif(skb == NULL)
skb590drivers/net/ni65.cif (skb->len <= 0)
skb605drivers/net/ni65.cshort len = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN;
skb610drivers/net/ni65.ctmdp->u.buffer = (unsigned long) (skb->data);
skb611drivers/net/ni65.cp->tmdbufs[p->tmdnum] = skb;
skb613drivers/net/ni65.cmemcpy((char *) (tmdp->u.buffer & 0x00ffffff),(char *)skb->data,skb->len);
skb614drivers/net/ni65.cdev_kfree_skb (skb, FREE_WRITE);
skb151drivers/net/pi2.cstatic int pi_send_packet(struct sk_buff *skb, struct device *dev);
skb208drivers/net/pi2.cstatic void hardware_send_packet(struct pi_local *lp, struct sk_buff *skb)
skb220drivers/net/pi2.cskb_queue_tail(&lp->sndq, skb);
skb338drivers/net/pi2.cstatic void free_p(struct sk_buff *skb)
skb340drivers/net/pi2.cdev_kfree_skb(skb, FREE_WRITE);
skb510drivers/net/pi2.cstruct sk_buff *skb;
skb554drivers/net/pi2.cskb = dev_alloc_skb(sksize);
skb555drivers/net/pi2.cif (skb == NULL) {
skb561drivers/net/pi2.cskb->dev = dev;
skb564drivers/net/pi2.ccfix=skb_put(skb,pkt_len);
skb569drivers/net/pi2.cskb->protocol=htons(ETH_P_AX25);
skb570drivers/net/pi2.cskb->mac.raw=skb->data;
skb571drivers/net/pi2.cIS_SKB(skb);
skb572drivers/net/pi2.cnetif_rx(skb);
skb585drivers/net/pi2.cstruct sk_buff *skb;
skb643drivers/net/pi2.cskb = dev_alloc_skb(sksize);
skb644drivers/net/pi2.cif (skb == NULL) {
skb650drivers/net/pi2.cskb->dev = dev;
skb653drivers/net/pi2.ccfix=skb_put(skb,pkt_len);
skb657drivers/net/pi2.cskb->protocol=ntohs(ETH_P_AX25);
skb658drivers/net/pi2.cskb->mac.raw=skb->data;
skb659drivers/net/pi2.cIS_SKB(skb);
skb660drivers/net/pi2.cnetif_rx(skb);
skb1077drivers/net/pi2.cstatic int pi_header(struct sk_buff *skb, struct device *dev, unsigned short type,
skb1080drivers/net/pi2.creturn ax25_encapsulate(skb, dev, type, daddr, saddr, len);
skb1085drivers/net/pi2.cstruct sk_buff *skb)
skb1087drivers/net/pi2.creturn ax25_rebuild_header(buff, dev, raddr, skb);
skb1493drivers/net/pi2.cstatic int pi_send_packet(struct sk_buff *skb, struct device *dev)
skb1500drivers/net/pi2.cif (skb == NULL) {
skb1504drivers/net/pi2.chardware_send_packet(lp, skb);
skb146drivers/net/plip.cunsigned long raddr, struct sk_buff *skb);
skb147drivers/net/plip.cstatic int plip_tx_packet(struct sk_buff *skb, struct device *dev);
skb197drivers/net/plip.cstruct sk_buff *skb;
skb212drivers/net/plip.cunsigned long raddr, struct sk_buff *skb);
skb415drivers/net/plip.cif (rcv->skb) {
skb416drivers/net/plip.crcv->skb->free = 1;
skb417drivers/net/plip.ckfree_skb(rcv->skb, FREE_READ);
skb418drivers/net/plip.crcv->skb = NULL;
skb421drivers/net/plip.cif (snd->skb) {
skb422drivers/net/plip.cdev_kfree_skb(snd->skb, FREE_WRITE);
skb423drivers/net/plip.csnd->skb = NULL;
skb543drivers/net/plip.crcv->skb = dev_alloc_skb(rcv->length.h);
skb544drivers/net/plip.cif (rcv->skb == NULL) {
skb548drivers/net/plip.cskb_put(rcv->skb,rcv->length.h);
skb549drivers/net/plip.crcv->skb->dev = dev;
skb555drivers/net/plip.clbuf = rcv->skb->data;
skb580drivers/net/plip.crcv->skb->protocol=eth_type_trans(rcv->skb, dev);
skb581drivers/net/plip.cnetif_rx(rcv->skb);
skb583drivers/net/plip.crcv->skb = NULL;
skb667drivers/net/plip.cif (snd->skb == NULL || (lbuf = snd->skb->data) == NULL) {
skb670drivers/net/plip.csnd->skb = NULL;
skb742drivers/net/plip.cdev_kfree_skb(snd->skb, FREE_WRITE);
skb749drivers/net/plip.csnd->skb = NULL;
skb858drivers/net/plip.cstruct sk_buff *skb)
skb865drivers/net/plip.creturn nl->orig_rebuild_header(buff, dev, dst, skb);
skb880drivers/net/plip.cplip_tx_packet(struct sk_buff *skb, struct device *dev)
skb891drivers/net/plip.cif (skb == NULL) {
skb901drivers/net/plip.cif (skb->len > dev->mtu + dev->hard_header_len) {
skb902drivers/net/plip.cprintk("%s: packet too big, %d.\n", dev->name, (int)skb->len);
skb912drivers/net/plip.csnd->skb = skb;
skb913drivers/net/plip.csnd->length.h = skb->len;
skb959drivers/net/plip.cnl->rcv_data.skb = nl->snd_data.skb = NULL;
skb994drivers/net/plip.cif (snd->skb) {
skb995drivers/net/plip.cdev_kfree_skb(snd->skb, FREE_WRITE);
skb996drivers/net/plip.csnd->skb = NULL;
skb999drivers/net/plip.cif (rcv->skb) {
skb1000drivers/net/plip.crcv->skb->free = 1;
skb1001drivers/net/plip.ckfree_skb(rcv->skb, FREE_READ);
skb1002drivers/net/plip.crcv->skb = NULL;
skb101drivers/net/ppp.c#define skb_data(skb)       ((unsigned char *) (skb)->data)
skb195drivers/net/ppp.c#define skb_put(skb,count)          skb_data(skb)
skb204drivers/net/ppp.cunsigned len, struct sk_buff *skb);
skb218drivers/net/ppp.csk_buff *skb, void *saddr, void *daddr);
skb219drivers/net/ppp.cstatic int ppp_dev_output (struct protocol *self, sk_buff *skb, int type,
skb1254drivers/net/ppp.csk_buff *skb = dev_alloc_skb (count);
skb1258drivers/net/ppp.cif (skb == NULL) {
skb1268drivers/net/ppp.cskb->dev = ppp2dev (ppp);  /* We are the device */
skb1270drivers/net/ppp.cskb->len = count;
skb1272drivers/net/ppp.cskb->protocol = proto;
skb1273drivers/net/ppp.cskb->mac.raw  = skb_data(skb);
skb1275drivers/net/ppp.cmemcpy (skb_put(skb,count), data, count);  /* move data */
skb1279drivers/net/ppp.cskb->free = 1;
skb1281drivers/net/ppp.cnetif_rx (skb);
skb3116drivers/net/ppp.cppp_dev_xmit (sk_buff *skb, struct device *dev)
skb3125drivers/net/ppp.cif (skb == NULL) {
skb3134drivers/net/ppp.cdev_kfree_skb (skb, FREE_WRITE);
skb3143drivers/net/ppp.cdev->name, skb);
skb3152drivers/net/ppp.cdev_kfree_skb (skb, FREE_WRITE);
skb3158drivers/net/ppp.clen   = skb->len;
skb3159drivers/net/ppp.cdata  = skb_data(skb);
skb3166drivers/net/ppp.cswitch (skb->protocol) {
skb3176drivers/net/ppp.cdev_kfree_skb (skb, FREE_WRITE);
skb3187drivers/net/ppp.cdev_kfree_skb (skb, FREE_WRITE);
skb3234drivers/net/ppp.csk_buff *skb, void *saddr, void *daddr)
skb3236drivers/net/ppp.creturn protocol_pass_demultiplex(self, NULL, skb, NULL, NULL);
skb3239drivers/net/ppp.cstatic int ppp_dev_output (struct protocol *self, sk_buff *skb, int type,
skb3242drivers/net/ppp.cif(skb->dev==NULL)
skb3245drivers/net/ppp.ckfree_skb(skb, FREE_WRITE);
skb3248drivers/net/ppp.cdev_queue_xmit(skb, skb->dev, skb->priority);
skb3276drivers/net/ppp.cppp_dev_type (sk_buff *skb, struct device *dev)
skb3285drivers/net/ppp.cunsigned len, struct sk_buff *skb)
skb3287drivers/net/ppp.cstatic int ppp_dev_header (sk_buff *skb, struct device *dev,
skb3297drivers/net/ppp.csk_buff *skb)
skb122drivers/net/pt.cstatic int pt_send_packet(struct sk_buff *skb, struct device *dev);
skb177drivers/net/pt.cstatic void hardware_send_packet(struct pt_local *lp, struct sk_buff *skb)
skb185drivers/net/pt.cptr = skb->data;
skb186drivers/net/pt.cif (ptr[0] != 0 && skb->len >= 2)
skb188drivers/net/pt.cprintk("Rx KISS... Control = %d, value = %d.\n", ptr[0], (skb->len > 1? ptr[1] : -1));
skb231drivers/net/pt.cskb_queue_tail(&lp->sndq, skb);
skb318drivers/net/pt.cstatic void free_p(struct sk_buff *skb)
skb320drivers/net/pt.cdev_kfree_skb(skb, FREE_WRITE);
skb339drivers/net/pt.cstatic int pt_header (struct sk_buff *skb, struct device *dev, unsigned short type,
skb342drivers/net/pt.creturn ax25_encapsulate(skb, dev, type, daddr, saddr, len);
skb348drivers/net/pt.cstruct sk_buff *skb)
skb350drivers/net/pt.creturn ax25_rebuild_header(buff, dev, raddr, skb);
skb972drivers/net/pt.cstatic int pt_send_packet(struct sk_buff *skb, struct device *dev)
skb982drivers/net/pt.cif (skb == NULL) {
skb986drivers/net/pt.chardware_send_packet(lp, skb);
skb1271drivers/net/pt.cstruct sk_buff *skb;
skb1392drivers/net/pt.cskb = dev_alloc_skb(sksize);
skb1393drivers/net/pt.cif (skb == NULL)
skb1400drivers/net/pt.cskb->dev = dev;
skb1403drivers/net/pt.ccfix=skb_put(skb,pkt_len);
skb1410drivers/net/pt.cskb->protocol = ntohs(ETH_P_AX25);
skb1411drivers/net/pt.cskb->mac.raw=skb->data;
skb1412drivers/net/pt.cIS_SKB(skb);
skb1413drivers/net/pt.cnetif_rx(skb);
skb1810drivers/net/pt.cstruct sk_buff *skb;
skb1815drivers/net/pt.cskb = dev_alloc_skb(2);
skb1816drivers/net/pt.cif (skb == NULL)
skb1821drivers/net/pt.cskb->dev = dev;
skb1822drivers/net/pt.ccfix = skb_put(skb, 2);
skb1825drivers/net/pt.cskb->protocol=htons(ETH_P_AX25);
skb1826drivers/net/pt.cskb->mac.raw=skb->data;
skb1827drivers/net/pt.cIS_SKB(skb);
skb1828drivers/net/pt.cnetif_rx(skb);
skb83drivers/net/seeq8005.cstatic int seeq8005_send_packet(struct sk_buff *skb, struct device *dev);
skb374drivers/net/seeq8005.cseeq8005_send_packet(struct sk_buff *skb, struct device *dev)
skb395drivers/net/seeq8005.cif (skb == NULL) {
skb405drivers/net/seeq8005.cshort length = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN;
skb406drivers/net/seeq8005.cunsigned char *buf = skb->data;
skb411drivers/net/seeq8005.cdev_kfree_skb (skb, FREE_WRITE);
skb533drivers/net/seeq8005.cstruct sk_buff *skb;
skb536drivers/net/seeq8005.cskb = dev_alloc_skb(pkt_len);
skb537drivers/net/seeq8005.cif (skb == NULL) {
skb542drivers/net/seeq8005.cskb->dev = dev;
skb543drivers/net/seeq8005.cskb_reserve(skb, 2);  /* align data on 16 byte */
skb544drivers/net/seeq8005.cbuf = skb_put(skb,pkt_len);
skb557drivers/net/seeq8005.cskb->protocol=eth_type_trans(skb,dev);
skb558drivers/net/seeq8005.cnetif_rx(skb);
skb489drivers/net/sk_g16.cstatic int   SK_send_packet(struct sk_buff *skb, struct device *dev);
skb1192drivers/net/sk_g16.cstatic int SK_send_packet(struct sk_buff *skb, struct device *dev)
skb1223drivers/net/sk_g16.cif (skb == NULL)
skb1249drivers/net/sk_g16.cshort len = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN; 
skb1257drivers/net/sk_g16.cmemcpy((char *) (tmdp->u.buffer & 0x00ffffff), (char *)skb->data,
skb1258drivers/net/sk_g16.cskb->len);
skb1289drivers/net/sk_g16.cdev_kfree_skb(skb, FREE_WRITE);
skb1570drivers/net/sk_g16.cstruct sk_buff *skb;
skb1572drivers/net/sk_g16.cskb = dev_alloc_skb(len+2); /* allocate socket buffer */ 
skb1574drivers/net/sk_g16.cif (skb == NULL)                /* Could not get mem ? */
skb1592drivers/net/sk_g16.cskb->dev = dev;
skb1593drivers/net/sk_g16.cskb_reserve(skb,2);    /* Align IP header on 16 byte boundary */
skb1602drivers/net/sk_g16.cmemcpy(skb_put(skb,len), (unsigned char *) (rmdp->u.buffer & 0x00ffffff),
skb1613drivers/net/sk_g16.cskb->protocol=eth_type_trans(skb,dev);
skb1614drivers/net/sk_g16.cnetif_rx(skb);                 /* queue packet and mark it for processing */
skb102drivers/net/skeleton.cstatic int  net_send_packet(struct sk_buff *skb, struct device *dev);
skb344drivers/net/skeleton.cnet_send_packet(struct sk_buff *skb, struct device *dev)
skb369drivers/net/skeleton.cif (skb == NULL) {
skb380drivers/net/skeleton.cshort length = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN;
skb381drivers/net/skeleton.cunsigned char *buf = skb->data;
skb386drivers/net/skeleton.cdev_kfree_skb (skb, FREE_WRITE);
skb459drivers/net/skeleton.cstruct sk_buff *skb;
skb461drivers/net/skeleton.cskb = dev_alloc_skb(pkt_len);
skb462drivers/net/skeleton.cif (skb == NULL) {
skb468drivers/net/skeleton.cskb->dev = dev;
skb471drivers/net/skeleton.cmemcpy(skb_put(skb,pkt_len), (void*)dev->rmem_start,
skb474drivers/net/skeleton.cinsw(ioaddr, skb->data, (pkt_len + 1) >> 1);
skb476drivers/net/skeleton.cnetif_rx(skb);
skb346drivers/net/slip.cstruct sk_buff *skb;
skb383drivers/net/slip.cskb = dev_alloc_skb(count);
skb384drivers/net/slip.cif (skb == NULL)  {
skb389drivers/net/slip.cskb->dev = sl->dev;
skb390drivers/net/slip.cmemcpy(skb_put(skb,count), sl->rbuff, count);
skb391drivers/net/slip.cskb->mac.raw=skb->data;
skb393drivers/net/slip.cskb->protocol=htons(ETH_P_AX25);
skb395drivers/net/slip.cskb->protocol=htons(ETH_P_IP);
skb396drivers/net/slip.cnetif_rx(skb);
skb487drivers/net/slip.csl_xmit(struct sk_buff *skb, struct device *dev)
skb526drivers/net/slip.cif (skb != NULL) {
skb528drivers/net/slip.csl_encaps(sl, skb->data, skb->len);
skb529drivers/net/slip.cdev_kfree_skb(skb, FREE_WRITE);
skb539drivers/net/slip.csl_header(struct sk_buff *skb, struct device *dev, unsigned short type,
skb547drivers/net/slip.creturn ax25_encapsulate(skb, dev, type, daddr, saddr, len);
skb558drivers/net/slip.cstruct sk_buff *skb)
skb565drivers/net/slip.creturn ax25_rebuild_header(buff, dev, raddr, skb);
skb73drivers/net/smc-ultra.cstruct sk_buff *skb, int ring_offset);
skb286drivers/net/smc-ultra.cultra_block_input(struct device *dev, int count, struct sk_buff *skb, int ring_offset)
skb296drivers/net/smc-ultra.cmemcpy_fromio(skb->data, xfer_start, semi_count);
skb298drivers/net/smc-ultra.cmemcpy_fromio(skb->data + semi_count, dev->rmem_start, count);
skb301drivers/net/smc-ultra.ceth_io_copy_and_sum(skb, xfer_start, count, 0);
skb347drivers/net/sunlance.cstruct sk_buff *skb;
skb350drivers/net/sunlance.cskb = dev_alloc_skb (pkt_len+2);
skb351drivers/net/sunlance.cif (skb == NULL){
skb358drivers/net/sunlance.cskb->dev = dev;
skb359drivers/net/sunlance.cskb_reserve (skb, 2);               /* 16 byte align */
skb360drivers/net/sunlance.cbuf = skb_put (skb, pkt_len);       /* make room */
skb362drivers/net/sunlance.cskb->protocol = eth_type_trans (skb,dev);
skb363drivers/net/sunlance.cnetif_rx (skb);
skb387drivers/net/sunlance.cstruct sk_buff *skb;
skb390drivers/net/sunlance.cskb = dev_alloc_skb (pkt_len+2);
skb391drivers/net/sunlance.cif (skb == NULL){
skb399drivers/net/sunlance.cskb->dev = dev;
skb400drivers/net/sunlance.cskb_reserve (skb, 2);               /* 16 byte align */
skb401drivers/net/sunlance.cbuf = skb_put (skb, pkt_len);       /* make room */
skb403drivers/net/sunlance.cskb->protocol = eth_type_trans (skb,dev);
skb404drivers/net/sunlance.cnetif_rx (skb);
skb602drivers/net/sunlance.cstatic int lance_start_xmit (struct sk_buff *skb, struct device *dev)
skb625drivers/net/sunlance.cif (skb == NULL){
skb631drivers/net/sunlance.cif (skb->len <= 0){
skb632drivers/net/sunlance.cprintk ("skb len is %ld\n", skb->len);
skb644drivers/net/sunlance.cskblen = skb->len;
skb654drivers/net/sunlance.cprintk ("%2.2x ", skb->data [i]);
skb662drivers/net/sunlance.cmemcpy ((char *)&ib->tx_buf [entry][0], skb->data, skblen);
skb678drivers/net/sunlance.cdev_kfree_skb (skb, FREE_WRITE);
skb156drivers/net/tulip.cstatic int tulip_start_xmit(struct sk_buff *skb, struct device *dev);
skb376drivers/net/tulip.ctulip_start_xmit(struct sk_buff *skb, struct device *dev)
skb406drivers/net/tulip.cif (skb == NULL || skb->len <= 0) {
skb428drivers/net/tulip.ctp->tx_skbuff[entry] = skb;
skb429drivers/net/tulip.ctp->tx_ring[entry].length = skb->len |
skb431drivers/net/tulip.ctp->tx_ring[entry].buffer1 = skb->data;
skb601drivers/net/tulip.cstruct sk_buff *skb;
skb603drivers/net/tulip.cskb = dev_alloc_skb(pkt_len+2);
skb604drivers/net/tulip.cif (skb == NULL) {
skb619drivers/net/tulip.cskb->dev = dev;
skb620drivers/net/tulip.cskb_reserve(skb,2);  /* 16 byte align the data fields */
skb621drivers/net/tulip.cmemcpy(skb_put(skb,pkt_len), lp->rx_ring[entry].buffer1, pkt_len);
skb622drivers/net/tulip.cskb->protocol=eth_type_trans(skb,dev);
skb623drivers/net/tulip.cnetif_rx(skb);
skb42drivers/net/tunnel.cstatic int tunnel_xmit(struct sk_buff *skb, struct device *dev);
skb123drivers/net/tunnel.cstatic int tunnel_xmit(struct sk_buff *skb, struct device *dev)
skb134drivers/net/tunnel.cif (skb == NULL || dev == NULL)
skb159drivers/net/tunnel.cdev_kfree_skb(skb, FREE_WRITE);
skb164drivers/net/tunnel.ciph=(struct iphdr *)skb->data;
skb171drivers/net/tunnel.cdev_kfree_skb(skb, FREE_WRITE);
skb188drivers/net/tunnel.cdev_kfree_skb(skb, FREE_WRITE);
skb195drivers/net/tunnel.cdev_kfree_skb(skb, FREE_WRITE);
skb209drivers/net/tunnel.cnewlen = (skb->len + ip_header_len);
skb213drivers/net/tunnel.cdev_kfree_skb(skb, FREE_WRITE);
skb224drivers/net/tunnel.cmemcpy(skb2->h.iph, skb->data, ip_header_len );
skb225drivers/net/tunnel.cmemcpy(skb2->data + ip_header_len, skb->data, skb->len);
skb227drivers/net/tunnel.cdev_kfree_skb(skb, FREE_WRITE);
skb1389drivers/net/wavelan.cwavelan_send_packet(struct sk_buff *skb, device *dev)
skb1430drivers/net/wavelan.cif (skb == (struct sk_buff *)0)
skb1444drivers/net/wavelan.clength = (ETH_ZLEN < skb->len) ? skb->len : ETH_ZLEN;
skb1445drivers/net/wavelan.cbuf = skb->data;
skb1452drivers/net/wavelan.cdev_kfree_skb(skb, FREE_WRITE);
skb1497drivers/net/wavelan.cstruct sk_buff  *skb;
skb1640drivers/net/wavelan.cif ((skb = dev_alloc_skb(sksize)) == (struct sk_buff *)0)
skb1647drivers/net/wavelan.cskb->dev = dev;
skb1649drivers/net/wavelan.cobram_read(ioaddr, rbd.rbd_bufl, skb_put(skb,pkt_len), pkt_len);
skb1665drivers/net/wavelan.cc = skb->data[i];
skb1667drivers/net/wavelan.cprintk(" %c", skb->data[i]);
skb1669drivers/net/wavelan.cprintk("%02x", skb->data[i]);
skb1678drivers/net/wavelan.cskb->protocol=eth_type_trans(skb,dev);
skb1679drivers/net/wavelan.cnetif_rx(skb);
skb55drivers/net/wd.cstruct sk_buff *skb, int ring_offset);
skb376drivers/net/wd.cwd_block_input(struct device *dev, int count, struct sk_buff *skb, int ring_offset)
skb384drivers/net/wd.cmemcpy_fromio(skb->data, xfer_start, semi_count);
skb386drivers/net/wd.cmemcpy_fromio(skb->data + semi_count, dev->rmem_start, count);
skb389drivers/net/wd.ceth_io_copy_and_sum(skb, xfer_start, count, 0);
skb184drivers/net/znet.cstatic int  znet_send_packet(struct sk_buff *skb, struct device *dev);
skb317drivers/net/znet.cstatic int znet_send_packet(struct sk_buff *skb, struct device *dev)
skb343drivers/net/znet.cif (skb == NULL) {
skb360drivers/net/znet.cshort length = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN;
skb361drivers/net/znet.cunsigned char *buf = (void *)skb->data;
skb386drivers/net/znet.cmemcpy(zn.tx_cur, buf, skb->len);
skb400drivers/net/znet.cdev_kfree_skb(skb, FREE_WRITE); 
skb549drivers/net/znet.cstruct sk_buff *skb;
skb551drivers/net/znet.cskb = dev_alloc_skb(pkt_len);
skb552drivers/net/znet.cif (skb == NULL) {
skb558drivers/net/znet.cskb->dev = dev;
skb562drivers/net/znet.cmemcpy(skb_put(skb,semi_cnt), zn.rx_cur, semi_cnt);
skb563drivers/net/znet.cmemcpy(skb_put(skb,pkt_len-semi_cnt), zn.rx_start,
skb566drivers/net/znet.cmemcpy(skb_put(skb,pkt_len), zn.rx_cur, pkt_len);
skb568drivers/net/znet.cunsigned int *packet = (unsigned int *) skb->data;
skb573drivers/net/znet.cskb->protocol=eth_type_trans(skb,dev);
skb574drivers/net/znet.cnetif_rx(skb);
skb170fs/nfs/nfsroot.cstatic int root_rarp_recv(struct sk_buff *skb, struct device *dev,
skb207fs/nfs/nfsroot.cstatic int root_rarp_recv(struct sk_buff *skb, struct device *dev, struct packet_type *pt)
skb209fs/nfs/nfsroot.cstruct arphdr *rarp = (struct arphdr *)skb->h.raw;
skb216fs/nfs/nfsroot.ckfree_skb(skb, FREE_READ);
skb222fs/nfs/nfsroot.ckfree_skb(skb, FREE_READ);
skb232fs/nfs/nfsroot.ckfree_skb(skb, FREE_READ);
skb247fs/nfs/nfsroot.ckfree_skb(skb, FREE_READ);
skb253fs/nfs/nfsroot.ckfree_skb(skb, FREE_READ);
skb264fs/nfs/nfsroot.ckfree_skb(skb, FREE_READ);
skb278fs/nfs/nfsroot.ckfree_skb(skb, FREE_READ);
skb209include/asm-alpha/io.h#define eth_io_copy_and_sum(skb,src,len,unused)  memcpy_fromio((skb)->data,(src),(len))
skb141include/linux/atalk.hextern int aarp_send_ddp(struct device *dev,struct sk_buff *skb, struct at_addr *sa, void *hwaddr);
skb31include/linux/etherdevice.hextern int    eth_header(struct sk_buff *skb, struct device *dev,
skb35include/linux/etherdevice.hunsigned long dst, struct sk_buff *skb);
skb36include/linux/etherdevice.hextern unsigned short  eth_type_trans(struct sk_buff *skb, struct device *dev);
skb18include/linux/firewall.hstruct sk_buff *skb, void *phdr);
skb20include/linux/firewall.hstruct sk_buff *skb, void *phdr);
skb22include/linux/firewall.hstruct sk_buff *skb, void *phdr);
skb34include/linux/firewall.hextern int call_fw_firewall(int pf, struct sk_buff *skb, void *phdr);
skb35include/linux/firewall.hextern int call_in_firewall(int pf, struct sk_buff *skb, void *phdr);
skb36include/linux/firewall.hextern int call_out_firewall(int pf, struct sk_buff *skb, void *phdr);
skb124include/linux/mroute.hextern void ipmr_forward(struct sk_buff *skb, int is_frag);
skb165include/linux/netdevice.hint        (*hard_start_xmit) (struct sk_buff *skb,
skb167include/linux/netdevice.hint        (*hard_header) (struct sk_buff *skb,
skb174include/linux/netdevice.hunsigned long raddr, struct sk_buff *skb);
skb226include/linux/netdevice.hextern void    dev_queue_xmit(struct sk_buff *skb, struct device *dev,
skb229include/linux/netdevice.hextern void    netif_rx(struct sk_buff *skb);
skb137include/linux/skbuff.hextern void      kfree_skb(struct sk_buff *skb, int rw);
skb149include/linux/skbuff.hextern void      kfree_skbmem(struct sk_buff *skb);
skb150include/linux/skbuff.hextern struct sk_buff *    skb_clone(struct sk_buff *skb, int priority);
skb151include/linux/skbuff.hextern struct sk_buff *    skb_copy(struct sk_buff *skb, int priority);
skb152include/linux/skbuff.hextern void      skb_device_lock(struct sk_buff *skb);
skb153include/linux/skbuff.hextern void      skb_device_unlock(struct sk_buff *skb);
skb154include/linux/skbuff.hextern void      dev_kfree_skb(struct sk_buff *skb, int mode);
skb155include/linux/skbuff.hextern int      skb_device_locked(struct sk_buff *skb);
skb156include/linux/skbuff.hextern unsigned char *    skb_put(struct sk_buff *skb, int len);
skb157include/linux/skbuff.hextern unsigned char *    skb_push(struct sk_buff *skb, int len);
skb158include/linux/skbuff.hextern unsigned char *    skb_pull(struct sk_buff *skb, int len);
skb159include/linux/skbuff.hextern int      skb_headroom(struct sk_buff *skb);
skb160include/linux/skbuff.hextern int      skb_tailroom(struct sk_buff *skb);
skb161include/linux/skbuff.hextern void      skb_reserve(struct sk_buff *skb, int len);
skb162include/linux/skbuff.hextern void       skb_trim(struct sk_buff *skb, int len);
skb188include/linux/skbuff.hextern int       skb_check(struct sk_buff *skb,int,int, char *);
skb189include/linux/skbuff.h#define IS_SKB(skb)    skb_check((skb), 0, __LINE__,__FILE__)
skb190include/linux/skbuff.h#define IS_SKB_HEAD(skb)  skb_check((skb), 1, __LINE__,__FILE__)
skb192include/linux/skbuff.h#define IS_SKB(skb)    
skb193include/linux/skbuff.h#define IS_SKB_HEAD(skb)  
skb353include/linux/skbuff.hextern __inline__ void __skb_unlink(struct sk_buff *skb, struct sk_buff_head *list)
skb358include/linux/skbuff.hnext = skb->next;
skb359include/linux/skbuff.hprev = skb->prev;
skb360include/linux/skbuff.hskb->next = NULL;
skb361include/linux/skbuff.hskb->prev = NULL;
skb362include/linux/skbuff.hskb->list = NULL;
skb373include/linux/skbuff.hextern __inline__ void skb_unlink(struct sk_buff *skb)
skb379include/linux/skbuff.hif(skb->list)
skb380include/linux/skbuff.h__skb_unlink(skb, skb->list);
skb388include/linux/skbuff.hextern __inline__ unsigned char *skb_put(struct sk_buff *skb, int len)
skb390include/linux/skbuff.hunsigned char *tmp=skb->tail;
skb391include/linux/skbuff.hskb->tail+=len;
skb392include/linux/skbuff.hskb->len+=len;
skb393include/linux/skbuff.hif(skb->tail>skb->end)
skb398include/linux/skbuff.hextern __inline__ unsigned char *skb_push(struct sk_buff *skb, int len)
skb400include/linux/skbuff.hskb->data-=len;
skb401include/linux/skbuff.hskb->len+=len;
skb402include/linux/skbuff.hif(skb->data<skb->head)
skb404include/linux/skbuff.hreturn skb->data;
skb407include/linux/skbuff.hextern __inline__ unsigned char * skb_pull(struct sk_buff *skb, int len)
skb409include/linux/skbuff.hif(len > skb->len)
skb411include/linux/skbuff.hskb->data+=len;
skb412include/linux/skbuff.hskb->len-=len;
skb413include/linux/skbuff.hreturn skb->data;
skb416include/linux/skbuff.hextern __inline__ int skb_headroom(struct sk_buff *skb)
skb418include/linux/skbuff.hreturn skb->data-skb->head;
skb421include/linux/skbuff.hextern __inline__ int skb_tailroom(struct sk_buff *skb)
skb423include/linux/skbuff.hreturn skb->end-skb->tail;
skb426include/linux/skbuff.hextern __inline__ void skb_reserve(struct sk_buff *skb, int len)
skb428include/linux/skbuff.hskb->data+=len;
skb429include/linux/skbuff.hskb->tail+=len;
skb432include/linux/skbuff.hextern __inline__ void skb_trim(struct sk_buff *skb, int len)
skb434include/linux/skbuff.hif(skb->len>len)
skb436include/linux/skbuff.hskb->len=len;
skb437include/linux/skbuff.hskb->tail=skb->data+len;
skb447include/linux/skbuff.hextern void      skb_free_datagram(struct sk_buff *skb);
skb31include/linux/trdevice.hextern int    tr_header(struct sk_buff *skb, struct device *dev,
skb35include/linux/trdevice.hunsigned long raddr, struct sk_buff *skb);
skb36include/linux/trdevice.hextern unsigned short  tr_type_trans(struct sk_buff *skb, struct device *dev);
skb6include/net/arp.hextern int  arp_rcv(struct sk_buff *skb, struct device *dev,
skb10include/net/arp.hstruct device *dev, u32 saddr, struct sk_buff *skb);
skb58include/net/ip.hstruct sk_buff  *skb;    /* complete received fragment    */
skb89include/net/ip.hextern int     ip_send(struct rtable *rt, struct sk_buff *skb, __u32 daddr, int len, struct device *dev, __u32 saddr);
skb90include/net/ip.hextern int     ip_build_header(struct sk_buff *skb,
skb96include/net/ip.hextern int    ip_rcv(struct sk_buff *skb, struct device *dev,
skb100include/net/ip.hstruct sk_buff * skb);
skb101include/net/ip.hextern int    ip_options_compile(struct options * opt, struct sk_buff * skb);
skb105include/net/ip.hstruct device *dev, struct sk_buff *skb,
skb129include/net/ip.hstruct sk_buff *ip_defrag(struct iphdr *iph, struct sk_buff *skb, struct device *dev);
skb130include/net/ip.hvoid ip_fragment(struct sock *sk, struct sk_buff *skb, struct device *dev, int is_frag);
skb136include/net/ip.hextern int ip_forward(struct sk_buff *skb, struct device *dev, int is_frag, __u32 target_addr);
skb142include/net/ip.hextern void ip_options_build(struct sk_buff *skb, struct options *opt, __u32 daddr, __u32 saddr, int is_frag);
skb143include/net/ip.hextern int ip_options_echo(struct options *dopt, struct options *sopt, __u32 daddr, __u32 saddr, struct sk_buff *skb);
skb144include/net/ip.hextern void ip_options_fragment(struct sk_buff *skb);
skb145include/net/ip.hextern int ip_options_compile(struct options *opt, struct sk_buff *skb);
skb1include/net/ipip.hextern int ipip_rcv(struct sk_buff *skb, struct device *dev, struct options *opt, 
skb49include/net/ipx.hextern int ipx_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt);
skb10include/net/netlink.hextern int netlink_attach(int unit, int (*function)(struct sk_buff *skb));
skb11include/net/netlink.hextern int netlink_donothing(struct sk_buff *skb);
skb13include/net/netlink.hextern int netlink_post(int unit, struct sk_buff *skb);
skb31include/net/protocol.hint      (*handler)(struct sk_buff *skb, struct device *dev,
skb282include/net/sock.hint      (*build_header)(struct sk_buff *skb,
skb292include/net/sock.hstruct device *dev, struct sk_buff *skb,
skb368include/net/sock.hstruct sk_buff *skb);
skb370include/net/sock.hstruct sk_buff *skb);
skb381include/net/sock.hextern struct sk_buff     *sock_alloc_send_skb(struct sock *skb,
skb396include/net/sock.hextern __inline__ int sock_queue_rcv_skb(struct sock *sk, struct sk_buff *skb)
skb399include/net/sock.hif(sk->rmem_alloc + skb->truesize >= sk->rcvbuf)
skb403include/net/sock.hsk->rmem_alloc+=skb->truesize;
skb404include/net/sock.hskb->sk=sk;
skb406include/net/sock.hskb_queue_tail(&sk->receive_queue,skb);
skb408include/net/sock.hsk->data_ready(sk,skb->len);
skb122include/net/tcp.hextern int  tcp_rcv(struct sk_buff *skb, struct device *dev,
skb135include/net/tcp.hunsigned long daddr, int len, struct sk_buff *skb);
skb45include/net/udp.hextern int  udp_rcv(struct sk_buff *skb, struct device *dev,
skb6net/802/llc.cint llc_rx_adm(struct sock *sk,struct sk_buff *skb, int type, int cmd, int pf, int nr, int ns)
skb36net/802/llc.cint llc_rx_setup(struct sock *sk, struct sk_buff *skb, int type, int cmd, int pf, int nr, int ns)
skb70net/802/llc.cint llc_rx_reset(struct sock *sk, struct sk_buff *skb, int type, int cmd, int pf, int nr, int ns)
skb114net/802/llc.cint llc_rx_d_conn(struct sock *sk, struct sk_buff *skb, int type, int cmd, int pf, int nr, int ns)
skb150net/802/llc.cint llc_rx_error(struct sock *sk, struct sk_buff *skb, int type, int cmd, int pf, int nr, int ns)
skb199net/802/llc.cint llc_rx_nr_shared(struct sock *sk, struct sk_buff *skb, int type, int cmd, int pf, int nr, int ns)
skb288net/802/llc.cint llc_rx_normal(struct sock *sk, struct sk_buff *skb, int type, int cmd, int pf, int nr, int ns)
skb290net/802/llc.cif(llc_rx_nr_shared(sk, skb, type, cmd, pf, nr, ns))
skb364net/802/llc.cllc_queue_data(sk,skb);
skb30net/802/p8022.cp8022_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt)
skb34net/802/p8022.cproto = find_8022_client(*(skb->h.raw));
skb36net/802/p8022.cskb->h.raw += 3;
skb37net/802/p8022.cskb_pull(skb,3);
skb38net/802/p8022.creturn proto->rcvfunc(skb, dev, pt);
skb41net/802/p8022.cskb->sk = NULL;
skb42net/802/p8022.ckfree_skb(skb, FREE_READ);
skb48net/802/p8022.cstruct sk_buff *skb, unsigned char *dest_node)
skb50net/802/p8022.cstruct device  *dev = skb->dev;
skb53net/802/p8022.crawp = skb_push(skb,3);
skb57net/802/p8022.cdev->hard_header(skb, dev, ETH_P_802_3, dest_node, NULL, skb->len);
skb9net/802/p8023.cstruct sk_buff *skb, unsigned char *dest_node)
skb11net/802/p8023.cstruct device  *dev = skb->dev;
skb13net/802/p8023.cdev->hard_header(skb, dev, ETH_P_802_3, dest_node, NULL, skb->len);
skb40net/802/psnap.cint snap_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt)
skb53net/802/psnap.cproto = find_snap_client(skb->h.raw);
skb60net/802/psnap.cskb->h.raw += 5;
skb61net/802/psnap.cskb_pull(skb,5);
skb64net/802/psnap.creturn proto->rcvfunc(skb, dev, &psnap_packet_type);
skb66net/802/psnap.cskb->sk = NULL;
skb67net/802/psnap.ckfree_skb(skb, FREE_READ);
skb75net/802/psnap.cstatic void snap_datalink_header(struct datalink_proto *dl, struct sk_buff *skb, unsigned char *dest_node)
skb77net/802/psnap.cmemcpy(skb_push(skb,5),dl->type,5);
skb78net/802/psnap.csnap_dl->datalink_header(snap_dl, skb, dest_node);
skb41net/802/tr.cint tr_header(struct sk_buff *skb, struct device *dev, unsigned short type,
skb45net/802/tr.cstruct trh_hdr *trh=(struct trh_hdr *)skb_push(skb,dev->hard_header_len);
skb72net/802/tr.cstruct sk_buff *skb) {
skb82net/802/tr.cif(arp_find(trh->daddr, dest, dev, dev->pa_addr, skb)) {
skb91net/802/tr.cunsigned short tr_type_trans(struct sk_buff *skb, struct device *dev) {
skb93net/802/tr.cstruct trh_hdr *trh=(struct trh_hdr *)skb->data;
skb94net/802/tr.cstruct trllc *trllc=(struct trllc *)(skb->data+sizeof(struct trh_hdr));
skb96net/802/tr.cskb->mac.raw = skb->data;
skb98net/802/tr.cskb_pull(skb,dev->hard_header_len);
skb106net/802/tr.cskb->pkt_type=PACKET_BROADCAST;
skb108net/802/tr.cskb->pkt_type=PACKET_MULTICAST;
skb114net/802/tr.cskb->pkt_type=PACKET_OTHERHOST;
skb90net/appletalk/aarp.cstruct sk_buff *skb;
skb92net/appletalk/aarp.cwhile((skb=skb_dequeue(&a->packet_queue))!=NULL)
skb93net/appletalk/aarp.ckfree_skb(skb, FREE_WRITE);
skb106net/appletalk/aarp.cstruct sk_buff *skb=alloc_skb(len, GFP_ATOMIC);
skb110net/appletalk/aarp.cif(skb==NULL || sat==NULL)
skb117net/appletalk/aarp.cskb_reserve(skb,dev->hard_header_len+aarp_dl->header_length);
skb118net/appletalk/aarp.ceah    =  (struct elapaarp *)skb_put(skb,sizeof(struct elapaarp));
skb119net/appletalk/aarp.cskb->arp  =  1;
skb120net/appletalk/aarp.cskb->free  =  1;
skb121net/appletalk/aarp.cskb->dev  =  a->dev;
skb149net/appletalk/aarp.caarp_dl->datalink_header(aarp_dl, skb, aarp_eth_multicast);  
skb155net/appletalk/aarp.cdev_queue_xmit(skb, dev, SOPRI_NORMAL);
skb167net/appletalk/aarp.cstruct sk_buff *skb=alloc_skb(len, GFP_ATOMIC);
skb170net/appletalk/aarp.cif(skb==NULL)
skb177net/appletalk/aarp.cskb_reserve(skb,dev->hard_header_len+aarp_dl->header_length);
skb178net/appletalk/aarp.ceah    =  (struct elapaarp *)skb_put(skb,sizeof(struct elapaarp));   
skb179net/appletalk/aarp.cskb->arp  =  1;
skb180net/appletalk/aarp.cskb->free  =  1;
skb181net/appletalk/aarp.cskb->dev  =  dev;
skb212net/appletalk/aarp.caarp_dl->datalink_header(aarp_dl, skb, sha);  
skb218net/appletalk/aarp.cdev_queue_xmit(skb, dev, SOPRI_NORMAL);
skb229net/appletalk/aarp.cstruct sk_buff *skb=alloc_skb(len, GFP_ATOMIC);
skb233net/appletalk/aarp.cif(skb==NULL)
skb240net/appletalk/aarp.cskb_reserve(skb,dev->hard_header_len+aarp_dl->header_length);
skb241net/appletalk/aarp.ceah    =  (struct elapaarp *)skb_put(skb,sizeof(struct elapaarp));
skb243net/appletalk/aarp.cskb->arp  =  1;
skb244net/appletalk/aarp.cskb->free  =  1;
skb245net/appletalk/aarp.cskb->dev  =  dev;
skb273net/appletalk/aarp.caarp_dl->datalink_header(aarp_dl, skb, aarp_eth_multicast);  
skb279net/appletalk/aarp.cdev_queue_xmit(skb, dev, SOPRI_NORMAL);
skb427net/appletalk/aarp.cint aarp_send_ddp(struct device *dev,struct sk_buff *skb, struct at_addr *sa, void *hwaddr)
skb443net/appletalk/aarp.cskb->dev = dev;
skb444net/appletalk/aarp.cskb->protocol = htons(ETH_P_ATALK);
skb456net/appletalk/aarp.cddp_dl->datalink_header(ddp_dl, skb, ddp_eth_multicast);
skb457net/appletalk/aarp.cif(skb->sk==NULL)
skb458net/appletalk/aarp.cdev_queue_xmit(skb, skb->dev, SOPRI_NORMAL);
skb460net/appletalk/aarp.cdev_queue_xmit(skb, skb->dev, skb->sk->priority);
skb472net/appletalk/aarp.cddp_dl->datalink_header(ddp_dl, skb, a->hwaddr);
skb473net/appletalk/aarp.cif(skb->sk==NULL)
skb474net/appletalk/aarp.cdev_queue_xmit(skb, skb->dev, SOPRI_NORMAL);
skb476net/appletalk/aarp.cdev_queue_xmit(skb, skb->dev, skb->sk->priority);
skb492net/appletalk/aarp.cskb_queue_tail(&a->packet_queue, skb);
skb516net/appletalk/aarp.cskb_queue_tail(&a->packet_queue, skb);
skb558net/appletalk/aarp.cstruct sk_buff *skb;
skb577net/appletalk/aarp.cwhile((skb=skb_dequeue(&a->packet_queue))!=NULL)
skb580net/appletalk/aarp.cddp_dl->datalink_header(ddp_dl,skb,a->hwaddr);
skb581net/appletalk/aarp.cif(skb->sk==NULL)
skb582net/appletalk/aarp.cdev_queue_xmit(skb, skb->dev, SOPRI_NORMAL);
skb584net/appletalk/aarp.cdev_queue_xmit(skb, skb->dev, skb->sk->priority);
skb597net/appletalk/aarp.cstatic int aarp_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt)
skb599net/appletalk/aarp.cstruct elapaarp *ea=(struct elapaarp *)skb->h.raw;
skb613net/appletalk/aarp.ckfree_skb(skb, FREE_READ);
skb621net/appletalk/aarp.cif(!skb_pull(skb,sizeof(*ea)))
skb623net/appletalk/aarp.ckfree_skb(skb, FREE_READ);
skb636net/appletalk/aarp.ckfree_skb(skb, FREE_READ);
skb667net/appletalk/aarp.ckfree_skb(skb, FREE_READ);
skb680net/appletalk/aarp.ckfree_skb(skb, FREE_READ);
skb739net/appletalk/aarp.ckfree_skb(skb, FREE_READ);
skb206net/appletalk/ddp.cstruct sk_buff *skb;
skb209net/appletalk/ddp.cwhile((skb=skb_dequeue(&sk->receive_queue))!=NULL)
skb211net/appletalk/ddp.ckfree_skb(skb,FREE_READ);
skb1363net/appletalk/ddp.cint atalk_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt)
skb1366net/appletalk/ddp.cstruct ddpehdr *ddp=(void *)skb->h.raw;
skb1372net/appletalk/ddp.cif(skb->len<sizeof(*ddp))
skb1374net/appletalk/ddp.ckfree_skb(skb,FREE_READ);
skb1391net/appletalk/ddp.coriglen = skb->len;
skb1393net/appletalk/ddp.cskb_trim(skb,min(skb->len,ddp->deh_len));
skb1401net/appletalk/ddp.cif(skb->len<sizeof(*ddp))
skb1403net/appletalk/ddp.ckfree_skb(skb,FREE_READ);
skb1415net/appletalk/ddp.ckfree_skb(skb,FREE_READ);
skb1421net/appletalk/ddp.cif(call_in_firewall(AF_APPLETALK, skb, ddp)!=FW_ACCEPT)
skb1423net/appletalk/ddp.ckfree_skb(skb, FREE_READ);
skb1444net/appletalk/ddp.cif (skb->pkt_type != PACKET_HOST || ddp->deh_dnet == 0) 
skb1446net/appletalk/ddp.ckfree_skb(skb, FREE_READ);
skb1455net/appletalk/ddp.cif(call_fw_firewall(AF_APPLETALK, skb, ddp)!=FW_ACCEPT)
skb1457net/appletalk/ddp.ckfree_skb(skb, FREE_READ);
skb1468net/appletalk/ddp.ckfree_skb(skb, FREE_READ);
skb1474net/appletalk/ddp.cskb_trim(skb,min(origlen, rt->dev->hard_header_len + 
skb1481net/appletalk/ddp.cif(aarp_send_ddp(rt->dev, skb, &ta, NULL)==-1)
skb1482net/appletalk/ddp.ckfree_skb(skb, FREE_READ);
skb1496net/appletalk/ddp.ckfree_skb(skb,FREE_READ);
skb1505net/appletalk/ddp.cskb->sk = sock;
skb1507net/appletalk/ddp.cif(sock_queue_rcv_skb(sock,skb)<0)
skb1509net/appletalk/ddp.cskb->sk=NULL;
skb1510net/appletalk/ddp.ckfree_skb(skb, FREE_WRITE);
skb1520net/appletalk/ddp.cstruct sk_buff *skb;
skb1593net/appletalk/ddp.cskb = sock_alloc_send_skb(sk, size, 0, 0 , &err);
skb1594net/appletalk/ddp.cif(skb==NULL)
skb1597net/appletalk/ddp.cskb->sk=sk;
skb1598net/appletalk/ddp.cskb->free=1;
skb1599net/appletalk/ddp.cskb->arp=1;
skb1600net/appletalk/ddp.cskb_reserve(skb,ddp_dl->header_length);
skb1601net/appletalk/ddp.cskb_reserve(skb,dev->hard_header_len);
skb1603net/appletalk/ddp.cskb->dev=dev;
skb1608net/appletalk/ddp.cddp=(struct ddpehdr *)skb_put(skb,sizeof(struct ddpehdr));
skb1629net/appletalk/ddp.cmemcpy_fromiovec(skb_put(skb,len),msg->msg_iov,len);
skb1638net/appletalk/ddp.cif(call_out_firewall(AF_APPLETALK, skb, ddp)!=FW_ACCEPT)
skb1640net/appletalk/ddp.ckfree_skb(skb, FREE_WRITE);
skb1655net/appletalk/ddp.cstruct sk_buff *skb2=skb_clone(skb, GFP_KERNEL);
skb1673net/appletalk/ddp.csk->wmem_alloc-=skb->truesize;
skb1674net/appletalk/ddp.cddp_dl->datalink_header(ddp_dl, skb, dev->dev_addr);
skb1675net/appletalk/ddp.cskb->sk = NULL;
skb1676net/appletalk/ddp.cskb->mac.raw=skb->data;
skb1677net/appletalk/ddp.cskb->h.raw = skb->data + ddp_dl->header_length + dev->hard_header_len;
skb1678net/appletalk/ddp.cskb_pull(skb,dev->hard_header_len);
skb1679net/appletalk/ddp.cskb_pull(skb,ddp_dl->header_length);
skb1680net/appletalk/ddp.catalk_rcv(skb,dev,NULL);
skb1692net/appletalk/ddp.cif(aarp_send_ddp(dev,skb,&usat->sat_addr, NULL)==-1)
skb1693net/appletalk/ddp.ckfree_skb(skb, FREE_WRITE);
skb1708net/appletalk/ddp.cstruct sk_buff *skb;
skb1717net/appletalk/ddp.cskb=skb_recv_datagram(sk,flags,noblock,&er);
skb1718net/appletalk/ddp.cif(skb==NULL)
skb1721net/appletalk/ddp.cddp = (struct ddpehdr *)(skb->h.raw);
skb1727net/appletalk/ddp.cskb_copy_datagram_iovec(skb,0,msg->msg_iov,copied);
skb1734net/appletalk/ddp.cskb_copy_datagram_iovec(skb,sizeof(*ddp),msg->msg_iov,copied);
skb1743net/appletalk/ddp.cskb_free_datagram(skb);
skb1782net/appletalk/ddp.cstruct sk_buff *skb;
skb1784net/appletalk/ddp.cif((skb=skb_peek(&sk->receive_queue))!=NULL)
skb1785net/appletalk/ddp.camount=skb->len-sizeof(struct ddpehdr);
skb364net/ax25/af_ax25.cstatic void ax25_send_to_raw(struct sock *sk, struct sk_buff *skb, int proto)
skb370net/ax25/af_ax25.cif ((copy = skb_clone(skb, GFP_ATOMIC)) == NULL)
skb377net/ax25/af_ax25.csk->data_ready(sk, skb->len);
skb405net/ax25/af_ax25.cstruct sk_buff *skb;
skb417net/ax25/af_ax25.cwhile ((skb = skb_dequeue(&ax25->sk->receive_queue)) != NULL) {
skb418net/ax25/af_ax25.cif (skb->sk != ax25->sk) {      /* A pending connection */
skb419net/ax25/af_ax25.cskb->sk->dead = 1;  /* Queue the unaccepted socket for death */
skb420net/ax25/af_ax25.cax25_set_timer(skb->sk->ax25);
skb421net/ax25/af_ax25.cskb->sk->ax25->state = AX25_STATE_0;
skb424net/ax25/af_ax25.ckfree_skb(skb, FREE_READ);
skb629net/ax25/af_ax25.cint ax25_send_frame(struct sk_buff *skb, ax25_address *src, ax25_address *dest,
skb634net/ax25/af_ax25.cif (skb == NULL)
skb645net/ax25/af_ax25.cax25_output(ax25, skb);
skb679net/ax25/af_ax25.cax25_output(ax25, skb);
skb1352net/ax25/af_ax25.cstruct sk_buff *skb;
skb1373net/ax25/af_ax25.cif ((skb = skb_dequeue(&sk->receive_queue)) == NULL) {
skb1384net/ax25/af_ax25.c} while (skb == NULL);
skb1386net/ax25/af_ax25.cnewsk = skb->sk;
skb1391net/ax25/af_ax25.cskb->sk = NULL;
skb1392net/ax25/af_ax25.ckfree_skb(skb, FREE_READ);
skb1434net/ax25/af_ax25.cstatic int ax25_rcv(struct sk_buff *skb, struct device *dev, ax25_address *dev_addr, struct packet_type *ptype)
skb1450net/ax25/af_ax25.cskb->h.raw = skb->data;
skb1454net/ax25/af_ax25.cif(call_in_firewall(PF_AX25, skb, skb->h.raw)!=FW_ACCEPT)
skb1456net/ax25/af_ax25.ckfree_skb(skb, FREE_READ);
skb1465net/ax25/af_ax25.cif (ax25_parse_addr(skb->data, skb->len, &src, &dest, &dp, &type, &dama) == NULL) {
skb1466net/ax25/af_ax25.ckfree_skb(skb, FREE_READ);
skb1501net/ax25/af_ax25.ckfree_skb(skb, FREE_READ);
skb1508net/ax25/af_ax25.ckfree_skb(skb, FREE_READ);
skb1512net/ax25/af_ax25.cbuild_ax25_addr(skb->data, &src, &dest, &dp, type, MODULUS);
skb1514net/ax25/af_ax25.cif(call_fw_firewall(PF_AX25, skb,skb->data)!=FW_ACCEPT)
skb1516net/ax25/af_ax25.ckfree_skb(skb, FREE_READ);
skb1520net/ax25/af_ax25.cskb->arp = 1;
skb1521net/ax25/af_ax25.cax25_queue_xmit(skb, dev_out, SOPRI_NORMAL);
skb1523net/ax25/af_ax25.ckfree_skb(skb, FREE_READ);
skb1532net/ax25/af_ax25.cskb_pull(skb, size_ax25_addr(&dp));
skb1544net/ax25/af_ax25.cif ((*skb->data & ~0x10) == LAPB_UI) {  /* UI frame - bypass LAPB processing */
skb1545net/ax25/af_ax25.cskb->h.raw = skb->data + 2;    /* skip control and pid */
skb1548net/ax25/af_ax25.cax25_send_to_raw(raw, skb, skb->data[1]);
skb1551net/ax25/af_ax25.ckfree_skb(skb, FREE_READ);
skb1556net/ax25/af_ax25.cswitch (skb->data[1]) {
skb1559net/ax25/af_ax25.cskb_pull(skb,2);    /* drop PID/CTRL */
skb1561net/ax25/af_ax25.cip_rcv(skb, dev, ptype);  /* Note ptype here is the wrong one, fix me later */
skb1565net/ax25/af_ax25.cskb_pull(skb,2);
skb1566net/ax25/af_ax25.carp_rcv(skb, dev, ptype);  /* Note ptype here is wrong... */
skb1573net/ax25/af_ax25.ckfree_skb(skb, FREE_READ);
skb1578net/ax25/af_ax25.cskb_pull(skb, 2);
skb1579net/ax25/af_ax25.cskb_queue_tail(&sk->receive_queue, skb);
skb1580net/ax25/af_ax25.cskb->sk = sk;
skb1581net/ax25/af_ax25.csk->rmem_alloc += skb->truesize;
skb1583net/ax25/af_ax25.csk->data_ready(sk, skb->len);
skb1586net/ax25/af_ax25.ckfree_skb(skb, FREE_READ);
skb1591net/ax25/af_ax25.ckfree_skb(skb, FREE_READ);  /* Will scan SOCK_AX25 RAW sockets */
skb1604net/ax25/af_ax25.ckfree_skb(skb, FREE_READ);
skb1618net/ax25/af_ax25.cif (ax25_process_rx_frame(ax25, skb, type, dama) == 0)
skb1619net/ax25/af_ax25.ckfree_skb(skb, FREE_READ);
skb1628net/ax25/af_ax25.cif ((*skb->data & ~PF) != SABM && (*skb->data & ~PF) != SABME) {
skb1633net/ax25/af_ax25.cif ((*skb->data & ~PF) != DM && mine)
skb1636net/ax25/af_ax25.ckfree_skb(skb, FREE_READ);
skb1647net/ax25/af_ax25.ckfree_skb(skb, FREE_READ);
skb1653net/ax25/af_ax25.cskb_queue_head(&sk->receive_queue, skb);
skb1655net/ax25/af_ax25.cskb->sk     = make;
skb1663net/ax25/af_ax25.ckfree_skb(skb, FREE_READ);
skb1669net/ax25/af_ax25.ckfree_skb(skb, FREE_READ);
skb1678net/ax25/af_ax25.ckfree_skb(skb, FREE_READ);
skb1690net/ax25/af_ax25.ckfree_skb(skb, FREE_READ);
skb1705net/ax25/af_ax25.cif ((*skb->data & ~PF) == SABME) {
skb1729net/ax25/af_ax25.csk->data_ready(sk, skb->len );
skb1731net/ax25/af_ax25.ckfree_skb(skb, FREE_READ);
skb1740net/ax25/af_ax25.cstatic int kiss_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *ptype)
skb1742net/ax25/af_ax25.cskb->sk = NULL;    /* Initially we don't know who its for */
skb1744net/ax25/af_ax25.cif ((*skb->data & 0x0F) != 0) {
skb1745net/ax25/af_ax25.ckfree_skb(skb, FREE_READ);  /* Not a KISS data frame */
skb1749net/ax25/af_ax25.cskb_pull(skb, AX25_KISS_HEADER_LEN);  /* Remove the KISS byte */
skb1751net/ax25/af_ax25.creturn ax25_rcv(skb, dev, (ax25_address *)dev->dev_addr, ptype);
skb1758net/ax25/af_ax25.cstatic int bpq_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *ptype)
skb1763net/ax25/af_ax25.cskb->sk = NULL;    /* Initially we don't know who its for */
skb1766net/ax25/af_ax25.ckfree_skb(skb, FREE_READ);  /* We have no port callsign */
skb1770net/ax25/af_ax25.clen = skb->data[0] + skb->data[1] * 256 - 5;
skb1772net/ax25/af_ax25.cskb_pull(skb, 2);  /* Remove the length bytes */
skb1773net/ax25/af_ax25.cskb_trim(skb, len);  /* Set the length of the data */
skb1775net/ax25/af_ax25.creturn ax25_rcv(skb, dev, port_call, ptype);
skb1785net/ax25/af_ax25.cstruct sk_buff *skb;
skb1857net/ax25/af_ax25.cif ((skb = sock_alloc_send_skb(sk, size, 0, 0, &err)) == NULL)
skb1860net/ax25/af_ax25.cskb->sk   = sk;
skb1861net/ax25/af_ax25.cskb->free = 1;
skb1862net/ax25/af_ax25.cskb->arp  = 1;
skb1864net/ax25/af_ax25.cskb_reserve(skb, size - len);
skb1870net/ax25/af_ax25.cmemcpy_fromiovec(skb_put(skb, len), msg->msg_iov, len);
skb1873net/ax25/af_ax25.casmptr  = skb_push(skb, 1);
skb1882net/ax25/af_ax25.ckfree_skb(skb, FREE_WRITE);
skb1886net/ax25/af_ax25.cax25_output(sk->ax25, skb);  /* Shove it onto the queue and kick */
skb1890net/ax25/af_ax25.casmptr = skb_push(skb, 1 + size_ax25_addr(dp));
skb1904net/ax25/af_ax25.cskb->h.raw = asmptr;
skb1907net/ax25/af_ax25.cprintk("base=%p pos=%p\n", skb->data, asmptr);
skb1912net/ax25/af_ax25.cax25_queue_xmit(skb, sk->ax25->device, SOPRI_NORMAL);
skb1924net/ax25/af_ax25.cstruct sk_buff *skb;
skb1943net/ax25/af_ax25.cif ((skb = skb_recv_datagram(sk, flags, noblock, &er)) == NULL)
skb1947net/ax25/af_ax25.clength = skb->len + (skb->data - skb->h.raw);
skb1950net/ax25/af_ax25.cskb_pull(skb, 1);    /* Remove PID */
skb1951net/ax25/af_ax25.clength     = skb->len;
skb1952net/ax25/af_ax25.cskb->h.raw = skb->data;
skb1956net/ax25/af_ax25.cskb_copy_datagram_iovec(skb, 0, msg->msg_iov, copied);
skb1967net/ax25/af_ax25.cax25_parse_addr(skb->data, skb->len, NULL, &dest, &digi, NULL, &dama);
skb1991net/ax25/af_ax25.cskb_free_datagram(skb);
skb2027net/ax25/af_ax25.cstruct sk_buff *skb;
skb2029net/ax25/af_ax25.cif ((skb = skb_peek(&sk->receive_queue)) != NULL)
skb2030net/ax25/af_ax25.camount = skb->len;
skb2271net/ax25/af_ax25.cvoid ax25_queue_xmit(struct sk_buff *skb, struct device *dev, int pri)
skb2277net/ax25/af_ax25.cif(call_out_firewall(PF_AX25, skb, skb->data)!=FW_ACCEPT)
skb2279net/ax25/af_ax25.ckfree_skb(skb, FREE_WRITE);
skb2284net/ax25/af_ax25.cskb->protocol = htons (ETH_P_AX25);
skb2291net/ax25/af_ax25.cif(skb_headroom(skb) < AX25_BPQ_HEADER_LEN)
skb2294net/ax25/af_ax25.cskb->free = 1;
skb2295net/ax25/af_ax25.ckfree_skb(skb, FREE_WRITE);
skb2299net/ax25/af_ax25.csize = skb->len;
skb2301net/ax25/af_ax25.cptr = skb_push(skb, 2);
skb2306net/ax25/af_ax25.cdev->hard_header(skb, dev, ETH_P_BPQ, bcast_addr, NULL, 0);
skb2313net/ax25/af_ax25.cwas_locked = skb_device_locked(skb);
skb2314net/ax25/af_ax25.cdev_queue_xmit(skb, dev, pri);
skb2315net/ax25/af_ax25.cif (was_locked) skb_device_unlock(skb);
skb2321net/ax25/af_ax25.cptr = skb_push(skb, 1);
skb2330net/ax25/af_ax25.cwas_locked = skb_device_locked(skb);
skb2331net/ax25/af_ax25.cdev_queue_xmit(skb, dev, pri);
skb2332net/ax25/af_ax25.cif (was_locked) skb_device_unlock(skb);
skb2345net/ax25/af_ax25.cint ax25_encapsulate(struct sk_buff *skb, struct device *dev, unsigned short type, void *daddr,
skb2349net/ax25/af_ax25.cunsigned char *buff = skb_push(skb, AX25_HEADER_LEN);
skb2394net/ax25/af_ax25.cint ax25_rebuild_header(unsigned char *bp, struct device *dev, unsigned long dest, struct sk_buff *skb)
skb2398net/ax25/af_ax25.cif (arp_find(bp + 1, dest, dev, dev->pa_addr, skb))
skb2407net/ax25/af_ax25.cskb_pull(skb, AX25_HEADER_LEN - 1);  /* Keep PID */
skb2413net/ax25/af_ax25.cif ( !(ax25cmp((ax25_address *) (bp + 8), (ax25_address *) (skb->data + 8)) ||
skb2414net/ax25/af_ax25.cax25cmp((ax25_address *) (bp + 1), (ax25_address *) (skb->data + 1)) ) )
skb2417net/ax25/af_ax25.cskb_pull(skb, AX25_HEADER_LEN);
skb2419net/ax25/af_ax25.cif (!*skb->data)
skb2422net/ax25/af_ax25.cax25_send_frame(skb, (ax25_address *)(bp + 8), (ax25_address *)(bp + 1), NULL, dev);
skb66net/ax25/ax25_in.cstatic int ax25_rx_fragment(ax25_cb *ax25, struct sk_buff *skb)
skb72net/ax25/ax25_in.cif (!(*skb->data & SEG_FIRST)) {
skb73net/ax25/ax25_in.cif ((ax25->fragno - 1) == (*skb->data & SEG_REM)) {
skb74net/ax25/ax25_in.cax25->fragno = *skb->data & SEG_REM;
skb75net/ax25/ax25_in.cskb_pull(skb, 1);
skb76net/ax25/ax25_in.cax25->fraglen += skb->len;
skb77net/ax25/ax25_in.cskb_queue_tail(&ax25->frag_queue, skb);
skb116net/ax25/ax25_in.cif (*skb->data & SEG_FIRST) {
skb117net/ax25/ax25_in.cax25->fragno = *skb->data & SEG_REM;
skb118net/ax25/ax25_in.cskb_pull(skb, 1);
skb119net/ax25/ax25_in.cax25->fraglen = skb->len;
skb120net/ax25/ax25_in.cskb_queue_tail(&ax25->frag_queue, skb);
skb132net/ax25/ax25_in.cstatic int ax25_rx_iframe(ax25_cb *ax25, struct sk_buff *skb)
skb137net/ax25/ax25_in.cif (skb == NULL) return 0;
skb139net/ax25/ax25_in.cpid = *skb->data;
skb145net/ax25/ax25_in.cskb_pull(skb, 1);  /* Remove PID */
skb146net/ax25/ax25_in.cqueued = nr_route_frame(skb, ax25);
skb152net/ax25/ax25_in.cskb_pull(skb, 1);  /* Remove PID */
skb153net/ax25/ax25_in.cskb->h.raw = skb->data;
skb155net/ax25/ax25_in.cip_rcv(skb, ax25->device, NULL);  /* Wrong ptype */
skb161net/ax25/ax25_in.cskb_pull(skb, 1);  /* Remove PID */
skb162net/ax25/ax25_in.cqueued = ax25_rx_fragment(ax25, skb);
skb167net/ax25/ax25_in.cif (sock_queue_rcv_skb(ax25->sk, skb) == 0) {
skb184net/ax25/ax25_in.cstatic int ax25_state1_machine(ax25_cb *ax25, struct sk_buff *skb, int frametype, int pf, int type, int dama)
skb259net/ax25/ax25_in.cstatic int ax25_state2_machine(ax25_cb *ax25, struct sk_buff *skb, int frametype, int pf, int type)
skb345net/ax25/ax25_in.cstatic int ax25_state3_machine(ax25_cb *ax25, struct sk_buff *skb, int frametype, int ns, int nr, int pf, int type, int dama)
skb478net/ax25/ax25_in.cqueued = ax25_rx_iframe(ax25, skb);
skb540net/ax25/ax25_in.cstatic int ax25_state4_machine(ax25_cb *ax25, struct sk_buff *skb, int frametype, int ns, int nr, int pf, int type, int dama)
skb729net/ax25/ax25_in.cqueued = ax25_rx_iframe(ax25, skb);
skb789net/ax25/ax25_in.cint ax25_process_rx_frame(ax25_cb *ax25, struct sk_buff *skb, int type, int dama)
skb804net/ax25/ax25_in.cframetype = ax25_decode(ax25, skb, &ns, &nr, &pf);
skb808net/ax25/ax25_in.cqueued = ax25_state1_machine(ax25, skb, frametype, pf, type, dama);
skb811net/ax25/ax25_in.cqueued = ax25_state2_machine(ax25, skb, frametype, pf, type);
skb814net/ax25/ax25_in.cqueued = ax25_state3_machine(ax25, skb, frametype, ns, nr, pf, type, dama);
skb817net/ax25/ax25_in.cqueued = ax25_state4_machine(ax25, skb, frametype, ns, nr, pf, type, dama);
skb57net/ax25/ax25_out.cvoid ax25_output(ax25_cb *ax25, struct sk_buff *skb)
skb65net/ax25/ax25_out.cif ((skb->len - 1) > mtu) {
skb68net/ax25/ax25_out.cfragno = skb->len / mtu;
skb69net/ax25/ax25_out.cif (skb->len % mtu == 0) fragno--;
skb71net/ax25/ax25_out.cfrontlen = skb_headroom(skb);  /* Address space + CTRL */
skb73net/ax25/ax25_out.cwhile (skb->len > 0) {
skb74net/ax25/ax25_out.cif (skb->sk != NULL) {
skb75net/ax25/ax25_out.cif ((skbn = sock_alloc_send_skb(skb->sk, mtu + 2 + frontlen, 0, 0, &err)) == NULL)
skb82net/ax25/ax25_out.cskbn->sk   = skb->sk;
skb88net/ax25/ax25_out.clen = (mtu > skb->len) ? skb->len : mtu;
skb90net/ax25/ax25_out.cmemcpy(skb_put(skbn, len), skb->data, len);
skb91net/ax25/ax25_out.cskb_pull(skb, len);
skb106net/ax25/ax25_out.cskb->free = 1;
skb107net/ax25/ax25_out.ckfree_skb(skb, FREE_WRITE);
skb109net/ax25/ax25_out.cskb_queue_tail(&ax25->write_queue, skb);    /* Throw it on the queue */
skb123net/ax25/ax25_out.cstatic void ax25_send_iframe(ax25_cb *ax25, struct sk_buff *skb, int poll_bit)
skb127net/ax25/ax25_out.cif (skb == NULL)
skb131net/ax25/ax25_out.cframe = skb_push(skb, 1);
skb138net/ax25/ax25_out.cframe = skb_push(skb, 2);
skb146net/ax25/ax25_out.cax25_transmit_buffer(ax25, skb, C_COMMAND);  
skb151net/ax25/ax25_out.cstruct sk_buff *skb, *skbn;
skb175net/ax25/ax25_out.cskb  = skb_dequeue(&ax25->write_queue);
skb178net/ax25/ax25_out.cif ((skbn = skb_clone(skb, GFP_ATOMIC)) == NULL) {
skb179net/ax25/ax25_out.cskb_queue_head(&ax25->write_queue, skb);
skb201net/ax25/ax25_out.cskb_queue_tail(&ax25->ack_queue, skb);
skb205net/ax25/ax25_out.c} while (!last && (skb = skb_dequeue(&ax25->write_queue)) != NULL);
skb218net/ax25/ax25_out.cvoid ax25_transmit_buffer(ax25_cb *ax25, struct sk_buff *skb, int type)
skb233net/ax25/ax25_out.cif (skb_headroom(skb) < size_ax25_addr(ax25->digipeat)) {
skb235net/ax25/ax25_out.cskb->free = 1;
skb236net/ax25/ax25_out.ckfree_skb(skb, FREE_WRITE);
skb240net/ax25/ax25_out.cptr = skb_push(skb, size_ax25_addr(ax25->digipeat));
skb243net/ax25/ax25_out.cskb->arp = 1;
skb245net/ax25/ax25_out.cax25_queue_xmit(skb, ax25->device, SOPRI_NORMAL);
skb60net/ax25/ax25_subr.cstruct sk_buff *skb;
skb62net/ax25/ax25_subr.cwhile ((skb = skb_dequeue(&ax25->write_queue)) != NULL) {
skb63net/ax25/ax25_subr.cskb->free = 1;
skb64net/ax25/ax25_subr.ckfree_skb(skb, FREE_WRITE);
skb67net/ax25/ax25_subr.cwhile ((skb = skb_dequeue(&ax25->ack_queue)) != NULL) {
skb68net/ax25/ax25_subr.cskb->free = 1;
skb69net/ax25/ax25_subr.ckfree_skb(skb, FREE_WRITE);
skb72net/ax25/ax25_subr.cwhile ((skb = skb_dequeue(&ax25->reseq_queue)) != NULL) {
skb73net/ax25/ax25_subr.ckfree_skb(skb, FREE_READ);
skb76net/ax25/ax25_subr.cwhile ((skb = skb_dequeue(&ax25->frag_queue)) != NULL) {
skb77net/ax25/ax25_subr.ckfree_skb(skb, FREE_READ);
skb88net/ax25/ax25_subr.cstruct sk_buff *skb;
skb95net/ax25/ax25_subr.cskb = skb_dequeue(&ax25->ack_queue);
skb96net/ax25/ax25_subr.cskb->free = 1;
skb97net/ax25/ax25_subr.ckfree_skb(skb, FREE_WRITE);
skb111net/ax25/ax25_subr.cstruct sk_buff *skb, *skb_prev = NULL;
skb118net/ax25/ax25_subr.cwhile ((skb = skb_dequeue(&ax25->ack_queue)) != NULL) {
skb120net/ax25/ax25_subr.cskb_queue_head(&ax25->write_queue, skb);
skb122net/ax25/ax25_subr.cskb_append(skb_prev, skb);
skb123net/ax25/ax25_subr.cskb_prev = skb;
skb149net/ax25/ax25_subr.cint ax25_decode(ax25_cb *ax25, struct sk_buff *skb, int *ns, int *nr, int *pf)
skb154net/ax25/ax25_subr.cframe = skb->data;
skb171net/ax25/ax25_subr.cskb_pull(skb, 1);
skb178net/ax25/ax25_subr.cskb_pull(skb, 2);
skb183net/ax25/ax25_subr.cskb_pull(skb, 2);
skb187net/ax25/ax25_subr.cskb_pull(skb, 1);
skb201net/ax25/ax25_subr.cstruct sk_buff *skb;
skb208net/ax25/ax25_subr.cif ((skb = alloc_skb(AX25_BPQ_HEADER_LEN + size_ax25_addr(ax25->digipeat) + 2, GFP_ATOMIC)) == NULL)
skb211net/ax25/ax25_subr.cskb_reserve(skb, AX25_BPQ_HEADER_LEN + size_ax25_addr(ax25->digipeat));
skb214net/ax25/ax25_subr.cskb->sk = ax25->sk;
skb215net/ax25/ax25_subr.cax25->sk->wmem_alloc += skb->truesize;
skb220net/ax25/ax25_subr.cdptr = skb_put(skb, 1);
skb227net/ax25/ax25_subr.cdptr = skb_put(skb, 1);
skb231net/ax25/ax25_subr.cdptr = skb_put(skb, 2);
skb238net/ax25/ax25_subr.cskb->free = 1;
skb240net/ax25/ax25_subr.cax25_transmit_buffer(ax25, skb, type);
skb250net/ax25/ax25_subr.cstruct sk_buff *skb;
skb257net/ax25/ax25_subr.cif ((skb = alloc_skb(AX25_BPQ_HEADER_LEN + size_ax25_addr(digi) + 1, GFP_ATOMIC)) == NULL)
skb260net/ax25/ax25_subr.cskb_reserve(skb, AX25_BPQ_HEADER_LEN + size_ax25_addr(digi));
skb264net/ax25/ax25_subr.cdptr = skb_put(skb, 1);
skb265net/ax25/ax25_subr.cskb->sk = NULL;
skb273net/ax25/ax25_subr.cdptr  = skb_push(skb, size_ax25_addr(digi));
skb276net/ax25/ax25_subr.cskb->arp  = 1;
skb277net/ax25/ax25_subr.cskb->free = 1;
skb279net/ax25/ax25_subr.cax25_queue_xmit(skb, dev, SOPRI_NORMAL);
skb473net/ax25/ax25_subr.cstruct sk_buff *skb;
skb479net/ax25/ax25_subr.cif ((skb = alloc_skb(2, GFP_ATOMIC)) == NULL)
skb482net/ax25/ax25_subr.cskb->free = 1;
skb483net/ax25/ax25_subr.cskb->arp = 1;
skb487net/ax25/ax25_subr.cskb->sk = ax25->sk;
skb488net/ax25/ax25_subr.cax25->sk->wmem_alloc += skb->truesize;
skb491net/ax25/ax25_subr.cskb->protocol = htons(ETH_P_AX25);
skb493net/ax25/ax25_subr.cp = skb_put(skb, 2);
skb498net/ax25/ax25_subr.cdev_queue_xmit(skb, ax25->device, SOPRI_NORMAL);  
skb54net/core/datagram.cstruct sk_buff *skb;
skb125net/core/datagram.cskb=skb_dequeue(&sk->receive_queue);
skb126net/core/datagram.cif(skb!=NULL)
skb127net/core/datagram.cskb->users++;
skb134net/core/datagram.cskb=skb_peek(&sk->receive_queue);
skb135net/core/datagram.cif(skb!=NULL)
skb136net/core/datagram.cskb->users++;
skb138net/core/datagram.cif(skb==NULL)  /* shouldn't happen but .. */
skb141net/core/datagram.creturn skb;
skb144net/core/datagram.cvoid skb_free_datagram(struct sk_buff *skb)
skb150net/core/datagram.cskb->users--;
skb151net/core/datagram.cif(skb->users>0)
skb157net/core/datagram.cif(!skb->next && !skb->prev)  /* Been dequeued by someone - ie it's read */
skb158net/core/datagram.ckfree_skb(skb,FREE_READ);
skb166net/core/datagram.cvoid skb_copy_datagram(struct sk_buff *skb, int offset, char *to, int size)
skb168net/core/datagram.cmemcpy_tofs(to,skb->h.raw+offset,size);
skb176net/core/datagram.cvoid skb_copy_datagram_iovec(struct sk_buff *skb, int offset, struct iovec *to, int size)
skb178net/core/datagram.cmemcpy_toiovec(to,skb->h.raw+offset,size);
skb296net/core/dev.cstruct sk_buff *skb;
skb297net/core/dev.cwhile((skb=skb_dequeue(&dev->buffs[ct]))!=NULL)
skb298net/core/dev.cif(skb->free)
skb299net/core/dev.ckfree_skb(skb,FREE_WRITE);
skb329net/core/dev.cvoid dev_queue_xmit(struct sk_buff *skb, struct device *dev, int pri)
skb337net/core/dev.cif(pri>=0 && !skb_device_locked(skb))
skb338net/core/dev.cskb_device_lock(skb);  /* Shove a lock on the frame */
skb340net/core/dev.cIS_SKB(skb);
skb342net/core/dev.cskb->dev = dev;
skb369net/core/dev.cif (!skb->arp && dev->rebuild_header(skb->data, dev, skb->raddr, skb)) {
skb383net/core/dev.cskb->dev = dev = net_alias_main_dev(dev);
skb393net/core/dev.cdev_kfree_skb(skb, FREE_WRITE);
skb397net/core/dev.cskb_device_unlock(skb);    /* Buffer is on the device queue and can be freed safely */
skb398net/core/dev.c__skb_queue_tail(list, skb);
skb399net/core/dev.cskb = __skb_dequeue(list);
skb400net/core/dev.cskb_device_lock(skb);    /* New buffer needs locking down */
skb407net/core/dev.cskb->stamp=xtime;
skb414net/core/dev.c((struct sock *)ptype->data != skb->sk))
skb417net/core/dev.cif ((skb2 = skb_clone(skb, GFP_ATOMIC)) == NULL)
skb421net/core/dev.cptype->func(skb2, skb->dev, ptype);
skb427net/core/dev.cif (dev->hard_start_xmit(skb, dev) == 0) {
skb441net/core/dev.cskb_device_unlock(skb);
skb442net/core/dev.c__skb_queue_head(list,skb);
skb452net/core/dev.cvoid netif_rx(struct sk_buff *skb)
skb462net/core/dev.cskb->sk = NULL;
skb463net/core/dev.cskb->free = 1;
skb464net/core/dev.cif(skb->stamp.tv_sec==0)
skb465net/core/dev.cskb->stamp = xtime;
skb478net/core/dev.ckfree_skb(skb, FREE_READ);
skb486net/core/dev.cIS_SKB(skb);
skb488net/core/dev.cskb_queue_tail(&backlog,skb);
skb553net/core/dev.cstruct sk_buff *skb;
skb586net/core/dev.cwhile((skb=__skb_dequeue(&backlog))!=NULL)
skb602net/core/dev.cskb->h.raw = skb->data;
skb608net/core/dev.ctype = skb->protocol;
skb620net/core/dev.cstruct sk_buff *skb2=skb_clone(skb, GFP_ATOMIC);
skb622net/core/dev.cpt_prev->func(skb2,skb->dev, pt_prev);
skb629net/core/dev.cif (ptype->type == type && (!ptype->dev || ptype->dev==skb->dev))
skb639net/core/dev.cskb2=skb_clone(skb, GFP_ATOMIC);
skb647net/core/dev.cpt_prev->func(skb2, skb->dev, pt_prev);
skb659net/core/dev.cpt_prev->func(skb, skb->dev, pt_prev);
skb665net/core/dev.ckfree_skb(skb, FREE_WRITE);
skb722net/core/dev.cstruct sk_buff *skb = skb_peek(head);
skb724net/core/dev.cif (skb) {
skb725net/core/dev.c__skb_unlink(skb, head);
skb729net/core/dev.cskb_device_lock(skb);
skb735net/core/dev.cdev_queue_xmit(skb,dev,-i - 1);
skb96net/core/firewall.cint call_fw_firewall(int pf, struct sk_buff *skb, void *phdr)
skb102net/core/firewall.cint rc=fw->fw_forward(fw,pf,skb,phdr);
skb114net/core/firewall.cint call_in_firewall(int pf, struct sk_buff *skb, void *phdr)
skb120net/core/firewall.cint rc=fw->fw_input(fw,pf,skb,phdr);
skb128net/core/firewall.cint call_out_firewall(int pf, struct sk_buff *skb, void *phdr)
skb134net/core/firewall.cint rc=fw->fw_output(fw,pf,skb,phdr);
skb63net/core/net_alias.cstatic int net_alias_hard_start_xmit(struct sk_buff *skb, struct device *dev);
skb222net/core/net_alias.cnet_alias_hard_start_xmit(struct sk_buff *skb, struct device *dev)
skb225net/core/net_alias.cdev_kfree_skb(skb, FREE_WRITE);
skb79net/core/skbuff.cint skb_check(struct sk_buff *skb, int head, int line, char *file)
skb82net/core/skbuff.cif (skb->magic_debug_cookie != SK_HEAD_SKB) {
skb87net/core/skbuff.cif (!skb->next || !skb->prev) {
skb91net/core/skbuff.cif (skb->next->magic_debug_cookie != SK_HEAD_SKB
skb92net/core/skbuff.c&& skb->next->magic_debug_cookie != SK_GOOD_SKB) {
skb97net/core/skbuff.cif (skb->prev->magic_debug_cookie != SK_HEAD_SKB
skb98net/core/skbuff.c&& skb->prev->magic_debug_cookie != SK_GOOD_SKB) {
skb105net/core/skbuff.cstruct sk_buff *skb2 = skb->next;
skb107net/core/skbuff.cwhile (skb2 != skb && i < 5) {
skb119net/core/skbuff.cif (skb->next != NULL && skb->next->magic_debug_cookie != SK_HEAD_SKB
skb120net/core/skbuff.c&& skb->next->magic_debug_cookie != SK_GOOD_SKB) {
skb125net/core/skbuff.cif (skb->prev != NULL && skb->prev->magic_debug_cookie != SK_HEAD_SKB
skb126net/core/skbuff.c&& skb->prev->magic_debug_cookie != SK_GOOD_SKB) {
skb133net/core/skbuff.cif(skb->magic_debug_cookie==SK_FREED_SKB)
skb138net/core/skbuff.cskb,skb->truesize,skb->free);
skb141net/core/skbuff.cif(skb->magic_debug_cookie!=SK_GOOD_SKB)
skb145net/core/skbuff.cskb,skb->truesize,skb->free);
skb148net/core/skbuff.cif(skb->head>skb->data)
skb152net/core/skbuff.cskb,skb->head,skb->data);
skb155net/core/skbuff.cif(skb->tail>skb->end)
skb159net/core/skbuff.cskb,skb->tail,skb->end);
skb162net/core/skbuff.cif(skb->data>skb->tail)
skb166net/core/skbuff.cskb,skb->data,skb->tail);
skb169net/core/skbuff.cif(skb->tail-skb->data!=skb->len)
skb173net/core/skbuff.cskb,skb->data,skb->end,skb->len);
skb176net/core/skbuff.cif((unsigned long) skb->end > (unsigned long) skb)
skb180net/core/skbuff.cskb,skb->end);
skb352net/core/skbuff.cvoid skb_unlink(struct sk_buff *skb)
skb359net/core/skbuff.cIS_SKB(skb);
skb361net/core/skbuff.cif(skb->list)
skb363net/core/skbuff.cskb->list->qlen--;
skb364net/core/skbuff.cskb->next->prev = skb->prev;
skb365net/core/skbuff.cskb->prev->next = skb->next;
skb366net/core/skbuff.cskb->next = NULL;
skb367net/core/skbuff.cskb->prev = NULL;
skb368net/core/skbuff.cskb->list = NULL;
skb381net/core/skbuff.cunsigned char *skb_put(struct sk_buff *skb, int len)
skb383net/core/skbuff.cunsigned char *tmp=skb->tail;
skb384net/core/skbuff.cIS_SKB(skb);
skb385net/core/skbuff.cskb->tail+=len;
skb386net/core/skbuff.cskb->len+=len;
skb387net/core/skbuff.cIS_SKB(skb);
skb388net/core/skbuff.cif(skb->tail>skb->end)
skb393net/core/skbuff.cunsigned char *skb_push(struct sk_buff *skb, int len)
skb395net/core/skbuff.cIS_SKB(skb);
skb396net/core/skbuff.cskb->data-=len;
skb397net/core/skbuff.cskb->len+=len;
skb398net/core/skbuff.cIS_SKB(skb);
skb399net/core/skbuff.cif(skb->data<skb->head)
skb401net/core/skbuff.creturn skb->data;
skb404net/core/skbuff.cunsigned char * skb_pull(struct sk_buff *skb, int len)
skb406net/core/skbuff.cIS_SKB(skb);
skb407net/core/skbuff.cif(len>skb->len)
skb409net/core/skbuff.cskb->data+=len;
skb410net/core/skbuff.cskb->len-=len;
skb411net/core/skbuff.creturn skb->data;
skb414net/core/skbuff.cint skb_headroom(struct sk_buff *skb)
skb416net/core/skbuff.cIS_SKB(skb);
skb417net/core/skbuff.creturn skb->data-skb->head;
skb420net/core/skbuff.cint skb_tailroom(struct sk_buff *skb)
skb422net/core/skbuff.cIS_SKB(skb);
skb423net/core/skbuff.creturn skb->end-skb->tail;
skb426net/core/skbuff.cvoid skb_reserve(struct sk_buff *skb, int len)
skb428net/core/skbuff.cIS_SKB(skb);
skb429net/core/skbuff.cskb->data+=len;
skb430net/core/skbuff.cskb->tail+=len;
skb431net/core/skbuff.cif(skb->tail>skb->end)
skb433net/core/skbuff.cif(skb->data<skb->head)
skb435net/core/skbuff.cIS_SKB(skb);
skb438net/core/skbuff.cvoid skb_trim(struct sk_buff *skb, int len)
skb440net/core/skbuff.cIS_SKB(skb);
skb441net/core/skbuff.cif(skb->len>len)
skb443net/core/skbuff.cskb->len=len;
skb444net/core/skbuff.cskb->tail=skb->data+len;
skb457net/core/skbuff.cvoid kfree_skb(struct sk_buff *skb, int rw)
skb459net/core/skbuff.cif (skb == NULL)
skb466net/core/skbuff.cIS_SKB(skb);
skb468net/core/skbuff.cif (skb->lock)
skb470net/core/skbuff.cskb->free = 3;    /* Free when unlocked */
skb474net/core/skbuff.cif (skb->free == 2)
skb477net/core/skbuff.cif (skb->list)
skb481net/core/skbuff.cif(skb->destructor)
skb482net/core/skbuff.cskb->destructor(skb);
skb483net/core/skbuff.cif (skb->sk)
skb485net/core/skbuff.cif(skb->sk->prot!=NULL)
skb488net/core/skbuff.csock_rfree(skb->sk, skb);
skb490net/core/skbuff.csock_wfree(skb->sk, skb);
skb500net/core/skbuff.cskb->sk->rmem_alloc-=skb->truesize;
skb502net/core/skbuff.cskb->sk->wmem_alloc-=skb->truesize;
skb504net/core/skbuff.cif(!skb->sk->dead)
skb505net/core/skbuff.cskb->sk->write_space(skb->sk);
skb506net/core/skbuff.ckfree_skbmem(skb);
skb510net/core/skbuff.ckfree_skbmem(skb);
skb519net/core/skbuff.cstruct sk_buff *skb;
skb547net/core/skbuff.cif(skb->magic_debug_cookie == SK_GOOD_SKB)
skb548net/core/skbuff.cprintk("Kernel kmalloc handed us an existing skb (%p)\n",skb);
skb559net/core/skbuff.cskb=(struct sk_buff *)(bptr+size)-1;
skb561net/core/skbuff.cskb->count = 1;    /* only one reference to this */
skb562net/core/skbuff.cskb->data_skb = NULL;  /* and we're our own data skb */
skb564net/core/skbuff.cskb->free = 2;  /* Invalid so we pick up forgetful users */
skb565net/core/skbuff.cskb->lock = 0;
skb566net/core/skbuff.cskb->pkt_type = PACKET_HOST;  /* Default type */
skb567net/core/skbuff.cskb->prev = skb->next = skb->link3 = NULL;
skb568net/core/skbuff.cskb->list = NULL;
skb569net/core/skbuff.cskb->sk = NULL;
skb570net/core/skbuff.cskb->truesize=size;
skb571net/core/skbuff.cskb->localroute=0;
skb572net/core/skbuff.cskb->stamp.tv_sec=0;  /* No idea about time */
skb573net/core/skbuff.cskb->localroute = 0;
skb574net/core/skbuff.cskb->ip_summed = 0;
skb575net/core/skbuff.cmemset(skb->proto_priv, 0, sizeof(skb->proto_priv));
skb578net/core/skbuff.cskb->magic_debug_cookie = SK_GOOD_SKB;
skb580net/core/skbuff.cskb->users = 0;
skb582net/core/skbuff.cskb->head=bptr;
skb583net/core/skbuff.cskb->data=bptr;
skb584net/core/skbuff.cskb->tail=bptr;
skb585net/core/skbuff.cskb->end=bptr+len;
skb586net/core/skbuff.cskb->len=0;
skb587net/core/skbuff.cskb->destructor=NULL;
skb588net/core/skbuff.creturn skb;
skb595net/core/skbuff.cstatic inline void __kfree_skbmem(struct sk_buff *skb)
skb598net/core/skbuff.cif (--skb->count <= 0) {
skb599net/core/skbuff.ckfree(skb->head);
skb604net/core/skbuff.cvoid kfree_skbmem(struct sk_buff *skb)
skb607net/core/skbuff.cvoid * addr = skb->head;
skb612net/core/skbuff.cif (--skb->count <= 0) {
skb614net/core/skbuff.cif (skb->data_skb) {
skb615net/core/skbuff.caddr = skb;
skb616net/core/skbuff.c__kfree_skbmem(skb->data_skb);
skb629net/core/skbuff.cstruct sk_buff *skb_clone(struct sk_buff *skb, int priority)
skb634net/core/skbuff.cIS_SKB(skb);
skb638net/core/skbuff.cmemcpy(n, skb, sizeof(*n));
skb640net/core/skbuff.cif (skb->data_skb)
skb641net/core/skbuff.cskb = skb->data_skb;
skb644net/core/skbuff.cskb->count++;
skb648net/core/skbuff.cn->data_skb = skb;
skb664net/core/skbuff.cstruct sk_buff *skb_copy(struct sk_buff *skb, int priority)
skb673net/core/skbuff.cIS_SKB(skb);
skb675net/core/skbuff.cn=alloc_skb(skb->truesize-sizeof(struct sk_buff),priority);
skb683net/core/skbuff.coffset=n->head-skb->head;
skb686net/core/skbuff.cskb_reserve(n,skb->data-skb->head);
skb688net/core/skbuff.cskb_put(n,skb->len);
skb690net/core/skbuff.cmemcpy(n->head,skb->head,skb->end-skb->head);
skb694net/core/skbuff.cn->when=skb->when;
skb695net/core/skbuff.cn->dev=skb->dev;
skb696net/core/skbuff.cn->h.raw=skb->h.raw+offset;
skb697net/core/skbuff.cn->mac.raw=skb->mac.raw+offset;
skb698net/core/skbuff.cn->ip_hdr=(struct iphdr *)(((char *)skb->ip_hdr)+offset);
skb699net/core/skbuff.cn->saddr=skb->saddr;
skb700net/core/skbuff.cn->daddr=skb->daddr;
skb701net/core/skbuff.cn->raddr=skb->raddr;
skb702net/core/skbuff.cn->seq=skb->seq;
skb703net/core/skbuff.cn->end_seq=skb->end_seq;
skb704net/core/skbuff.cn->ack_seq=skb->ack_seq;
skb705net/core/skbuff.cn->acked=skb->acked;
skb706net/core/skbuff.cmemcpy(n->proto_priv, skb->proto_priv, sizeof(skb->proto_priv));
skb707net/core/skbuff.cn->used=skb->used;
skb709net/core/skbuff.cn->arp=skb->arp;
skb713net/core/skbuff.cn->pkt_type=skb->pkt_type;
skb714net/core/skbuff.cn->stamp=skb->stamp;
skb724net/core/skbuff.cvoid skb_device_lock(struct sk_buff *skb)
skb726net/core/skbuff.cif(skb->lock)
skb730net/core/skbuff.cskb->lock++;
skb733net/core/skbuff.cvoid skb_device_unlock(struct sk_buff *skb)
skb735net/core/skbuff.cif(skb->lock==0)
skb737net/core/skbuff.cskb->lock--;
skb738net/core/skbuff.cif(skb->lock==0)
skb742net/core/skbuff.cvoid dev_kfree_skb(struct sk_buff *skb, int mode)
skb748net/core/skbuff.cif(skb->lock==1)
skb751net/core/skbuff.cif (!--skb->lock && (skb->free == 1 || skb->free == 3))
skb754net/core/skbuff.ckfree_skb(skb,mode);
skb762net/core/skbuff.cstruct sk_buff *skb;
skb764net/core/skbuff.cskb = alloc_skb(length+16, GFP_ATOMIC);
skb765net/core/skbuff.cif (skb)
skb766net/core/skbuff.cskb_reserve(skb,16);
skb767net/core/skbuff.creturn skb;
skb770net/core/skbuff.cint skb_device_locked(struct sk_buff *skb)
skb772net/core/skbuff.creturn skb->lock? 1 : 0;
skb405net/core/sock.cvoid sock_wfree(struct sock *sk, struct sk_buff *skb)
skb407net/core/sock.cint s=skb->truesize;
skb409net/core/sock.cIS_SKB(skb);
skb411net/core/sock.ckfree_skbmem(skb);
skb426net/core/sock.cvoid sock_rfree(struct sock *sk, struct sk_buff *skb)
skb428net/core/sock.cint s=skb->truesize;
skb430net/core/sock.cIS_SKB(skb);
skb432net/core/sock.ckfree_skbmem(skb);
skb449net/core/sock.cstruct sk_buff *skb;
skb473net/core/sock.cskb = sock_wmalloc(sk, size, 0, sk->allocation);
skb478net/core/sock.cskb = sock_wmalloc(sk, size, 0 , GFP_BUFFER);
skb479net/core/sock.cif(!skb)
skb480net/core/sock.cskb=sock_wmalloc(sk, fallback, 0, GFP_KERNEL);
skb487net/core/sock.cif(skb==NULL)
skb539net/core/sock.cwhile(skb==NULL);
skb541net/core/sock.creturn skb;
skb548net/core/sock.cstruct sk_buff *skb;
skb568net/core/sock.cwhile ((skb = __skb_dequeue(&sk->back_log)) != NULL) 
skb572net/core/sock.csk->prot->rcv(skb, skb->dev, (struct options*)skb->proto_priv,
skb573net/core/sock.cskb->saddr, skb->len, skb->daddr, 1,
skb89net/ethernet/eth.cint eth_header(struct sk_buff *skb, struct device *dev, unsigned short type,
skb92net/ethernet/eth.cstruct ethhdr *eth = (struct ethhdr *)skb_push(skb,ETH_HLEN);
skb140net/ethernet/eth.cstruct sk_buff *skb)
skb159net/ethernet/eth.creturn arp_find(eth->h_dest, dst, dev, dev->pa_addr, skb)? 1 : 0;
skb172net/ethernet/eth.cunsigned short eth_type_trans(struct sk_buff *skb, struct device *dev)
skb177net/ethernet/eth.cskb->mac.raw=skb->data;
skb178net/ethernet/eth.cskb_pull(skb,dev->hard_header_len);
skb179net/ethernet/eth.ceth= skb->mac.ethernet;
skb184net/ethernet/eth.cskb->pkt_type=PACKET_BROADCAST;
skb186net/ethernet/eth.cskb->pkt_type=PACKET_MULTICAST;
skb197net/ethernet/eth.cskb->pkt_type=PACKET_OTHERHOST;
skb203net/ethernet/eth.crawp = skb->data;
skb9net/ethernet/pe2.cstruct sk_buff *skb, unsigned char *dest_node)
skb11net/ethernet/pe2.cstruct device  *dev = skb->dev;
skb13net/ethernet/pe2.cskb->protocol = htons (ETH_P_IPX);
skb14net/ethernet/pe2.cdev->hard_header(skb, dev, ETH_P_IPX, dest_node, NULL, skb->len);
skb292net/ipv4/af_inet.cstruct sk_buff *skb;
skb310net/ipv4/af_inet.cwhile ((skb = tcp_dequeue_partial(sk)) != NULL) 
skb312net/ipv4/af_inet.cIS_SKB(skb);
skb313net/ipv4/af_inet.ckfree_skb(skb, FREE_WRITE);
skb320net/ipv4/af_inet.cwhile((skb = skb_dequeue(&sk->write_queue)) != NULL) {
skb321net/ipv4/af_inet.cIS_SKB(skb);
skb322net/ipv4/af_inet.ckfree_skb(skb, FREE_WRITE);
skb339net/ipv4/af_inet.cwhile((skb=skb_dequeue(&sk->receive_queue))!=NULL) 
skb345net/ipv4/af_inet.cif (skb->sk != NULL && skb->sk != sk) 
skb347net/ipv4/af_inet.cIS_SKB(skb);
skb348net/ipv4/af_inet.cskb->sk->dead = 1;
skb349net/ipv4/af_inet.cskb->sk->prot->close(skb->sk, 0);
skb351net/ipv4/af_inet.cIS_SKB(skb);
skb352net/ipv4/af_inet.ckfree_skb(skb, FREE_READ);
skb361net/ipv4/af_inet.cfor(skb = sk->send_head; skb != NULL; )
skb369net/ipv4/af_inet.cif (skb->next  && skb->prev) 
skb371net/ipv4/af_inet.cIS_SKB(skb);
skb372net/ipv4/af_inet.cskb_unlink(skb);
skb374net/ipv4/af_inet.cskb->dev = NULL;
skb375net/ipv4/af_inet.cskb2 = skb->link3;
skb376net/ipv4/af_inet.ckfree_skb(skb, FREE_WRITE);
skb377net/ipv4/af_inet.cskb = skb2;
skb386net/ipv4/af_inet.cwhile((skb=skb_dequeue(&sk->back_log))!=NULL) 
skb389net/ipv4/af_inet.cskb->sk = NULL;
skb390net/ipv4/af_inet.ckfree_skb(skb, FREE_READ);
skb132net/ipv4/arp.cstruct sk_buff_head    skb;      /* list of queued packets   */
skb297net/ipv4/arp.cstruct sk_buff *skb;
skb303net/ipv4/arp.cwhile ((skb = skb_dequeue(&entry->skb)) != NULL)
skb305net/ipv4/arp.cskb_device_lock(skb);
skb307net/ipv4/arp.cdev_kfree_skb(skb, FREE_WRITE);
skb629net/ipv4/arp.cstruct sk_buff *skb;
skb644net/ipv4/arp.cskb = alloc_skb(sizeof(struct arphdr)+ 2*(dev->addr_len+4)
skb646net/ipv4/arp.cif (skb == NULL)
skb651net/ipv4/arp.cskb_reserve(skb, dev->hard_header_len);
skb652net/ipv4/arp.carp = (struct arphdr *) skb_put(skb,sizeof(struct arphdr) + 2*(dev->addr_len+4));
skb653net/ipv4/arp.cskb->arp = 1;
skb654net/ipv4/arp.cskb->dev = dev;
skb655net/ipv4/arp.cskb->free = 1;
skb656net/ipv4/arp.cskb->protocol = htons (ETH_P_IP);
skb662net/ipv4/arp.cdev->hard_header(skb,dev,ptype,dest_hw?dest_hw:dev->broadcast,src_hw?src_hw:NULL,skb->len);
skb692net/ipv4/arp.cdev_queue_xmit(skb, dev, 0);
skb701net/ipv4/arp.cstruct sk_buff *skb;
skb723net/ipv4/arp.cwhile((skb = skb_dequeue(&entry->skb)) != NULL)
skb725net/ipv4/arp.cIS_SKB(skb);
skb726net/ipv4/arp.cskb_device_lock(skb);
skb728net/ipv4/arp.cif(!skb->dev->rebuild_header(skb->data,skb->dev,skb->raddr,skb))
skb730net/ipv4/arp.cskb->arp  = 1;
skb731net/ipv4/arp.cif(skb->sk==NULL)
skb732net/ipv4/arp.cdev_queue_xmit(skb, skb->dev, 0);
skb734net/ipv4/arp.cdev_queue_xmit(skb,skb->dev,skb->sk->priority);
skb774net/ipv4/arp.cint arp_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt)
skb780net/ipv4/arp.cstruct arphdr *arp = (struct arphdr *)skb->h.raw;
skb801net/ipv4/arp.ckfree_skb(skb, FREE_READ);
skb821net/ipv4/arp.ckfree_skb(skb, FREE_READ);
skb830net/ipv4/arp.ckfree_skb(skb, FREE_READ);
skb839net/ipv4/arp.ckfree_skb(skb, FREE_READ);
skb847net/ipv4/arp.ckfree_skb(skb, FREE_READ);
skb854net/ipv4/arp.ckfree_skb(skb, FREE_READ);
skb876net/ipv4/arp.ckfree_skb(skb, FREE_READ);
skb902net/ipv4/arp.cif (tip != dev->pa_addr && net_alias_has(skb->dev)) 
skb911net/ipv4/arp.ckfree_skb(skb, FREE_READ);
skb953net/ipv4/arp.ckfree_skb(skb, FREE_READ);
skb959net/ipv4/arp.ckfree_skb(skb, FREE_READ);
skb979net/ipv4/arp.ckfree_skb(skb, FREE_READ);
skb1032net/ipv4/arp.ckfree_skb(skb, FREE_READ);
skb1052net/ipv4/arp.centry->dev = skb->dev;
skb1054net/ipv4/arp.cskb_queue_head_init(&entry->skb);
skb1073net/ipv4/arp.ckfree_skb(skb, FREE_READ);
skb1182net/ipv4/arp.cu32 saddr, struct sk_buff *skb)
skb1189net/ipv4/arp.cif (skb)
skb1190net/ipv4/arp.cskb->arp = 1;
skb1211net/ipv4/arp.cif (skb != NULL)
skb1215net/ipv4/arp.cskb_queue_tail(&entry->skb, skb);
skb1216net/ipv4/arp.cskb_device_unlock(skb);
skb1229net/ipv4/arp.cif (skb->sk)
skb1231net/ipv4/arp.cskb->sk->err = EHOSTDOWN;
skb1232net/ipv4/arp.cskb->sk->error_report(skb->sk);
skb1235net/ipv4/arp.cicmp_send(skb, ICMP_DEST_UNREACH, ICMP_HOST_UNREACH, 0, dev);
skb1237net/ipv4/arp.cdev_kfree_skb(skb, FREE_WRITE);
skb1250net/ipv4/arp.cif (skb)
skb1251net/ipv4/arp.cskb->arp = 1;
skb1275net/ipv4/arp.cskb_queue_head_init(&entry->skb);
skb1276net/ipv4/arp.cif (skb != NULL)
skb1278net/ipv4/arp.cskb_queue_tail(&entry->skb, skb);
skb1279net/ipv4/arp.cskb_device_unlock(skb);
skb1297net/ipv4/arp.celse if (skb != NULL)
skb1298net/ipv4/arp.cdev_kfree_skb(skb, FREE_WRITE);
skb1510net/ipv4/arp.cskb_queue_head_init(&entry->skb);
skb1586net/ipv4/arp.cstruct sk_buff * skb;
skb1605net/ipv4/arp.cwhile ((skb = skb_dequeue(&entry->skb)) != NULL)
skb1607net/ipv4/arp.cskb_device_lock(skb);
skb1609net/ipv4/arp.cskb_queue_tail(&entry1->skb, skb);
skb1610net/ipv4/arp.cskb_device_unlock(skb);
skb1754net/ipv4/arp.cskb_queue_head_init(&entry->skb);
skb151net/ipv4/icmp.cvoid (*handler)(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, __u32 saddr, __u32 daddr, int len);
skb339net/ipv4/icmp.cstatic void icmp_unreach(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, __u32 saddr, __u32 daddr, int len)
skb462net/ipv4/icmp.ckfree_skb(skb, FREE_READ);
skb470net/ipv4/icmp.cstatic void icmp_redirect(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, __u32 source, __u32 daddr, int len)
skb529net/ipv4/icmp.ckfree_skb(skb, FREE_READ);
skb540net/ipv4/icmp.cstatic void icmp_echo(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, __u32 saddr, __u32 daddr, int len)
skb547net/ipv4/icmp.cif (ip_options_echo(&icmp_param.replyopts, NULL, daddr, saddr, skb)==0)
skb549net/ipv4/icmp.ckfree_skb(skb, FREE_READ);
skb560net/ipv4/icmp.cstatic void icmp_timestamp(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, __u32 saddr, __u32 daddr, int len)
skb572net/ipv4/icmp.ckfree_skb(skb, FREE_READ);
skb592net/ipv4/icmp.cif (ip_options_echo(&icmp_param.replyopts, NULL, daddr, saddr, skb)==0)
skb594net/ipv4/icmp.ckfree_skb(skb,FREE_READ);
skb610net/ipv4/icmp.cstatic void icmp_address(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, __u32 saddr, __u32 daddr, int len)
skb621net/ipv4/icmp.cif (ip_options_echo(&icmp_param.replyopts, NULL, daddr, saddr, skb)==0)
skb624net/ipv4/icmp.ckfree_skb(skb, FREE_READ);  
skb627net/ipv4/icmp.cstatic void icmp_discard(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, __u32 saddr, __u32 daddr, int len)
skb629net/ipv4/icmp.ckfree_skb(skb, FREE_READ);
skb636net/ipv4/icmp.cint icmp_rcv(struct sk_buff *skb, struct device *dev, struct options *opt,
skb640net/ipv4/icmp.cstruct icmphdr *icmph=(void *)skb->h.raw;
skb652net/ipv4/icmp.ckfree_skb(skb, FREE_READ);
skb665net/ipv4/icmp.ckfree_skb(skb,FREE_READ);
skb683net/ipv4/icmp.ckfree_skb(skb, FREE_READ);
skb696net/ipv4/icmp.c(icmp_pointers[icmph->type].handler)(icmph,skb,skb->dev,saddr,daddr,len);
skb237net/ipv4/igmp.cstruct sk_buff *skb=alloc_skb(MAX_IGMP_SIZE, GFP_ATOMIC);
skb241net/ipv4/igmp.cif(skb==NULL)
skb243net/ipv4/igmp.ctmp=ip_build_header(skb, INADDR_ANY, address, &dev, IPPROTO_IGMP, NULL,
skb247net/ipv4/igmp.ckfree_skb(skb, FREE_WRITE);
skb250net/ipv4/igmp.cih=(struct igmphdr *)skb_put(skb,sizeof(struct igmphdr));
skb256net/ipv4/igmp.cip_queue_xmit(NULL,dev,skb,1);
skb426net/ipv4/igmp.cint igmp_rcv(struct sk_buff *skb, struct device *dev, struct options *opt,
skb445net/ipv4/igmp.cih=(struct igmphdr *)skb->h.raw;
skb447net/ipv4/igmp.cif(skb->len <sizeof(struct igmphdr) || skb->ip_hdr->ttl>1 || ip_compute_csum((void *)skb->h.raw,sizeof(struct igmphdr)))
skb449net/ipv4/igmp.ckfree_skb(skb, FREE_READ);
skb461net/ipv4/igmp.ckfree_skb(skb, FREE_READ);
skb471net/ipv4/igmp.ckfree_skb(skb, FREE_READ);
skb45net/ipv4/ip_forward.cstatic void ip_encap(struct sk_buff *skb, int len, struct device *out, __u32 daddr)
skb52net/ipv4/ip_forward.cstruct iphdr *iph=(struct iphdr *)skb_push(skb,sizeof(struct iphdr));
skb56net/ipv4/ip_forward.ciph->tos  =  skb->ip_hdr->tos;
skb57net/ipv4/ip_forward.ciph->ttl  =  skb->ip_hdr->ttl;
skb63net/ipv4/ip_forward.ciph->tot_len  =  htons(skb->len);
skb67net/ipv4/ip_forward.cskb->dev = out;
skb68net/ipv4/ip_forward.cskb->arp = 1;
skb69net/ipv4/ip_forward.cskb->raddr=daddr;
skb73net/ipv4/ip_forward.cif (out->hard_header && out->hard_header(skb, out, ETH_P_IP, NULL, NULL, len)<0)
skb74net/ipv4/ip_forward.cskb->arp=0;
skb86net/ipv4/ip_forward.cint ip_forward(struct sk_buff *skb, struct device *dev, int is_frag,
skb95net/ipv4/ip_forward.cstruct   options * opt  = (struct options*)skb->proto_priv;
skb101net/ipv4/ip_forward.cstruct sk_buff *skb_in = skb;  /* So we can remember if the masquerader did some swaps */
skb112net/ipv4/ip_forward.cfw_res=call_fw_firewall(PF_INET, skb, skb->h.iph);
skb118net/ipv4/ip_forward.cicmp_send(skb, ICMP_DEST_UNREACH, ICMP_HOST_UNREACH, 0, dev);
skb136net/ipv4/ip_forward.ciph = skb->h.iph;
skb153net/ipv4/ip_forward.cicmp_send(skb, ICMP_TIME_EXCEEDED, ICMP_EXC_TTL, 0, dev);
skb174net/ipv4/ip_forward.cicmp_send(skb, ICMP_DEST_UNREACH, ICMP_NET_UNREACH, 0, dev);
skb195net/ipv4/ip_forward.cicmp_send(skb, ICMP_DEST_UNREACH, ICMP_SR_FAILED, 0, dev);
skb213net/ipv4/ip_forward.cicmp_send(skb, ICMP_REDIRECT, ICMP_REDIR_HOST, raddr, dev);
skb222net/ipv4/ip_forward.cdev2=skb->dev;
skb223net/ipv4/ip_forward.craddr=skb->raddr;
skb244net/ipv4/ip_forward.cip_fw_masquerade(&skb, dev2);
skb246net/ipv4/ip_forward.cIS_SKB(skb);
skb248net/ipv4/ip_forward.cif (skb->len+encap > dev2->mtu && (ntohs(iph->frag_off) & IP_DF)) 
skb251net/ipv4/ip_forward.cicmp_send(skb, ICMP_DEST_UNREACH, ICMP_FRAG_NEEDED, htonl(dev2->mtu), dev);
skb258net/ipv4/ip_forward.cif(skb_headroom(skb)-encap<dev2->hard_header_len)
skb260net/ipv4/ip_forward.cskb2 = alloc_skb(dev2->hard_header_len + skb->len + encap + 15, GFP_ATOMIC);
skb262net/ipv4/ip_forward.cif(skb_headroom(skb)<dev2->hard_header_len)
skb264net/ipv4/ip_forward.cskb2 = alloc_skb(dev2->hard_header_len + skb->len + 15, GFP_ATOMIC);
skb287net/ipv4/ip_forward.cskb_reserve(skb,(encap+dev->hard_header_len+15)&~15);  /* 16 byte aligned IP headers are good */
skb288net/ipv4/ip_forward.cip_encap(skb2,skb->len, dev2, raddr);
skb292net/ipv4/ip_forward.cip_send(rt,skb2,raddr,skb->len,dev2,dev2->pa_addr);
skb299net/ipv4/ip_forward.cptr = skb_put(skb2,skb->len);
skb306net/ipv4/ip_forward.cmemcpy(ptr, skb->h.raw, skb->len);
skb307net/ipv4/ip_forward.cmemcpy(skb2->proto_priv, skb->proto_priv, sizeof(skb->proto_priv));
skb316net/ipv4/ip_forward.cskb2 = skb;    
skb320net/ipv4/ip_forward.cip_encap(skb,skb->len, dev2, raddr);
skb324net/ipv4/ip_forward.cskb->arp=1;
skb325net/ipv4/ip_forward.cskb->raddr=raddr;
skb328net/ipv4/ip_forward.cmemcpy(skb_push(skb, dev2->hard_header_len), hh->hh_data, dev2->hard_header_len);
skb334net/ipv4/ip_forward.cskb->arp = 0;
skb339net/ipv4/ip_forward.cif(dev2->hard_header(skb, dev2, ETH_P_IP, NULL, NULL, skb->len)<0)
skb340net/ipv4/ip_forward.cskb->arp=0;
skb353net/ipv4/ip_forward.cif (skb != skb2)
skb459net/ipv4/ip_forward.cif(skb==skb2)
skb467net/ipv4/ip_forward.cif(skb!=skb_in)
skb54net/ipv4/ip_fragment.cextern __inline__ void frag_kfree_skb(struct sk_buff *skb, int type)
skb59net/ipv4/ip_fragment.cip_frag_mem-=skb->truesize;
skb61net/ipv4/ip_fragment.ckfree_skb(skb,type);
skb91net/ipv4/ip_fragment.cstatic struct ipfrag *ip_frag_create(int offset, int end, struct sk_buff *skb, unsigned char *ptr)
skb108net/ipv4/ip_fragment.cfp->skb = skb;
skb117net/ipv4/ip_fragment.cip_frag_mem+=skb->truesize;
skb189net/ipv4/ip_fragment.cIS_SKB(fp->skb);
skb190net/ipv4/ip_fragment.cfrag_kfree_skb(fp->skb,FREE_READ);
skb222net/ipv4/ip_fragment.cicmp_send(qp->fragments->skb,ICMP_TIME_EXCEEDED,
skb253net/ipv4/ip_fragment.cstatic struct ipq *ip_create(struct sk_buff *skb, struct iphdr *iph, struct device *dev)
skb263net/ipv4/ip_fragment.cskb->dev = qp->dev;
skb343net/ipv4/ip_fragment.cstruct sk_buff *skb;
skb354net/ipv4/ip_fragment.cif ((skb = dev_alloc_skb(len)) == NULL)
skb363net/ipv4/ip_fragment.cskb_put(skb,len);
skb364net/ipv4/ip_fragment.cskb->h.raw = skb->data;
skb365net/ipv4/ip_fragment.cskb->free = 1;
skb368net/ipv4/ip_fragment.cptr = (unsigned char *) skb->h.raw;
skb378net/ipv4/ip_fragment.cif(count+fp->len > skb->len)
skb382net/ipv4/ip_fragment.cfrag_kfree_skb(skb,FREE_WRITE);
skb395net/ipv4/ip_fragment.ciph = skb->h.iph;
skb398net/ipv4/ip_fragment.cskb->ip_hdr = iph;
skb401net/ipv4/ip_fragment.creturn(skb);
skb409net/ipv4/ip_fragment.cstruct sk_buff *ip_defrag(struct iphdr *iph, struct sk_buff *skb, struct device *dev)
skb441net/ipv4/ip_fragment.creturn(skb);
skb474net/ipv4/ip_fragment.cif ((qp = ip_create(skb, iph, dev)) == NULL)
skb476net/ipv4/ip_fragment.cskb->sk = NULL;
skb477net/ipv4/ip_fragment.cfrag_kfree_skb(skb, FREE_READ);
skb493net/ipv4/ip_fragment.cptr = skb->data + ihl;
skb559net/ipv4/ip_fragment.cfrag_kfree_skb(tmp->skb,FREE_READ);
skb569net/ipv4/ip_fragment.ctfp = ip_frag_create(offset, end, skb, ptr);
skb577net/ipv4/ip_fragment.cskb->sk = NULL;
skb578net/ipv4/ip_fragment.cfrag_kfree_skb(skb, FREE_READ);
skb618net/ipv4/ip_fragment.cvoid ip_fragment(struct sock *sk, struct sk_buff *skb, struct device *dev, int is_frag)
skb632net/ipv4/ip_fragment.craw = skb->data;
skb635net/ipv4/ip_fragment.cskb->ip_hdr = iph;
skb637net/ipv4/ip_fragment.ciph = skb->ip_hdr;
skb670net/ipv4/ip_fragment.cicmp_send(skb,ICMP_DEST_UNREACH,ICMP_FRAG_NEEDED,dev->mtu, dev);
skb722net/ipv4/ip_fragment.cskb2->arp = skb->arp;
skb723net/ipv4/ip_fragment.cif(skb->free==0)
skb741net/ipv4/ip_fragment.cskb2->raddr = skb->raddr;  /* For rebuild_header - must be here */
skb771net/ipv4/ip_fragment.cip_options_fragment(skb);
skb603net/ipv4/ip_fw.cstatic struct sk_buff *revamp(struct sk_buff *skb, struct device *dev, struct ip_masq *ftp)
skb605net/ipv4/ip_fw.cstruct iphdr *iph = skb->h.iph;
skb644net/ipv4/ip_fw.cwhile (skb->len - ((unsigned char *)data - skb->h.raw) > 18)
skb681net/ipv4/ip_fw.creturn skb;
skb720net/ipv4/ip_fw.creturn skb;
skb744net/ipv4/ip_fw.cprintk("MASQUERADE: resizing needed for %d bytes (%ld)\n",diff, skb->len);
skb746net/ipv4/ip_fw.cskb2 = alloc_skb(MAX_HEADER + skb->len+diff, GFP_ATOMIC);
skb749net/ipv4/ip_fw.creturn skb;
skb751net/ipv4/ip_fw.cskb2->free = skb->free;
skb753net/ipv4/ip_fw.cskb_put(skb2,skb->len + diff);
skb754net/ipv4/ip_fw.cskb2->h.raw = skb2->data + (skb->h.raw - skb->data);
skb767net/ipv4/ip_fw.cmemcpy(skb2->data, skb->data, (p - (char *)skb->data));
skb768net/ipv4/ip_fw.cmemcpy(&skb2->data[(p - (char *)skb->data)], buf, strlen(buf));
skb769net/ipv4/ip_fw.cmemcpy(&skb2->data[(p - (char *)skb->data) + strlen(buf)], data,
skb770net/ipv4/ip_fw.cskb->len - (data-(char *)skb->data));
skb776net/ipv4/ip_fw.ciph->tot_len = htons(skb->len + diff);
skb783net/ipv4/ip_fw.ckfree_skb(skb, FREE_WRITE);
skb786net/ipv4/ip_fw.creturn skb;
skb801net/ipv4/ip_fw.cstruct sk_buff  *skb=*skb_ptr;
skb802net/ipv4/ip_fw.cstruct iphdr  *iph = skb->h.iph;
skb862net/ipv4/ip_fw.csize = skb->len - ((unsigned char *)portptr - skb->h.raw);
skb880net/ipv4/ip_fw.cskb = revamp(*skb_ptr, dev, ms);
skb881net/ipv4/ip_fw.c*skb_ptr = skb;
skb882net/ipv4/ip_fw.ciph = skb->h.iph;
skb884net/ipv4/ip_fw.csize = skb->len - ((unsigned char *)portptr-skb->h.raw);
skb898net/ipv4/ip_fw.ctcp_send_check(th,iph->saddr,iph->daddr,size,skb->sk);
skb1585net/ipv4/ip_fw.cint ipfw_input_check(struct firewall_ops *this, int pf, struct sk_buff *skb, void *phdr)
skb1587net/ipv4/ip_fw.creturn ip_fw_chk(phdr, skb->dev, ip_fw_in_chain, ip_fw_in_policy, 0);
skb1590net/ipv4/ip_fw.cint ipfw_output_check(struct firewall_ops *this, int pf, struct sk_buff *skb, void *phdr)
skb1592net/ipv4/ip_fw.creturn ip_fw_chk(phdr, skb->dev, ip_fw_out_chain, ip_fw_out_policy, 0);
skb1595net/ipv4/ip_fw.cint ipfw_forward_check(struct firewall_ops *this, int pf, struct sk_buff *skb, void *phdr)
skb1597net/ipv4/ip_fw.creturn ip_fw_chk(phdr, skb->dev, ip_fw_fwd_chain, ip_fw_fwd_policy, 0);
skb198net/ipv4/ip_input.cint ip_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt)
skb200net/ipv4/ip_input.cstruct iphdr *iph = skb->h.iph;
skb223net/ipv4/ip_input.creturn ipv6_rcv(skb,dev,pt);
skb232net/ipv4/ip_input.cskb->ip_hdr = iph;
skb247net/ipv4/ip_input.cif (skb->len<sizeof(struct iphdr) || iph->ihl<5 || iph->version != 4 || ip_fast_csum((unsigned char *)iph, iph->ihl) !=0
skb248net/ipv4/ip_input.c|| skb->len < ntohs(iph->tot_len))
skb251net/ipv4/ip_input.ckfree_skb(skb, FREE_WRITE);
skb261net/ipv4/ip_input.cskb_trim(skb,ntohs(iph->tot_len));
skb265net/ipv4/ip_input.cskb->ip_summed = 0;
skb266net/ipv4/ip_input.cif (ip_options_compile(NULL, skb))
skb268net/ipv4/ip_input.copt = (struct options*)skb->proto_priv;
skb272net/ipv4/ip_input.ckfree_skb(skb, FREE_READ);
skb285net/ipv4/ip_input.cif (iph->daddr != skb->dev->pa_addr && net_alias_has(skb->dev)) 
skb286net/ipv4/ip_input.cskb->dev = dev = net_alias_dev_rcv_sel32(skb->dev, AF_INET, iph->saddr, iph->daddr);
skb304net/ipv4/ip_input.cif ((err=call_in_firewall(PF_INET, skb, iph))<FW_ACCEPT)
skb307net/ipv4/ip_input.cicmp_send(skb, ICMP_DEST_UNREACH, ICMP_PORT_UNREACH, 0, dev);
skb308net/ipv4/ip_input.ckfree_skb(skb, FREE_WRITE);
skb342net/ipv4/ip_input.cif ( iph->daddr == skb->dev->pa_addr || (brd = ip_chk_addr(iph->daddr)) != 0)
skb350net/ipv4/ip_input.cif (brd != IS_MYADDR || skb->pkt_type != PACKET_HOST) 
skb352net/ipv4/ip_input.ckfree_skb(skb, FREE_WRITE);
skb364net/ipv4/ip_input.cicmp_send(skb, ICMP_PARAMETERPROB, 0, opt->srr+2,
skb365net/ipv4/ip_input.cskb->dev);
skb366net/ipv4/ip_input.ckfree_skb(skb, FREE_WRITE);
skb380net/ipv4/ip_input.ckfree_skb(skb, FREE_WRITE);
skb390net/ipv4/ip_input.cif (ip_forward(skb, dev, is_frag, nexthop))
skb391net/ipv4/ip_input.ckfree_skb(skb, FREE_WRITE);
skb394net/ipv4/ip_input.ckfree_skb(skb, FREE_WRITE);
skb411net/ipv4/ip_input.ckfree_skb(skb, FREE_WRITE);
skb426net/ipv4/ip_input.cif (ip_fw_demasquerade(skb)) 
skb428net/ipv4/ip_input.cstruct iphdr *iph=skb->h.iph;
skb429net/ipv4/ip_input.cif (ip_forward(skb, dev, is_frag|IPFWD_MASQUERADED, iph->daddr))
skb430net/ipv4/ip_input.ckfree_skb(skb, FREE_WRITE);
skb442net/ipv4/ip_input.cskb=ip_defrag(iph,skb,dev);
skb443net/ipv4/ip_input.cif(skb==NULL)
skb445net/ipv4/ip_input.cskb->dev = dev;
skb446net/ipv4/ip_input.ciph=skb->h.iph;
skb453net/ipv4/ip_input.cskb->ip_hdr = iph;
skb454net/ipv4/ip_input.cskb->h.raw += iph->ihl*4;
skb489net/ipv4/ip_input.cskb1=skb_clone(skb, GFP_ATOMIC);
skb532net/ipv4/ip_input.cskb2 = skb_clone(skb, GFP_ATOMIC);
skb538net/ipv4/ip_input.cskb2 = skb;
skb571net/ipv4/ip_input.cipmr_forward(skb, is_frag);
skb574net/ipv4/ip_input.cstruct sk_buff *skb2=skb_clone(skb, GFP_ATOMIC);
skb585net/ipv4/ip_input.craw_rcv(raw_sk, skb, dev, iph->saddr, daddr);
skb589net/ipv4/ip_input.cicmp_send(skb, ICMP_DEST_UNREACH, ICMP_PROT_UNREACH, 0, dev);  
skb590net/ipv4/ip_input.ckfree_skb(skb, FREE_WRITE);
skb604net/ipv4/ip_input.cif(skb->pkt_type!=PACKET_HOST || brd==IS_BROADCAST)
skb606net/ipv4/ip_input.ckfree_skb(skb,FREE_WRITE);
skb617net/ipv4/ip_input.cicmp_send(skb, ICMP_PARAMETERPROB, 0, 16, skb->dev);
skb618net/ipv4/ip_input.ckfree_skb(skb, FREE_WRITE);
skb621net/ipv4/ip_input.cif (ip_forward(skb, dev, is_frag, iph->daddr))
skb622net/ipv4/ip_input.ckfree_skb(skb, FREE_WRITE);
skb627net/ipv4/ip_input.ckfree_skb(skb, FREE_WRITE);
skb29net/ipv4/ip_options.cvoid ip_options_build(struct sk_buff * skb, struct options * opt,
skb33net/ipv4/ip_options.cunsigned char * iph = (unsigned char*)skb->ip_hdr;
skb35net/ipv4/ip_options.cmemcpy(skb->proto_priv, opt, sizeof(struct options));
skb37net/ipv4/ip_options.copt = (struct options*)skb->proto_priv;
skb75net/ipv4/ip_options.cstruct sk_buff * skb) 
skb86net/ipv4/ip_options.csopt = (struct options*)skb->proto_priv;
skb95net/ipv4/ip_options.c(unsigned char *)skb->ip_hdr);
skb194net/ipv4/ip_options.cvoid ip_options_fragment(struct sk_buff * skb) 
skb196net/ipv4/ip_options.cunsigned char * optptr = (unsigned char*)skb->ip_hdr;
skb197net/ipv4/ip_options.cstruct options * opt = (struct options*)skb->proto_priv;
skb234net/ipv4/ip_options.cint ip_options_compile(struct options * opt, struct sk_buff * skb)
skb244net/ipv4/ip_options.copt = (struct options*)skb->proto_priv;
skb246net/ipv4/ip_options.ciph = (unsigned char*)skb->ip_hdr;
skb253net/ipv4/ip_options.coptptr = opt->is_data ? opt->__data : (unsigned char*)&skb->ip_hdr[1];
skb302net/ipv4/ip_options.cif (!skb) 
skb339net/ipv4/ip_options.cif (skb) 
skb341net/ipv4/ip_options.cmemcpy(&optptr[optptr[2]-1], &skb->dev->pa_addr, 4);
skb378net/ipv4/ip_options.cif (skb) 
skb390net/ipv4/ip_options.cif (skb) 
skb392net/ipv4/ip_options.cmemcpy(&optptr[ts->ptr-1], &skb->dev->pa_addr, 4);
skb411net/ipv4/ip_options.cif (skb)
skb441net/ipv4/ip_options.cif (skb) 
skb451net/ipv4/ip_options.cif (!skb) 
skb466net/ipv4/ip_options.cif (skb) 
skb468net/ipv4/ip_options.cicmp_send(skb, ICMP_PARAMETERPROB, 0, pp_ptr-iph, skb->dev);
skb469net/ipv4/ip_options.ckfree_skb(skb, FREE_READ);
skb67net/ipv4/ip_output.cstatic void ip_loopback(struct device *old_dev, struct sk_buff *skb)
skb70net/ipv4/ip_output.cint len=ntohs(skb->ip_hdr->tot_len);
skb79net/ipv4/ip_output.cnewskb->saddr=skb->saddr;
skb80net/ipv4/ip_output.cnewskb->daddr=skb->daddr;
skb81net/ipv4/ip_output.cnewskb->raddr=skb->raddr;
skb85net/ipv4/ip_output.cnewskb->pkt_type=skb->pkt_type;
skb90net/ipv4/ip_output.cip_send(NULL,newskb, skb->ip_hdr->daddr, len, dev, skb->ip_hdr->saddr);
skb95net/ipv4/ip_output.cmemcpy(newskb->proto_priv, skb->proto_priv, sizeof(skb->proto_priv));
skb100net/ipv4/ip_output.cmemcpy(newskb->ip_hdr,skb->ip_hdr,len);
skb114net/ipv4/ip_output.cint ip_send(struct rtable * rt, struct sk_buff *skb, __u32 daddr, int len, struct device *dev, __u32 saddr)
skb118net/ipv4/ip_output.cskb->dev = dev;
skb119net/ipv4/ip_output.cskb->arp = 1;
skb120net/ipv4/ip_output.cskb->protocol = htons(ETH_P_IP);
skb127net/ipv4/ip_output.cskb_reserve(skb,(dev->hard_header_len+15)&~15);  /* 16 byte aligned IP headers are good */
skb130net/ipv4/ip_output.cmemcpy(skb_push(skb,dev->hard_header_len),rt->rt_hh->hh_data,dev->hard_header_len);
skb136net/ipv4/ip_output.cskb->arp = 0;
skb137net/ipv4/ip_output.cskb->raddr = daddr;
skb140net/ipv4/ip_output.cmac = dev->hard_header(skb, dev, ETH_P_IP, NULL, NULL, len);
skb144net/ipv4/ip_output.cskb->arp = 0;
skb145net/ipv4/ip_output.cskb->raddr = daddr;  /* next routing address */
skb151net/ipv4/ip_output.cstatic int ip_send_room(struct rtable * rt, struct sk_buff *skb, __u32 daddr, int len, struct device *dev, __u32 saddr)
skb155net/ipv4/ip_output.cskb->dev = dev;
skb156net/ipv4/ip_output.cskb->arp = 1;
skb157net/ipv4/ip_output.cskb->protocol = htons(ETH_P_IP);
skb160net/ipv4/ip_output.cskb_reserve(skb,MAX_HEADER);
skb163net/ipv4/ip_output.cmemcpy(skb_push(skb,dev->hard_header_len),rt->rt_hh->hh_data,dev->hard_header_len);
skb169net/ipv4/ip_output.cskb->arp = 0;
skb170net/ipv4/ip_output.cskb->raddr = daddr;
skb173net/ipv4/ip_output.cmac = dev->hard_header(skb, dev, ETH_P_IP, NULL, NULL, len);
skb177net/ipv4/ip_output.cskb->arp = 0;
skb178net/ipv4/ip_output.cskb->raddr = daddr;  /* next routing address */
skb192net/ipv4/ip_output.cint ip_build_header(struct sk_buff *skb, __u32 saddr, __u32 daddr,
skb211net/ipv4/ip_output.cif(MULTICAST(daddr) && *dev==NULL && skb->sk && *skb->sk->ip_mc_name)
skb212net/ipv4/ip_output.c*dev=dev_get(skb->sk->ip_mc_name);
skb216net/ipv4/ip_output.crt = ip_check_route(rp, daddr, skb->localroute);
skb225net/ipv4/ip_output.crt = ip_rt_route(daddr, skb->localroute);
skb263net/ipv4/ip_output.ctmp = ip_send_room(rt, skb, raddr, len, *dev, saddr);
skb265net/ipv4/ip_output.ctmp = ip_send(rt, skb, raddr, len, *dev, saddr);
skb273net/ipv4/ip_output.cskb->dev = *dev;
skb274net/ipv4/ip_output.cskb->saddr = saddr;
skb293net/ipv4/ip_output.ciph=(struct iphdr *)skb_put(skb,sizeof(struct iphdr) + opt->optlen);
skb295net/ipv4/ip_output.ciph=(struct iphdr *)skb_put(skb,sizeof(struct iphdr));
skb305net/ipv4/ip_output.cskb->ip_hdr   = iph;
skb310net/ipv4/ip_output.cip_options_build(skb, opt, final_daddr, (*dev)->pa_addr, 0);
skb335net/ipv4/ip_output.cstruct sk_buff *skb, int free)
skb347net/ipv4/ip_output.cIS_SKB(skb);
skb354net/ipv4/ip_output.cskb->dev = dev;
skb355net/ipv4/ip_output.cskb->when = jiffies;
skb365net/ipv4/ip_output.ciph = skb->ip_hdr;
skb366net/ipv4/ip_output.ciph->tot_len = ntohs(skb->len-(((unsigned char *)iph)-skb->data));
skb369net/ipv4/ip_output.cif(call_out_firewall(PF_INET, skb, iph) < FW_ACCEPT)
skb387net/ipv4/ip_output.cskb->free = free;
skb397net/ipv4/ip_output.cip_fragment(sk,skb,dev,0);
skb398net/ipv4/ip_output.cIS_SKB(skb);
skb399net/ipv4/ip_output.ckfree_skb(skb,FREE_WRITE);
skb417net/ipv4/ip_output.cif (skb->next != NULL)
skb420net/ipv4/ip_output.cskb_unlink(skb);
skb441net/ipv4/ip_output.cif (skb->link3 != NULL)
skb444net/ipv4/ip_output.cskb->link3 = NULL;
skb448net/ipv4/ip_output.csk->send_tail = skb;
skb449net/ipv4/ip_output.csk->send_head = skb;
skb453net/ipv4/ip_output.csk->send_tail->link3 = skb;
skb454net/ipv4/ip_output.csk->send_tail = skb;
skb463net/ipv4/ip_output.cskb->sk = sk;
skb486net/ipv4/ip_output.cip_loopback(dev,skb);
skb495net/ipv4/ip_output.cip_loopback(dev,skb);
skb504net/ipv4/ip_output.cif(skb->ip_hdr->ttl==0)
skb506net/ipv4/ip_output.ckfree_skb(skb, FREE_READ);
skb512net/ipv4/ip_output.cip_loopback(dev,skb);
skb523net/ipv4/ip_output.cdev_queue_xmit(skb, dev, sk->priority);
skb527net/ipv4/ip_output.cdev_queue_xmit(skb, dev, SOPRI_NORMAL);
skb536net/ipv4/ip_output.ckfree_skb(skb, FREE_WRITE);
skb649net/ipv4/ip_output.cstruct sk_buff *skb=sock_alloc_send_skb(sk, length+15+dev->hard_header_len,0, noblock, &error);
skb650net/ipv4/ip_output.cif(skb==NULL)
skb655net/ipv4/ip_output.cskb->dev=dev;
skb656net/ipv4/ip_output.cskb->protocol = htons(ETH_P_IP);
skb657net/ipv4/ip_output.cskb->free=1;
skb658net/ipv4/ip_output.cskb->when=jiffies;
skb659net/ipv4/ip_output.cskb->sk=sk;
skb660net/ipv4/ip_output.cskb->arp=0;
skb661net/ipv4/ip_output.cskb->saddr=saddr;
skb662net/ipv4/ip_output.cskb->raddr = raddr;
skb663net/ipv4/ip_output.cskb_reserve(skb,(dev->hard_header_len+15)&~15);
skb666net/ipv4/ip_output.cskb->arp=1;
skb667net/ipv4/ip_output.cmemcpy(skb_push(skb,dev->hard_header_len),hh->hh_data,dev->hard_header_len);
skb670net/ipv4/ip_output.cskb->arp = 0;
skb678net/ipv4/ip_output.cif(dev->hard_header(skb,dev,ETH_P_IP,NULL,NULL,0)>0)
skb679net/ipv4/ip_output.cskb->arp=1;
skb682net/ipv4/ip_output.cskb->arp=1;
skb683net/ipv4/ip_output.cskb->ip_hdr=iph=(struct iphdr *)skb_put(skb,length);
skb700net/ipv4/ip_output.cip_options_build(skb, opt,
skb711net/ipv4/ip_output.cif(call_out_firewall(PF_INET, skb, iph)< FW_ACCEPT)
skb713net/ipv4/ip_output.ckfree_skb(skb, FREE_WRITE);
skb721net/ipv4/ip_output.cdev_queue_xmit(skb,dev,sk->priority);
skb725net/ipv4/ip_output.ckfree_skb(skb, FREE_WRITE);
skb800net/ipv4/ip_output.cstruct sk_buff * skb;
skb808net/ipv4/ip_output.cskb = sock_alloc_send_skb(sk, fraglen+15, 0, noblock, &error);
skb809net/ipv4/ip_output.cif (skb == NULL)
skb822net/ipv4/ip_output.cskb->dev = dev;
skb823net/ipv4/ip_output.cskb->protocol = htons(ETH_P_IP);
skb824net/ipv4/ip_output.cskb->when = jiffies;
skb825net/ipv4/ip_output.cskb->free = 1; /* dubious, this one */
skb826net/ipv4/ip_output.cskb->sk = sk;
skb827net/ipv4/ip_output.cskb->arp = 0;
skb828net/ipv4/ip_output.cskb->saddr = saddr;
skb829net/ipv4/ip_output.cskb->raddr = raddr;
skb830net/ipv4/ip_output.cskb_reserve(skb,(dev->hard_header_len+15)&~15);
skb831net/ipv4/ip_output.cdata = skb_put(skb, fraglen-dev->hard_header_len);
skb842net/ipv4/ip_output.cskb->arp=1;
skb843net/ipv4/ip_output.cmemcpy(skb_push(skb,dev->hard_header_len),hh->hh_data,dev->hard_header_len);
skb846net/ipv4/ip_output.cskb->arp = 0;
skb854net/ipv4/ip_output.cif(dev->hard_header(skb, dev, ETH_P_IP, 
skb856net/ipv4/ip_output.cskb->arp=1;
skb863net/ipv4/ip_output.cskb->ip_hdr = iph = (struct iphdr *)data;
skb876net/ipv4/ip_output.cip_options_build(skb, opt,
skb915net/ipv4/ip_output.cif(!offset && call_out_firewall(PF_INET, skb, iph) < FW_ACCEPT)
skb917net/ipv4/ip_output.ckfree_skb(skb, FREE_WRITE);
skb946net/ipv4/ip_output.cif(skb->daddr==IGMP_ALL_HOSTS || (dev->flags&IFF_ALLMULTI))
skb947net/ipv4/ip_output.cip_loopback(dev,skb);
skb955net/ipv4/ip_output.cip_loopback(dev,skb);
skb968net/ipv4/ip_output.cif(skb->ip_hdr->ttl==0)
skb969net/ipv4/ip_output.ckfree_skb(skb, FREE_READ);
skb980net/ipv4/ip_output.cip_loopback(dev,skb);
skb988net/ipv4/ip_output.cdev_queue_xmit(skb, dev, sk->priority);
skb999net/ipv4/ip_output.ckfree_skb(skb, FREE_WRITE);
skb1038net/ipv4/ip_output.cstruct sk_buff *skb=alloc_skb(sizeof(struct netlink_rtinfo), GFP_ATOMIC);
skb1041net/ipv4/ip_output.cif(skb==NULL)
skb1043net/ipv4/ip_output.cskb->free=1;
skb1044net/ipv4/ip_output.cnrt=(struct netlink_rtinfo *)skb_put(skb, sizeof(struct netlink_rtinfo));
skb1058net/ipv4/ip_output.cnetlink_post(NETLINK_ROUTE, skb);
skb52net/ipv4/ipip.cint ipip_rcv(struct sk_buff *skb, struct device *dev, struct options *opt, 
skb68net/ipv4/ipip.cskb_pull(skb, ((struct iphdr *)skb->data)->ihl<<2);
skb74net/ipv4/ipip.cskb->h.iph=(struct iphdr *)skb->data;
skb75net/ipv4/ipip.cskb->ip_hdr=(struct iphdr *)skb->data;
skb76net/ipv4/ipip.cmemset(skb->proto_priv, 0, sizeof(struct options));
skb77net/ipv4/ipip.cif (skb->ip_hdr->ihl > 5) 
skb79net/ipv4/ipip.cif (ip_options_compile(NULL, skb))
skb88net/ipv4/ipip.cif((err=call_in_firewall(PF_INET, skb, skb->ip_hdr))<FW_ACCEPT)
skb91net/ipv4/ipip.cicmp_send(skb,ICMP_DEST_UNREACH, ICMP_PORT_UNREACH, 0 , dev);
skb92net/ipv4/ipip.ckfree_skb(skb, FREE_READ);
skb108net/ipv4/ipip.cif(ip_forward(skb, dev, 0, daddr))
skb109net/ipv4/ipip.ckfree_skb(skb, FREE_READ);
skb99net/ipv4/ipmr.cstruct sk_buff *skb;
skb140net/ipv4/ipmr.cwhile((skb=skb_dequeue(&cache->mfc_unresolved)))
skb141net/ipv4/ipmr.ckfree_skb(skb, FREE_WRITE);
skb216net/ipv4/ipmr.cstruct sk_buff *skb;
skb244net/ipv4/ipmr.cwhile((skb=skb_dequeue(&cache->mfc_unresolved)))
skb245net/ipv4/ipmr.cipmr_forward(skb, skb->protocol);
skb255net/ipv4/ipmr.cstruct sk_buff *skb=alloc_skb(128, GFP_ATOMIC);
skb258net/ipv4/ipmr.cif(!skb)
skb261net/ipv4/ipmr.cskb->free=1;
skb267net/ipv4/ipmr.cskb->ip_hdr=(struct iphdr *)skb_put(skb,ihl);
skb268net/ipv4/ipmr.cskb->h.iph=skb->ip_hdr;
skb269net/ipv4/ipmr.cmemcpy(skb->data,pkt->data,ihl);
skb270net/ipv4/ipmr.cskb->ip_hdr->protocol = 0;      /* Flag to the kernel this is a route add */
skb276net/ipv4/ipmr.cigmp=(struct igmphdr *)skb_put(skb,sizeof(struct igmphdr));
skb279net/ipv4/ipmr.cskb->ip_hdr->tot_len=htons(skb->len);      /* Fix the length */
skb284net/ipv4/ipmr.cif(sock_queue_rcv_skb(mroute_socket,skb)<0)
skb286net/ipv4/ipmr.cskb->sk=NULL;
skb287net/ipv4/ipmr.ckfree_skb(skb, FREE_READ);
skb296net/ipv4/ipmr.cstatic void ipmr_cache_unresolved(struct mfc_cache *cache, vifi_t vifi, struct sk_buff *skb, int is_frag)
skb305net/ipv4/ipmr.ckfree_skb(skb, FREE_WRITE);
skb312net/ipv4/ipmr.ccache->mfc_origin=skb->ip_hdr->saddr;
skb313net/ipv4/ipmr.ccache->mfc_mcastgrp=skb->ip_hdr->daddr;
skb330net/ipv4/ipmr.cipmr_cache_report(skb);
skb337net/ipv4/ipmr.ckfree_skb(skb, FREE_WRITE);
skb345net/ipv4/ipmr.cskb->protocol=is_frag;
skb346net/ipv4/ipmr.cskb_queue_tail(&cache->mfc_unresolved,skb);
skb702net/ipv4/ipmr.cstatic void ipmr_queue_xmit(struct sk_buff *skb, struct vif_device *vif, struct device *in_dev, int frag)
skb705net/ipv4/ipmr.c__u32 raddr=skb->raddr;
skb712net/ipv4/ipmr.cvif->bytes_out+=skb->len;
skb713net/ipv4/ipmr.cskb->dev=vif->dev;
skb714net/ipv4/ipmr.cskb->raddr=skb->h.iph->daddr;
skb719net/ipv4/ipmr.cif(vif->dev==NULL || ip_forward(skb, in_dev, frag|IPFWD_MULTICASTING|tunnel, raddr)==-1)
skb720net/ipv4/ipmr.ckfree_skb(skb, FREE_WRITE);
skb727net/ipv4/ipmr.cvoid ipmr_forward(struct sk_buff *skb, int is_frag)
skb732net/ipv4/ipmr.cint vif=ipmr_vifi_find(skb->dev);
skb735net/ipv4/ipmr.ckfree_skb(skb, FREE_WRITE);
skb740net/ipv4/ipmr.cvif_table[vif].bytes_in+=skb->len;
skb742net/ipv4/ipmr.ccache=ipmr_cache_find(skb->ip_hdr->saddr,skb->ip_hdr->daddr);
skb749net/ipv4/ipmr.cipmr_cache_unresolved(cache,vif,skb, is_frag);
skb761net/ipv4/ipmr.cif(skb->ip_hdr->ttl > cache->mfc_ttls[ct] && cache->mfc_ttls[ct]>0)
skb769net/ipv4/ipmr.cskb2=skb_copy(skb, GFP_ATOMIC);
skb773net/ipv4/ipmr.cipmr_queue_xmit(skb2, &vif_table[psend], skb->dev, is_frag);
skb781net/ipv4/ipmr.ckfree_skb(skb, FREE_WRITE);
skb784net/ipv4/ipmr.cipmr_queue_xmit(skb, &vif_table[psend], skb->dev, is_frag);
skb74net/ipv4/packet.cint packet_rcv(struct sk_buff *skb, struct device *dev,  struct packet_type *pt)
skb90net/ipv4/packet.cskb_push(skb,skb->data-skb->mac.raw);
skb96net/ipv4/packet.cskb->dev = dev;
skb103net/ipv4/packet.cif(sock_queue_rcv_skb(sk,skb)<0)
skb105net/ipv4/packet.cskb->sk = NULL;
skb106net/ipv4/packet.ckfree_skb(skb, FREE_READ);
skb126net/ipv4/packet.cstruct sk_buff *skb;
skb168net/ipv4/packet.cskb = sock_wmalloc(sk, len, 0, GFP_KERNEL);
skb176net/ipv4/packet.cif (skb == NULL) 
skb185net/ipv4/packet.cskb->sk = sk;
skb186net/ipv4/packet.cskb->free = 1;
skb187net/ipv4/packet.cmemcpy_fromiovec(skb_put(skb,len), msg->msg_iov, len);
skb188net/ipv4/packet.cskb->arp = 1;    /* No ARP needs doing on this (complete) frame */
skb195net/ipv4/packet.cdev_queue_xmit(skb, dev, sk->priority);
skb197net/ipv4/packet.ckfree_skb(skb, FREE_WRITE);
skb383net/ipv4/packet.cstruct sk_buff *skb;
skb411net/ipv4/packet.cskb=skb_recv_datagram(sk,flags,noblock,&err);
skb419net/ipv4/packet.cif(skb==NULL)
skb427net/ipv4/packet.ccopied = min(len, skb->len);
skb429net/ipv4/packet.cmemcpy_toiovec(msg->msg_iov, skb->data, copied);  /* We can't use skb_copy_datagram here */
skb430net/ipv4/packet.csk->stamp=skb->stamp;
skb438net/ipv4/packet.csaddr->sa_family = skb->dev->type;
skb439net/ipv4/packet.cstrncpy(saddr->sa_data,skb->dev->name, 15);
skb447net/ipv4/packet.cskb_free_datagram(skb);
skb194net/ipv4/rarp.cstatic int rarp_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt)
skb199net/ipv4/rarp.cstruct arphdr *rarp = (struct arphdr *) skb->data;
skb200net/ipv4/rarp.cunsigned char *rarp_ptr = skb_pull(skb,sizeof(struct arphdr));
skb212net/ipv4/rarp.ckfree_skb(skb, FREE_READ);
skb221net/ipv4/rarp.ckfree_skb(skb, FREE_READ);
skb239net/ipv4/rarp.ckfree_skb(skb, FREE_READ);
skb275net/ipv4/rarp.ckfree_skb(skb, FREE_READ);
skb119net/ipv4/raw.cint raw_rcv(struct sock *sk, struct sk_buff *skb, struct device *dev, __u32 saddr, __u32 daddr)
skb122net/ipv4/raw.cskb->sk = sk;
skb123net/ipv4/raw.cskb_trim(skb,ntohs(skb->ip_hdr->tot_len));
skb125net/ipv4/raw.cskb->h.raw = (unsigned char *) skb->ip_hdr;
skb126net/ipv4/raw.cskb->dev = dev;
skb127net/ipv4/raw.cskb->saddr = daddr;
skb128net/ipv4/raw.cskb->daddr = saddr;
skb137net/ipv4/raw.cskb->ip_hdr->tot_len=ntohs(skb->ip_hdr->tot_len-4*skb->ip_hdr->ihl);
skb142net/ipv4/raw.cif(sock_queue_rcv_skb(sk,skb)<0)
skb145net/ipv4/raw.cskb->sk=NULL;
skb146net/ipv4/raw.ckfree_skb(skb, FREE_READ);
skb317net/ipv4/raw.cstruct sk_buff *skb;
skb330net/ipv4/raw.cskb=skb_recv_datagram(sk,flags,noblock,&err);
skb331net/ipv4/raw.cif(skb==NULL)
skb334net/ipv4/raw.ccopied = min(len, skb->len);
skb336net/ipv4/raw.cskb_copy_datagram_iovec(skb, 0, msg->msg_iov, copied);
skb337net/ipv4/raw.csk->stamp=skb->stamp;
skb343net/ipv4/raw.csin->sin_addr.s_addr = skb->daddr;
skb345net/ipv4/raw.cskb_free_datagram(skb);
skb460net/ipv4/tcp.cstruct sk_buff *skb;
skb464net/ipv4/tcp.cskb=tcp_find_established(s);
skb465net/ipv4/tcp.cif(skb!=NULL)
skb466net/ipv4/tcp.cskb_unlink(skb);  /* Take it off the queue */
skb468net/ipv4/tcp.creturn skb;
skb479net/ipv4/tcp.cstruct sk_buff *skb;
skb481net/ipv4/tcp.cwhile ((skb = skb_dequeue(&sk->receive_queue)) != NULL) 
skb483net/ipv4/tcp.cskb->sk->dead=1;
skb484net/ipv4/tcp.ctcp_close(skb->sk, 0);
skb485net/ipv4/tcp.ckfree_skb(skb, FREE_READ);
skb604net/ipv4/tcp.cstruct sk_buff *skb;
skb613net/ipv4/tcp.cif (sk == NULL || (skb = skb_peek(&sk->receive_queue)) == NULL)
skb630net/ipv4/tcp.cif (before(counted, skb->seq))     /* Found a hole so stops here */
skb632net/ipv4/tcp.csum = skb->len - (counted - skb->seq);  /* Length - header but start from where we are up to (avoid overlaps) */
skb633net/ipv4/tcp.cif (skb->h.th->syn)
skb638net/ipv4/tcp.cif (skb->h.th->syn) 
skb658net/ipv4/tcp.cif (skb->h.th->urg)
skb660net/ipv4/tcp.cif (amount && skb->h.th->psh) break;
skb661net/ipv4/tcp.cskb = skb->next;
skb663net/ipv4/tcp.cwhile(skb != (struct sk_buff *)&sk->receive_queue);
skb807net/ipv4/tcp.cunsigned long daddr, int len, struct sk_buff *skb)
skb814net/ipv4/tcp.ccsum_partial((char *)th,sizeof(*th),skb->csum));
skb866net/ipv4/tcp.cstruct sk_buff *skb;
skb1018net/ipv4/tcp.cif ((skb = tcp_dequeue_partial(sk)) != NULL) 
skb1022net/ipv4/tcp.ctcp_size = skb->tail - (unsigned char *)(skb->h.th + 1);
skb1034net/ipv4/tcp.cmemcpy_fromfs(skb_put(skb,copy), from, copy);
skb1035net/ipv4/tcp.cskb->csum = csum_partial(skb->tail - tcp_size, tcp_size, 0);
skb1043net/ipv4/tcp.ctcp_send_skb(sk, skb);
skb1045net/ipv4/tcp.ctcp_enqueue_partial(skb, sk);
skb1088net/ipv4/tcp.cskb = sock_wmalloc(sk, sk->mtu + 128 + prot->max_header + 15, 0, GFP_KERNEL);
skb1090net/ipv4/tcp.csend_tmp = skb;
skb1100net/ipv4/tcp.cskb = sock_wmalloc(sk, copy + prot->max_header + 15 , 0, GFP_KERNEL);
skb1108net/ipv4/tcp.cif (skb == NULL) 
skb1140net/ipv4/tcp.cskb->sk = sk;
skb1141net/ipv4/tcp.cskb->free = 0;
skb1142net/ipv4/tcp.cskb->localroute = sk->localroute|(flags&MSG_DONTROUTE);
skb1149net/ipv4/tcp.ctmp = prot->build_header(skb, sk->saddr, sk->daddr, &dev,
skb1150net/ipv4/tcp.cIPPROTO_TCP, sk->opt, skb->truesize,sk->ip_tos,sk->ip_ttl,&sk->ip_route_cache);
skb1153net/ipv4/tcp.csock_wfree(sk, skb);
skb1160net/ipv4/tcp.cskb->ip_hdr->frag_off |= htons(IP_DF);
skb1162net/ipv4/tcp.cskb->dev = dev;
skb1163net/ipv4/tcp.cskb->h.th =(struct tcphdr *)skb_put(skb,sizeof(struct tcphdr));
skb1164net/ipv4/tcp.ctmp = tcp_build_header(skb->h.th, sk, seglen-copy);
skb1167net/ipv4/tcp.csock_wfree(sk, skb);
skb1176net/ipv4/tcp.cskb->h.th->urg = 1;
skb1177net/ipv4/tcp.cskb->h.th->urg_ptr = ntohs(copy);
skb1180net/ipv4/tcp.cskb->csum = csum_partial_copy_fromuser(from,
skb1181net/ipv4/tcp.cskb_put(skb,copy), copy, 0);
skb1187net/ipv4/tcp.cskb->free = 0;
skb1195net/ipv4/tcp.ctcp_send_skb(sk, skb);
skb1367net/ipv4/tcp.cstatic inline void tcp_eat_skb(struct sock *sk, struct sk_buff * skb)
skb1370net/ipv4/tcp.cskb->sk = sk;
skb1371net/ipv4/tcp.c__skb_unlink(skb, &sk->receive_queue);
skb1372net/ipv4/tcp.ckfree_skb(skb, FREE_READ);
skb1384net/ipv4/tcp.cstruct sk_buff *skb;
skb1391net/ipv4/tcp.cwhile ((skb=skb_peek(&sk->receive_queue)) != NULL) {
skb1392net/ipv4/tcp.cif (!skb->used || skb->users)
skb1394net/ipv4/tcp.ctcp_eat_skb(sk, skb);
skb1488net/ipv4/tcp.cstruct sk_buff * skb;
skb1504net/ipv4/tcp.cskb = skb_peek(&sk->receive_queue);
skb1507net/ipv4/tcp.cif (!skb)
skb1509net/ipv4/tcp.cif (before(*seq, skb->seq))
skb1511net/ipv4/tcp.coffset = *seq - skb->seq;
skb1512net/ipv4/tcp.cif (skb->h.th->syn)
skb1514net/ipv4/tcp.cif (offset < skb->len)
skb1516net/ipv4/tcp.cif (skb->h.th->fin)
skb1519net/ipv4/tcp.cskb->used = 1;
skb1520net/ipv4/tcp.cskb = skb->next;
skb1522net/ipv4/tcp.cwhile (skb != (struct sk_buff *)&sk->receive_queue);
skb1578net/ipv4/tcp.cskb->users++;
skb1584net/ipv4/tcp.cused = skb->len - offset;
skb1623net/ipv4/tcp.cmemcpy_toiovec(msg->msg_iov,((unsigned char *)skb->h.th) +
skb1624net/ipv4/tcp.cskb->h.th->doff*4 + offset, used);
skb1634net/ipv4/tcp.cskb->users --;
skb1638net/ipv4/tcp.cif (used + offset < skb->len)
skb1645net/ipv4/tcp.cif (skb->h.th->fin)
skb1649net/ipv4/tcp.cskb->used = 1;
skb1650net/ipv4/tcp.cif (!skb->users)
skb1651net/ipv4/tcp.ctcp_eat_skb(sk, skb);    
skb1663net/ipv4/tcp.cskb->used = 1;
skb1830net/ipv4/tcp.cstruct sk_buff *skb;
skb1838net/ipv4/tcp.cwhile((skb=skb_dequeue(&sk->receive_queue))!=NULL)
skb1839net/ipv4/tcp.ckfree_skb(skb, FREE_READ);
skb1876net/ipv4/tcp.cstruct sk_buff *skb;
skb1893net/ipv4/tcp.cwhile((skb = tcp_dequeue_established(sk)) == NULL) 
skb1919net/ipv4/tcp.cnewsk = skb->sk;
skb1921net/ipv4/tcp.ckfree_skb(skb, FREE_READ);
skb204net/ipv4/tcp_input.cstatic int tcp_reset(struct sock *sk, struct sk_buff *skb)
skb235net/ipv4/tcp_input.ckfree_skb(skb, FREE_READ);
skb313net/ipv4/tcp_input.cstatic void tcp_conn_request(struct sock *sk, struct sk_buff *skb,
skb320net/ipv4/tcp_input.cth = skb->h.th;
skb333net/ipv4/tcp_input.ckfree_skb(skb, FREE_READ);
skb348net/ipv4/tcp_input.ckfree_skb(skb, FREE_READ);
skb365net/ipv4/tcp_input.ckfree_skb(skb, FREE_READ);
skb379net/ipv4/tcp_input.ckfree_skb(skb, FREE_READ);
skb382net/ipv4/tcp_input.cif (ip_options_echo(sk->opt, opt, daddr, saddr, skb)) 
skb387net/ipv4/tcp_input.ckfree_skb(skb, FREE_READ);
skb419net/ipv4/tcp_input.cnewsk->acked_seq = skb->seq+1;
skb420net/ipv4/tcp_input.cnewsk->lastwin_seq = skb->seq+1;
skb422net/ipv4/tcp_input.cnewsk->copied_seq = skb->seq+1;
skb423net/ipv4/tcp_input.cnewsk->fin_seq = skb->seq;
skb440net/ipv4/tcp_input.cnewsk->dummy_th.source = skb->h.th->dest;
skb441net/ipv4/tcp_input.cnewsk->dummy_th.dest = skb->h.th->source;
skb452net/ipv4/tcp_input.cnewsk->acked_seq = skb->seq + 1;
skb453net/ipv4/tcp_input.cnewsk->copied_seq = skb->seq + 1;
skb461net/ipv4/tcp_input.cnewsk->ip_tos=skb->ip_hdr->tos;
skb510net/ipv4/tcp_input.ctcp_options(newsk,skb->h.th);
skb513net/ipv4/tcp_input.ctcp_send_synack(newsk, sk, skb);
skb529net/ipv4/tcp_input.cstruct sk_buff *skb;
skb544net/ipv4/tcp_input.cskb = skb2;
skb545net/ipv4/tcp_input.cskb2 = skb->link3;
skb546net/ipv4/tcp_input.cskb->link3 = NULL;
skb547net/ipv4/tcp_input.cif (after(skb->end_seq, window_seq)) 
skb552net/ipv4/tcp_input.cif (skb->next != NULL) 
skb554net/ipv4/tcp_input.cskb_unlink(skb);        
skb558net/ipv4/tcp_input.cskb_queue_head(&sk->write_queue,skb);
skb560net/ipv4/tcp_input.cskb_append(wskb,skb);
skb561net/ipv4/tcp_input.cwskb = skb;
skb567net/ipv4/tcp_input.csk->send_head = skb;
skb568net/ipv4/tcp_input.csk->send_tail = skb;
skb572net/ipv4/tcp_input.csk->send_tail->link3 = skb;
skb573net/ipv4/tcp_input.csk->send_tail = skb;
skb575net/ipv4/tcp_input.cskb->link3 = NULL;
skb1103net/ipv4/tcp_input.cstatic int tcp_fin(struct sk_buff *skb, struct sock *sk, struct tcphdr *th)
skb1105net/ipv4/tcp_input.csk->fin_seq = skb->end_seq;
skb1190net/ipv4/tcp_input.cstatic int tcp_data(struct sk_buff *skb, struct sock *sk, 
skb1198net/ipv4/tcp_input.cth = skb->h.th;
skb1199net/ipv4/tcp_input.cskb_pull(skb,th->doff*4);
skb1200net/ipv4/tcp_input.cskb_trim(skb,len-(th->doff*4));
skb1207net/ipv4/tcp_input.csk->bytes_rcv += skb->len;
skb1209net/ipv4/tcp_input.cif (skb->len == 0 && !th->fin) 
skb1217net/ipv4/tcp_input.ckfree_skb(skb, FREE_READ);
skb1236net/ipv4/tcp_input.cif(skb->len)  /* We don't care if it's just an ack or
skb1239net/ipv4/tcp_input.cnew_seq = skb->seq + skb->len + th->syn;  /* Right edge of _data_ part of frame */
skb1262net/ipv4/tcp_input.ctcp_send_reset(sk->saddr, sk->daddr, skb->h.th,
skb1263net/ipv4/tcp_input.csk->prot, NULL, skb->dev, sk->ip_tos, sk->ip_ttl);
skb1269net/ipv4/tcp_input.ckfree_skb(skb, FREE_READ);
skb1292net/ipv4/tcp_input.cskb_queue_head(&sk->receive_queue,skb);
skb1303net/ipv4/tcp_input.cprintk("skb->seq = %d\n",skb->seq);
skb1316net/ipv4/tcp_input.cif (skb->seq==skb1->seq && skb->len>=skb1->len)
skb1318net/ipv4/tcp_input.cskb_append(skb1,skb);
skb1330net/ipv4/tcp_input.cif (after(skb->seq+1, skb1->seq))
skb1332net/ipv4/tcp_input.cskb_append(skb1,skb);
skb1341net/ipv4/tcp_input.cskb_queue_head(&sk->receive_queue, skb);
skb1363net/ipv4/tcp_input.cif ((!dup_dumped && (skb1 == NULL || skb1->acked)) || before(skb->seq, sk->acked_seq+1)) 
skb1365net/ipv4/tcp_input.cif (before(skb->seq, sk->acked_seq+1)) 
skb1368net/ipv4/tcp_input.cif (after(skb->end_seq, sk->acked_seq)) 
skb1369net/ipv4/tcp_input.csk->acked_seq = skb->end_seq;
skb1371net/ipv4/tcp_input.cskb->acked = 1;
skb1378net/ipv4/tcp_input.cif (skb->h.th->fin) 
skb1380net/ipv4/tcp_input.ctcp_fin(skb,sk,skb->h.th);
skb1383net/ipv4/tcp_input.cfor(skb2 = skb->next;
skb1399net/ipv4/tcp_input.ctcp_fin(skb,sk,skb->h.th);
skb1446net/ipv4/tcp_input.cif (!skb->acked) 
skb1574net/ipv4/tcp_input.cint tcp_rcv(struct sk_buff *skb, struct device *dev, struct options *opt,
skb1588net/ipv4/tcp_input.cth = skb->h.th;
skb1589net/ipv4/tcp_input.csk = skb->sk;
skb1592net/ipv4/tcp_input.cif (skb->pkt_type!=PACKET_HOST)
skb1599net/ipv4/tcp_input.cskb_pull(skb, skb->h.raw-skb->data);
skb1604net/ipv4/tcp_input.cswitch (skb->ip_summed) 
skb1607net/ipv4/tcp_input.cskb->csum = csum_partial((char *)th, len, 0);
skb1609net/ipv4/tcp_input.cif (tcp_check(th, len, saddr, daddr, skb->csum))
skb1617net/ipv4/tcp_input.cskb->sk = sk;
skb1618net/ipv4/tcp_input.cskb->seq = ntohl(th->seq);
skb1619net/ipv4/tcp_input.cskb->end_seq = skb->seq + th->syn + th->fin + len - th->doff*4;
skb1620net/ipv4/tcp_input.cskb->ack_seq = ntohl(th->ack_seq);
skb1622net/ipv4/tcp_input.cskb->acked = 0;
skb1623net/ipv4/tcp_input.cskb->used = 0;
skb1624net/ipv4/tcp_input.cskb->free = 1;
skb1625net/ipv4/tcp_input.cskb->saddr = daddr;
skb1626net/ipv4/tcp_input.cskb->daddr = saddr;
skb1632net/ipv4/tcp_input.cskb_queue_tail(&sk->back_log, skb);
skb1663net/ipv4/tcp_input.cskb->sk=sk;
skb1664net/ipv4/tcp_input.csk->rmem_alloc += skb->truesize;
skb1698net/ipv4/tcp_input.ckfree_skb(skb, FREE_READ);
skb1707net/ipv4/tcp_input.ctcp_conn_request(sk, skb, daddr, saddr, opt, dev, tcp_init_seq());
skb1729net/ipv4/tcp_input.cif (sk->state == TCP_SYN_RECV && th->syn && skb->seq+1 == sk->acked_seq)
skb1731net/ipv4/tcp_input.ckfree_skb(skb, FREE_READ);
skb1748net/ipv4/tcp_input.cif(!tcp_ack(sk,th,skb->ack_seq,len))
skb1755net/ipv4/tcp_input.ckfree_skb(skb, FREE_READ);
skb1760net/ipv4/tcp_input.creturn tcp_reset(sk,skb);
skb1768net/ipv4/tcp_input.ckfree_skb(skb, FREE_READ);
skb1777net/ipv4/tcp_input.csk->acked_seq = skb->seq+1;
skb1778net/ipv4/tcp_input.csk->lastwin_seq = skb->seq+1;
skb1779net/ipv4/tcp_input.csk->fin_seq = skb->seq;
skb1808net/ipv4/tcp_input.creturn tcp_reset(sk,skb);
skb1818net/ipv4/tcp_input.ckfree_skb(skb, FREE_READ);
skb1837net/ipv4/tcp_input.cafter(skb->seq, sk->acked_seq) && !th->rst)
skb1843net/ipv4/tcp_input.csk->rmem_alloc -= skb->truesize;
skb1844net/ipv4/tcp_input.cskb->sk = NULL;
skb1853net/ipv4/tcp_input.cskb->sk = sk;
skb1854net/ipv4/tcp_input.csk->rmem_alloc += skb->truesize;
skb1855net/ipv4/tcp_input.ctcp_conn_request(sk, skb, daddr, saddr,opt, dev,seq+128000);
skb1859net/ipv4/tcp_input.ckfree_skb(skb, FREE_READ);
skb1871net/ipv4/tcp_input.cif (!tcp_sequence(sk, skb->seq, skb->end_seq))
skb1874net/ipv4/tcp_input.ckfree_skb(skb, FREE_READ);
skb1880net/ipv4/tcp_input.creturn tcp_reset(sk,skb);
skb1888net/ipv4/tcp_input.ctcp_send_reset(daddr,saddr,th, &tcp_prot, opt, dev, skb->ip_hdr->tos, 255);
skb1889net/ipv4/tcp_input.creturn tcp_reset(sk,skb);  
skb1899net/ipv4/tcp_input.cif(th->ack && !tcp_ack(sk,th,skb->ack_seq,len))
skb1909net/ipv4/tcp_input.ckfree_skb(skb, FREE_READ);
skb1924net/ipv4/tcp_input.ckfree_skb(skb, FREE_READ);
skb1940net/ipv4/tcp_input.cif(tcp_data(skb,sk, saddr, len))
skb1941net/ipv4/tcp_input.ckfree_skb(skb, FREE_READ);
skb1954net/ipv4/tcp_input.ctcp_send_reset(daddr, saddr, th, &tcp_prot, opt,dev,skb->ip_hdr->tos,255);
skb1960net/ipv4/tcp_input.cskb->sk = NULL;
skb1961net/ipv4/tcp_input.ckfree_skb(skb, FREE_READ);
skb31net/ipv4/tcp_output.cvoid tcp_send_skb(struct sock *sk, struct sk_buff *skb)
skb34net/ipv4/tcp_output.cstruct tcphdr * th = skb->h.th;
skb40net/ipv4/tcp_output.csize = skb->len - ((unsigned char *) th - skb->data);
skb46net/ipv4/tcp_output.cif (size < sizeof(struct tcphdr) || size > skb->len) 
skb49net/ipv4/tcp_output.cskb, skb->data, th, skb->len);
skb50net/ipv4/tcp_output.ckfree_skb(skb, FREE_WRITE);
skb65net/ipv4/tcp_output.ckfree_skb(skb,FREE_WRITE);
skb75net/ipv4/tcp_output.cskb->seq = ntohl(th->seq);
skb76net/ipv4/tcp_output.cskb->end_seq = skb->seq + size - 4*th->doff;
skb86net/ipv4/tcp_output.cif (after(skb->end_seq, sk->window_seq) ||
skb93net/ipv4/tcp_output.cif (skb->next != NULL) 
skb96net/ipv4/tcp_output.cskb_unlink(skb);
skb98net/ipv4/tcp_output.cskb_queue_tail(&sk->write_queue, skb);
skb113net/ipv4/tcp_output.ctcp_send_check(th, sk->saddr, sk->daddr, size, skb);
skb123net/ipv4/tcp_output.csk->prot->queue_xmit(sk, skb->dev, skb, 0);
skb150net/ipv4/tcp_output.cstruct sk_buff * skb;
skb155net/ipv4/tcp_output.cskb = sk->partial;
skb156net/ipv4/tcp_output.cif (skb) {
skb161net/ipv4/tcp_output.creturn skb;
skb170net/ipv4/tcp_output.cstruct sk_buff *skb;
skb174net/ipv4/tcp_output.cwhile ((skb = tcp_dequeue_partial(sk)) != NULL)
skb175net/ipv4/tcp_output.ctcp_send_skb(sk, skb);
skb182net/ipv4/tcp_output.cvoid tcp_enqueue_partial(struct sk_buff * skb, struct sock * sk)
skb192net/ipv4/tcp_output.csk->partial = skb;
skb214net/ipv4/tcp_output.cstruct sk_buff *skb;
skb232net/ipv4/tcp_output.cwhile((skb = skb_peek(&sk->write_queue)) != NULL &&
skb233net/ipv4/tcp_output.cbefore(skb->end_seq, sk->window_seq + 1) &&
skb236net/ipv4/tcp_output.cbefore(skb->end_seq, sk->rcv_ack_seq + 1))
skb239net/ipv4/tcp_output.cIS_SKB(skb);
skb240net/ipv4/tcp_output.cskb_unlink(skb);
skb246net/ipv4/tcp_output.cif (before(skb->end_seq, sk->rcv_ack_seq +1)) 
skb254net/ipv4/tcp_output.ckfree_skb(skb, FREE_WRITE);
skb270net/ipv4/tcp_output.ciph = skb->ip_hdr;
skb272net/ipv4/tcp_output.csize = skb->len - (((unsigned char *) th) - skb->data);
skb284net/ipv4/tcp_output.ctcp_send_check(th, sk->saddr, sk->daddr, size, skb);
skb286net/ipv4/tcp_output.csk->sent_seq = skb->end_seq;
skb292net/ipv4/tcp_output.csk->prot->queue_xmit(sk, skb->dev, skb, skb->free);
skb315net/ipv4/tcp_output.cstruct sk_buff * skb;
skb322net/ipv4/tcp_output.cskb = sk->send_head;
skb324net/ipv4/tcp_output.cwhile (skb != NULL)
skb330net/ipv4/tcp_output.cdev = skb->dev;
skb331net/ipv4/tcp_output.cIS_SKB(skb);
skb332net/ipv4/tcp_output.cskb->when = jiffies;
skb344net/ipv4/tcp_output.cif (skb_device_locked(skb))
skb351net/ipv4/tcp_output.cskb_pull(skb,((unsigned char *)skb->ip_hdr)-skb->data);
skb362net/ipv4/tcp_output.ciph = (struct iphdr *)skb->data;
skb378net/ipv4/tcp_output.cstruct options *  opt = (struct options*)skb->proto_priv;
skb379net/ipv4/tcp_output.crt = ip_check_route(&sk->ip_route_cache, opt->srr?opt->faddr:iph->daddr, skb->localroute);
skb391net/ipv4/tcp_output.cif(skb->sk)
skb393net/ipv4/tcp_output.cskb->sk->err_soft=ENETUNREACH;
skb394net/ipv4/tcp_output.cskb->sk->error_report(skb->sk);
skb400net/ipv4/tcp_output.cskb->raddr=rt->rt_gateway;
skb401net/ipv4/tcp_output.cskb->dev=dev;
skb402net/ipv4/tcp_output.cskb->arp=1;
skb405net/ipv4/tcp_output.cmemcpy(skb_push(skb,dev->hard_header_len),rt->rt_hh->hh_data,dev->hard_header_len);
skb408net/ipv4/tcp_output.cskb->arp = 0;
skb416net/ipv4/tcp_output.cif(dev->hard_header(skb, dev, ETH_P_IP, NULL, NULL, skb->len)<0)
skb417net/ipv4/tcp_output.cskb->arp=0;
skb435net/ipv4/tcp_output.ctcp_send_check(th, sk->saddr, sk->daddr, size, skb);
skb451net/ipv4/tcp_output.cif (sk && !skb_device_locked(skb))
skb454net/ipv4/tcp_output.cskb_unlink(skb);
skb457net/ipv4/tcp_output.cdev_queue_xmit(skb, dev, sk->priority);
skb484net/ipv4/tcp_output.cskb = skb->link3;
skb664net/ipv4/tcp_output.cvoid tcp_send_synack(struct sock * newsk, struct sock * sk, struct sk_buff * skb)
skb680net/ipv4/tcp_output.ckfree_skb(skb, FREE_READ);
skb707net/ipv4/tcp_output.cskb->sk = sk;
skb708net/ipv4/tcp_output.ckfree_skb(skb, FREE_READ);
skb715net/ipv4/tcp_output.cmemcpy(t1, skb->h.th, sizeof(*t1));
skb721net/ipv4/tcp_output.ct1->dest = skb->h.th->source;
skb742net/ipv4/tcp_output.cskb->sk = newsk;
skb748net/ipv4/tcp_output.csk->rmem_alloc -= skb->truesize;
skb749net/ipv4/tcp_output.cnewsk->rmem_alloc += skb->truesize;
skb751net/ipv4/tcp_output.cskb_queue_tail(&sk->receive_queue,skb);
skb868net/ipv4/tcp_output.cstruct sk_buff *buff,*skb;
skb892net/ipv4/tcp_output.c(skb=skb_peek(&sk->write_queue)))
skb918net/ipv4/tcp_output.ciph = (struct iphdr *)skb->ip_hdr;
skb235net/ipv4/tcp_timer.cstruct sk_buff *skb;
skb240net/ipv4/tcp_timer.cskb = sk->send_head;
skb241net/ipv4/tcp_timer.cif (!skb) 
skb253net/ipv4/tcp_timer.cif (jiffies < skb->when + sk->rto) 
skb257net/ipv4/tcp_timer.ctcp_reset_xmit_timer (sk, TIME_WRITE, skb->when + sk->rto - jiffies);
skb138net/ipv4/udp.cstatic int udp_deliver(struct sock *sk, struct udphdr *uh, struct sk_buff *skb, struct device *dev, long saddr, long daddr, int len);
skb465net/ipv4/udp.cstruct sk_buff *skb;
skb470net/ipv4/udp.cskb = skb_peek(&sk->receive_queue);
skb471net/ipv4/udp.cif (skb != NULL) {
skb477net/ipv4/udp.camount = skb->len-sizeof(struct udphdr);
skb504net/ipv4/udp.cstruct sk_buff *skb;
skb520net/ipv4/udp.cskb=skb_recv_datagram(sk,flags,noblock,&er);
skb521net/ipv4/udp.cif(skb==NULL)
skb524net/ipv4/udp.ctruesize = skb->len - sizeof(struct udphdr);
skb531net/ipv4/udp.cskb_copy_datagram_iovec(skb,sizeof(struct udphdr),msg->msg_iov,copied);
skb532net/ipv4/udp.csk->stamp=skb->stamp;
skb538net/ipv4/udp.csin->sin_port = skb->h.uh->source;
skb539net/ipv4/udp.csin->sin_addr.s_addr = skb->daddr;
skb542net/ipv4/udp.cskb_free_datagram(skb);
skb594net/ipv4/udp.cint udp_rcv(struct sk_buff *skb, struct device *dev, struct options *opt,
skb610net/ipv4/udp.cuh = (struct udphdr *) skb->h.uh;
skb624net/ipv4/udp.ckfree_skb(skb, FREE_WRITE);
skb636net/ipv4/udp.c( (skb->ip_summed == CHECKSUM_HW) && udp_check(uh, len, saddr, daddr, skb->csum ) ) ||
skb637net/ipv4/udp.c( (skb->ip_summed == CHECKSUM_NONE) && udp_check(uh, len, saddr, daddr,csum_partial((char*)uh, len, 0)))
skb653net/ipv4/udp.ckfree_skb(skb, FREE_WRITE);
skb677net/ipv4/udp.cskb1=skb_clone(skb,GFP_ATOMIC);
skb679net/ipv4/udp.cskb1=skb;
skb687net/ipv4/udp.ckfree_skb(skb, FREE_READ);
skb708net/ipv4/udp.cicmp_send(skb, ICMP_DEST_UNREACH, ICMP_PORT_UNREACH, 0, dev);
skb714net/ipv4/udp.cskb->sk = NULL;
skb715net/ipv4/udp.ckfree_skb(skb, FREE_WRITE);
skb718net/ipv4/udp.creturn udp_deliver(sk,uh,skb,dev, saddr, daddr, len);
skb721net/ipv4/udp.cstatic int udp_deliver(struct sock *sk, struct udphdr *uh, struct sk_buff *skb, struct device *dev, long saddr, long daddr, int len)
skb723net/ipv4/udp.cskb->sk = sk;
skb724net/ipv4/udp.cskb->dev = dev;
skb725net/ipv4/udp.cskb_trim(skb,len);
skb731net/ipv4/udp.cskb->daddr = saddr;
skb732net/ipv4/udp.cskb->saddr = daddr;
skb742net/ipv4/udp.cif (sock_queue_rcv_skb(sk,skb)<0) 
skb747net/ipv4/udp.cskb->sk = NULL;
skb748net/ipv4/udp.ckfree_skb(skb, FREE_WRITE);
skb180net/ipx/af_ipx.cstruct sk_buff  *skb;
skb183net/ipx/af_ipx.cwhile((skb=skb_dequeue(&sk->receive_queue))!=NULL) {
skb184net/ipx/af_ipx.ckfree_skb(skb,FREE_READ);
skb348net/ipx/af_ipx.cstatic int ipxitf_def_skb_handler(struct sock *sock, struct sk_buff *skb)
skb352net/ipx/af_ipx.cif((retval = sock_queue_rcv_skb(sock, skb))<0) 
skb358net/ipx/af_ipx.ckfree_skb(skb,FREE_WRITE);
skb369net/ipx/af_ipx.cipxitf_demux_socket(ipx_interface *intrfc, struct sk_buff *skb, int copy) 
skb371net/ipx/af_ipx.cipx_packet  *ipx = (ipx_packet *)(skb->h.raw);
skb391net/ipx/af_ipx.cskb1 = skb_clone(skb, GFP_ATOMIC);
skb403net/ipx/af_ipx.cskb1 = skb;
skb425net/ipx/af_ipx.ckfree_skb(skb, FREE_WRITE);
skb433net/ipx/af_ipx.cipxitf_demux_socket(ipx_interface *intrfc, struct sk_buff *skb, int copy) 
skb435net/ipx/af_ipx.cipx_packet  *ipx = (ipx_packet *)(skb->h.raw);
skb478net/ipx/af_ipx.ckfree_skb(skb,FREE_WRITE);
skb492net/ipx/af_ipx.cskb1 = skb_clone(skb, GFP_ATOMIC);
skb498net/ipx/af_ipx.cskb1 = skb;
skb531net/ipx/af_ipx.cipxitf_adjust_skbuff(ipx_interface *intrfc, struct sk_buff *skb)
skb534net/ipx/af_ipx.cint  in_offset = skb->h.raw - skb->head;
skb540net/ipx/af_ipx.cskb->arp = skb->free = 1;
skb541net/ipx/af_ipx.creturn skb;
skb545net/ipx/af_ipx.clen = skb->len + out_offset;
skb549net/ipx/af_ipx.cskb2->h.raw=skb_put(skb2,skb->len);
skb552net/ipx/af_ipx.cmemcpy(skb2->h.raw, skb->h.raw, skb->len);
skb554net/ipx/af_ipx.ckfree_skb(skb, FREE_WRITE);
skb558net/ipx/af_ipx.cstatic int ipxitf_send(ipx_interface *intrfc, struct sk_buff *skb, char *node)
skb560net/ipx/af_ipx.cipx_packet  *ipx = (ipx_packet *)(skb->h.raw);
skb592net/ipx/af_ipx.cif(skb->sk)
skb594net/ipx/af_ipx.cskb->sk->wmem_alloc-=skb->truesize;
skb595net/ipx/af_ipx.cskb->sk=NULL;
skb600net/ipx/af_ipx.creturn ipxitf_demux_socket(intrfc, skb, 0);
skb607net/ipx/af_ipx.cif (!send_to_wire && skb->sk)
skb609net/ipx/af_ipx.cskb->sk->wmem_alloc-=skb->truesize;
skb610net/ipx/af_ipx.cskb->sk=NULL;
skb612net/ipx/af_ipx.cipxitf_demux_socket(intrfc, skb, send_to_wire);
skb640net/ipx/af_ipx.ckfree_skb(skb,FREE_WRITE);
skb658net/ipx/af_ipx.cskb = ipxitf_adjust_skbuff(intrfc, skb);
skb659net/ipx/af_ipx.cif (skb == NULL) 
skb663net/ipx/af_ipx.cskb->dev = dev;
skb664net/ipx/af_ipx.cskb->protocol = htons(ETH_P_IPX);
skb665net/ipx/af_ipx.cdl->datalink_header(dl, skb, dest_node);
skb671net/ipx/af_ipx.cdump_pkt("IPX snd:", (ipx_packet *)skb->h.raw);
skb672net/ipx/af_ipx.cdump_data("ETH hdr:", skb->data, skb->h.raw - skb->data);
skb679net/ipx/af_ipx.cdev_queue_xmit(skb, dev, SOPRI_NORMAL);
skb694net/ipx/af_ipx.cstatic int ipxitf_rcv(ipx_interface *intrfc, struct sk_buff *skb)
skb696net/ipx/af_ipx.cipx_packet  *ipx = (ipx_packet *) (skb->h.raw);
skb704net/ipx/af_ipx.cif (call_in_firewall(PF_IPX, skb, ipx)!=FW_ACCEPT)
skb706net/ipx/af_ipx.ckfree_skb(skb, FREE_READ);
skb748net/ipx/af_ipx.cif (call_fw_firewall(PF_IPX, skb, ipx)!=FW_ACCEPT)
skb750net/ipx/af_ipx.ckfree_skb(skb, FREE_READ);
skb755net/ipx/af_ipx.cif ((skb->pkt_type != PACKET_BROADCAST) &&
skb756net/ipx/af_ipx.c(skb->pkt_type != PACKET_MULTICAST))
skb757net/ipx/af_ipx.creturn ipxrtr_route_skb(skb);
skb759net/ipx/af_ipx.ckfree_skb(skb,FREE_READ);
skb767net/ipx/af_ipx.creturn ipxitf_demux_socket(intrfc, skb, 0);
skb771net/ipx/af_ipx.ckfree_skb(skb,FREE_READ);
skb1158net/ipx/af_ipx.cstruct sk_buff *skb;
skb1185net/ipx/af_ipx.cskb=sock_alloc_send_skb(sk, size, 0, 0, &err);
skb1186net/ipx/af_ipx.cif(skb==NULL)
skb1189net/ipx/af_ipx.cskb_reserve(skb,ipx_offset);
skb1190net/ipx/af_ipx.cskb->free=1;
skb1191net/ipx/af_ipx.cskb->arp=1;
skb1192net/ipx/af_ipx.cskb->sk=sk;
skb1195net/ipx/af_ipx.cipx=(ipx_packet *)skb_put(skb,sizeof(ipx_packet));
skb1200net/ipx/af_ipx.cskb->h.raw = (unsigned char *)ipx;
skb1223net/ipx/af_ipx.cmemcpy_fromiovec(skb_put(skb,len),iov,len);
skb1226net/ipx/af_ipx.cif(call_out_firewall(PF_IPX, skb, ipx)!=FW_ACCEPT)
skb1228net/ipx/af_ipx.ckfree_skb(skb, FREE_WRITE);
skb1233net/ipx/af_ipx.creturn ipxitf_send(intrfc, skb, (rt && rt->ir_routed) ? 
skb1238net/ipx/af_ipx.cipxrtr_route_skb(struct sk_buff *skb)
skb1240net/ipx/af_ipx.cipx_packet  *ipx = (ipx_packet *) (skb->h.raw);
skb1247net/ipx/af_ipx.ckfree_skb(skb,FREE_READ);
skb1251net/ipx/af_ipx.c(void)ipxitf_send(i, skb, (r->ir_routed) ? 
skb1922net/ipx/af_ipx.cint ipx_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt)
skb1929net/ipx/af_ipx.cipx=(ipx_packet *)skb->h.raw;
skb1935net/ipx/af_ipx.ckfree_skb(skb,FREE_READ);
skb1941net/ipx/af_ipx.ckfree_skb(skb,FREE_READ);
skb1954net/ipx/af_ipx.ckfree_skb(skb,FREE_READ);
skb1959net/ipx/af_ipx.creturn ipxitf_rcv(intrfc, skb);
skb2023net/ipx/af_ipx.cstruct sk_buff *skb;
skb2033net/ipx/af_ipx.cskb=skb_recv_datagram(sk,flags,noblock,&er);
skb2034net/ipx/af_ipx.cif(skb==NULL)
skb2040net/ipx/af_ipx.cipx = (ipx_packet *)(skb->h.raw);
skb2043net/ipx/af_ipx.cskb_copy_datagram_iovec(skb,sizeof(struct ipx_packet),msg->msg_iov,copied);
skb2053net/ipx/af_ipx.cskb_free_datagram(skb);
skb2088net/ipx/af_ipx.cstruct sk_buff *skb;
skb2090net/ipx/af_ipx.cif((skb=skb_peek(&sk->receive_queue))!=NULL)
skb2091net/ipx/af_ipx.camount=skb->len-sizeof(struct ipx_packet);
skb33net/netlink.cstatic int (*netlink_handler[MAX_LINKS])(struct sk_buff *skb);
skb49net/netlink.cstatic int netlink_err(struct sk_buff *skb)
skb51net/netlink.ckfree_skb(skb, FREE_READ);
skb60net/netlink.cint netlink_donothing(struct sk_buff *skb)
skb62net/netlink.ckfree_skb(skb, FREE_READ);
skb73net/netlink.cstruct sk_buff *skb;
skb74net/netlink.cskb=alloc_skb(count, GFP_KERNEL);
skb75net/netlink.cskb->free=1;
skb76net/netlink.cmemcpy_fromfs(skb_put(skb,count),buf, count);
skb77net/netlink.creturn (netlink_handler[minor])(skb);
skb87net/netlink.cstruct sk_buff *skb;
skb89net/netlink.cwhile((skb=skb_dequeue(&skb_queue_rd[minor]))==NULL)
skb103net/netlink.crdq_size[minor]-=skb->len;
skb105net/netlink.cif(skb->len<count)
skb106net/netlink.ccount=skb->len;
skb107net/netlink.cmemcpy_tofs(buf,skb->data,count);
skb108net/netlink.ckfree_skb(skb, FREE_READ);
skb177net/netlink.cint netlink_attach(int unit, int (*function)(struct sk_buff *skb))
skb194net/netlink.cint netlink_post(int unit, struct sk_buff *skb)
skb202net/netlink.cif(rdq_size[unit]+skb->len>MAX_QBYTES)
skb206net/netlink.cskb_queue_tail(&skb_queue_rd[unit], skb);
skb207net/netlink.crdq_size[unit]+=skb->len;
skb240net/netrom/af_netrom.cstruct sk_buff *skb;
skb251net/netrom/af_netrom.cwhile ((skb = skb_dequeue(&sk->receive_queue)) != NULL) {
skb252net/netrom/af_netrom.cif (skb->sk != sk) {      /* A pending connection */
skb253net/netrom/af_netrom.cskb->sk->dead = 1;  /* Queue the unaccepted socket for death */
skb254net/netrom/af_netrom.cnr_set_timer(skb->sk);
skb255net/netrom/af_netrom.cskb->sk->nr->state = NR_STATE_0;
skb258net/netrom/af_netrom.ckfree_skb(skb, FREE_READ);
skb821net/netrom/af_netrom.cstruct sk_buff *skb;
skb842net/netrom/af_netrom.cif ((skb = skb_dequeue(&sk->receive_queue)) == NULL) {
skb853net/netrom/af_netrom.c} while (skb == NULL);
skb855net/netrom/af_netrom.cnewsk = skb->sk;
skb860net/netrom/af_netrom.cskb->sk = NULL;
skb861net/netrom/af_netrom.ckfree_skb(skb, FREE_READ);
skb894net/netrom/af_netrom.cint nr_rx_frame(struct sk_buff *skb, struct device *dev)
skb903net/netrom/af_netrom.cskb->sk = NULL;    /* Initially we don't know who its for */
skb909net/netrom/af_netrom.csrc  = (ax25_address *)(skb->data + 0);
skb910net/netrom/af_netrom.cdest = (ax25_address *)(skb->data + 7);
skb912net/netrom/af_netrom.ccircuit_index = skb->data[15];
skb913net/netrom/af_netrom.ccircuit_id    = skb->data[16];
skb914net/netrom/af_netrom.cframetype     = skb->data[19];
skb921net/netrom/af_netrom.cskb_pull(skb, NR_NETWORK_LEN + NR_TRANSPORT_LEN);
skb922net/netrom/af_netrom.cskb->h.raw = skb->data;
skb924net/netrom/af_netrom.creturn nr_rx_ip(skb, dev);
skb934net/netrom/af_netrom.cskb->h.raw = skb->data;
skb936net/netrom/af_netrom.cif ((frametype & 0x0F) == NR_CONNACK && skb->len == 22)
skb941net/netrom/af_netrom.creturn nr_process_rx_frame(sk, skb);
skb949net/netrom/af_netrom.cuser   = (ax25_address *)(skb->data + 21);
skb952net/netrom/af_netrom.cnr_transmit_dm(skb);
skb956net/netrom/af_netrom.cwindow = skb->data[20];
skb958net/netrom/af_netrom.cskb->sk             = make;
skb979net/netrom/af_netrom.cif (skb->len == 37) {
skb980net/netrom/af_netrom.ctimeout = skb->data[36] * 256 + skb->data[35];
skb1001net/netrom/af_netrom.cskb_queue_head(&sk->receive_queue, skb);
skb1006net/netrom/af_netrom.csk->data_ready(sk, skb->len);
skb1017net/netrom/af_netrom.cstruct sk_buff *skb;
skb1057net/netrom/af_netrom.cif ((skb = sock_alloc_send_skb(sk, size, 0, 0, &err)) == NULL)
skb1060net/netrom/af_netrom.cskb->sk   = sk;
skb1061net/netrom/af_netrom.cskb->free = 1;
skb1062net/netrom/af_netrom.cskb->arp  = 1;
skb1064net/netrom/af_netrom.cskb_reserve(skb, size - len);
skb1070net/netrom/af_netrom.casmptr = skb_push(skb, NR_TRANSPORT_LEN);
skb1090net/netrom/af_netrom.cskb->h.raw = skb_put(skb, len);
skb1092net/netrom/af_netrom.casmptr = skb->h.raw;
skb1104net/netrom/af_netrom.ckfree_skb(skb, FREE_WRITE);
skb1108net/netrom/af_netrom.cnr_output(sk, skb);  /* Shove it onto the queue */
skb1120net/netrom/af_netrom.cstruct sk_buff *skb;
skb1137net/netrom/af_netrom.cif ((skb = skb_recv_datagram(sk, flags, noblock, &er)) == NULL)
skb1141net/netrom/af_netrom.cskb_pull(skb, NR_NETWORK_LEN + NR_TRANSPORT_LEN);
skb1142net/netrom/af_netrom.cskb->h.raw = skb->data;
skb1145net/netrom/af_netrom.ccopied = (size < skb->len) ? size : skb->len;
skb1146net/netrom/af_netrom.cskb_copy_datagram_iovec(skb, 0, msg->msg_iov, copied);
skb1152net/netrom/af_netrom.cmemcpy(&addr.sax25_call, skb->data + 7, sizeof(ax25_address));
skb1159net/netrom/af_netrom.cskb_free_datagram(skb);
skb1194net/netrom/af_netrom.cstruct sk_buff *skb;
skb1196net/netrom/af_netrom.cif ((skb = skb_peek(&sk->receive_queue)) != NULL)
skb1197net/netrom/af_netrom.camount = skb->len - 20;
skb54net/netrom/nr_dev.cint nr_rx_ip(struct sk_buff *skb, struct device *dev)
skb65net/netrom/nr_dev.cskb->protocol = htons(ETH_P_IP);
skb68net/netrom/nr_dev.cskb->dev = dev;
skb70net/netrom/nr_dev.cskb->h.raw = skb->data;
skb71net/netrom/nr_dev.cip_rcv(skb, skb->dev, NULL);
skb76net/netrom/nr_dev.cstatic int nr_header(struct sk_buff *skb, struct device *dev, unsigned short type,
skb79net/netrom/nr_dev.cunsigned char *buff = skb_push(skb, NR_NETWORK_LEN + NR_TRANSPORT_LEN);
skb109net/netrom/nr_dev.cunsigned long raddr, struct sk_buff *skb)
skb114net/netrom/nr_dev.cskb_device_unlock(skb);
skb117net/netrom/nr_dev.cskb->free = 1;
skb118net/netrom/nr_dev.ckfree_skb(skb, FREE_WRITE);
skb131net/netrom/nr_dev.cif (!nr_route_frame(skb, NULL)) {
skb132net/netrom/nr_dev.cskb->free = 1;
skb133net/netrom/nr_dev.ckfree_skb(skb, FREE_WRITE);
skb166net/netrom/nr_dev.cstatic int nr_xmit(struct sk_buff *skb, struct device *dev)
skb170net/netrom/nr_dev.cif (skb == NULL || dev == NULL)
skb190net/netrom/nr_dev.cdev_kfree_skb(skb, FREE_WRITE);
skb53net/netrom/nr_in.cstatic int nr_queue_rx_frame(struct sock *sk, struct sk_buff *skb, int more)
skb55net/netrom/nr_in.cstruct sk_buff *skbo, *skbn = skb;
skb58net/netrom/nr_in.csk->nr->fraglen += skb->len;
skb59net/netrom/nr_in.cskb_queue_tail(&sk->nr->frag_queue, skb);
skb64net/netrom/nr_in.csk->nr->fraglen += skb->len;
skb65net/netrom/nr_in.cskb_queue_tail(&sk->nr->frag_queue, skb);
skb97net/netrom/nr_in.cstatic int nr_state1_machine(struct sock *sk, struct sk_buff *skb, int frametype)
skb103net/netrom/nr_in.csk->window         = skb->data[20];
skb104net/netrom/nr_in.csk->nr->your_index = skb->data[17];
skb105net/netrom/nr_in.csk->nr->your_id    = skb->data[18];
skb143net/netrom/nr_in.cstatic int nr_state2_machine(struct sock *sk, struct sk_buff *skb, int frametype)
skb171net/netrom/nr_in.cstatic int nr_state3_machine(struct sock *sk, struct sk_buff *skb, int frametype)
skb179net/netrom/nr_in.cnr = skb->data[18];
skb180net/netrom/nr_in.cns = skb->data[17];
skb263net/netrom/nr_in.cskb_queue_head(&sk->nr->reseq_queue, skb);
skb310net/netrom/nr_in.cint nr_process_rx_frame(struct sock *sk, struct sk_buff *skb)
skb325net/netrom/nr_in.cframetype = skb->data[19];
skb330net/netrom/nr_in.cqueued = nr_state1_machine(sk, skb, frametype);
skb333net/netrom/nr_in.cqueued = nr_state2_machine(sk, skb, frametype);
skb336net/netrom/nr_in.cqueued = nr_state3_machine(sk, skb, frametype);
skb49net/netrom/nr_out.cvoid nr_output(struct sock *sk, struct sk_buff *skb)
skb57net/netrom/nr_out.cif (skb->len - NR_TRANSPORT_LEN > mtu) {
skb59net/netrom/nr_out.cmemcpy(transport, skb->data, NR_TRANSPORT_LEN);
skb60net/netrom/nr_out.cskb_pull(skb, NR_TRANSPORT_LEN);
skb62net/netrom/nr_out.cfrontlen = skb_headroom(skb);
skb64net/netrom/nr_out.cwhile (skb->len > 0) {
skb74net/netrom/nr_out.clen = (mtu > skb->len) ? skb->len : mtu;
skb77net/netrom/nr_out.cmemcpy(skb_put(skbn, len), skb->data, len);
skb78net/netrom/nr_out.cskb_pull(skb, len);
skb84net/netrom/nr_out.cif (skb->len > 0)
skb90net/netrom/nr_out.cskb->free = 1;
skb91net/netrom/nr_out.ckfree_skb(skb, FREE_WRITE);
skb93net/netrom/nr_out.cskb_queue_tail(&sk->write_queue, skb);    /* Throw it on the queue */
skb104net/netrom/nr_out.cstatic void nr_send_iframe(struct sock *sk, struct sk_buff *skb)
skb106net/netrom/nr_out.cif (skb == NULL)
skb109net/netrom/nr_out.cskb->data[2] = sk->nr->vs;
skb110net/netrom/nr_out.cskb->data[3] = sk->nr->vr;
skb113net/netrom/nr_out.cskb->data[4] |= NR_CHOKE_FLAG;
skb115net/netrom/nr_out.cnr_transmit_buffer(sk, skb);  
skb120net/netrom/nr_out.cstruct sk_buff *skb, *skbn;
skb122net/netrom/nr_out.cif ((skb = skb_peek(&sk->nr->ack_queue)) == NULL)
skb125net/netrom/nr_out.cif ((skbn = skb_clone(skb, GFP_ATOMIC)) == NULL)
skb143net/netrom/nr_out.cstruct sk_buff *skb, *skbn;
skb166net/netrom/nr_out.cskb  = skb_dequeue(&sk->write_queue);
skb169net/netrom/nr_out.cif ((skbn = skb_clone(skb, GFP_ATOMIC)) == NULL) {
skb170net/netrom/nr_out.cskb_queue_head(&sk->write_queue, skb);
skb187net/netrom/nr_out.cskb_queue_tail(&sk->nr->ack_queue, skb);
skb189net/netrom/nr_out.c} while (!last && (skb = skb_dequeue(&sk->write_queue)) != NULL);
skb202net/netrom/nr_out.cvoid nr_transmit_buffer(struct sock *sk, struct sk_buff *skb)
skb209net/netrom/nr_out.cdptr = skb_push(skb, NR_NETWORK_LEN);
skb225net/netrom/nr_out.cskb->arp = 1;
skb227net/netrom/nr_out.cif (!nr_route_frame(skb, NULL)) {
skb228net/netrom/nr_out.ckfree_skb(skb, FREE_WRITE);
skb651net/netrom/nr_route.cint nr_route_frame(struct sk_buff *skb, ax25_cb *ax25)
skb661net/netrom/nr_route.cif(ax25 && call_in_firewall(PF_NETROM, skb, skb->data)!=FW_ACCEPT)
skb663net/netrom/nr_route.cif(!ax25 && call_out_firewall(PF_NETROM, skb, skb->data)!=FW_ACCEPT)
skb666net/netrom/nr_route.cnr_src  = (ax25_address *)(skb->data + 0);
skb667net/netrom/nr_route.cnr_dest = (ax25_address *)(skb->data + 7);
skb673net/netrom/nr_route.creturn nr_rx_frame(skb, dev);
skb679net/netrom/nr_route.cif (--skb->data[14] == 0)
skb700net/netrom/nr_route.cif(ax25 && call_fw_firewall(PF_NETROM, skb, skb->data)!=FW_ACCEPT)
skb704net/netrom/nr_route.cdptr  = skb_push(skb, 1);
skb707net/netrom/nr_route.cax25_send_frame(skb, (ax25_address *)dev->dev_addr, &nr_neigh->callsign, nr_neigh->digipeat, nr_neigh->dev);
skb49net/netrom/nr_subr.cstruct sk_buff *skb;
skb51net/netrom/nr_subr.cwhile ((skb = skb_dequeue(&sk->write_queue)) != NULL) {
skb52net/netrom/nr_subr.cskb->sk   = sk;
skb53net/netrom/nr_subr.cskb->free = 1;
skb54net/netrom/nr_subr.ckfree_skb(skb, FREE_WRITE);
skb57net/netrom/nr_subr.cwhile ((skb = skb_dequeue(&sk->nr->ack_queue)) != NULL) {
skb58net/netrom/nr_subr.cskb->sk   = sk;
skb59net/netrom/nr_subr.cskb->free = 1;
skb60net/netrom/nr_subr.ckfree_skb(skb, FREE_WRITE);
skb63net/netrom/nr_subr.cwhile ((skb = skb_dequeue(&sk->nr->reseq_queue)) != NULL) {
skb64net/netrom/nr_subr.ckfree_skb(skb, FREE_READ);
skb67net/netrom/nr_subr.cwhile ((skb = skb_dequeue(&sk->nr->frag_queue)) != NULL) {
skb68net/netrom/nr_subr.ckfree_skb(skb, FREE_READ);
skb79net/netrom/nr_subr.cstruct sk_buff *skb;
skb86net/netrom/nr_subr.cskb = skb_dequeue(&sk->nr->ack_queue);
skb87net/netrom/nr_subr.cskb->sk   = sk;
skb88net/netrom/nr_subr.cskb->free = 1;
skb89net/netrom/nr_subr.ckfree_skb(skb, FREE_WRITE);
skb102net/netrom/nr_subr.cstruct sk_buff *skb, *skb_prev = NULL;
skb104net/netrom/nr_subr.cwhile ((skb = skb_dequeue(&sk->nr->ack_queue)) != NULL) {
skb106net/netrom/nr_subr.cskb_queue_head(&sk->write_queue, skb);
skb108net/netrom/nr_subr.cskb_append(skb_prev, skb);
skb109net/netrom/nr_subr.cskb_prev = skb;
skb153net/netrom/nr_subr.cstruct sk_buff *skb;
skb175net/netrom/nr_subr.cif ((skb = alloc_skb(len, GFP_ATOMIC)) == NULL)
skb181net/netrom/nr_subr.cskb_reserve(skb, AX25_BPQ_HEADER_LEN + AX25_MAX_HEADER_LEN + NR_NETWORK_LEN);
skb183net/netrom/nr_subr.cdptr = skb_put(skb, skb_tailroom(skb));
skb237net/netrom/nr_subr.cskb->free = 1;
skb239net/netrom/nr_subr.cnr_transmit_buffer(sk, skb);
skb246net/netrom/nr_subr.cvoid nr_transmit_dm(struct sk_buff *skb)
skb261net/netrom/nr_subr.cmemcpy(dptr, skb->data + 7, AX25_ADDR_LEN);
skb267net/netrom/nr_subr.cmemcpy(dptr, skb->data + 0, AX25_ADDR_LEN);
skb275net/netrom/nr_subr.c*dptr++ = skb->data[15];
skb276net/netrom/nr_subr.c*dptr++ = skb->data[16];
skb167net/unix/af_unix.cstruct sk_buff *skb;
skb170net/unix/af_unix.cwhile((skb=skb_dequeue(&sk->receive_queue))!=NULL)
skb174net/unix/af_unix.cunix_socket *osk=skb->sk;
skb176net/unix/af_unix.ckfree_skb(skb, FREE_WRITE);  /* Now surplus - free the skb first before the socket */
skb183net/unix/af_unix.ckfree_skb(skb,FREE_WRITE);
skb456net/unix/af_unix.cstruct sk_buff *skb;
skb509net/unix/af_unix.cskb=sock_alloc_send_skb(sk, 0, 0, 0, &err); /* Marker object */
skb510net/unix/af_unix.cif(skb==NULL)
skb512net/unix/af_unix.cskb->sk=sk;        /* So they know it is us */
skb513net/unix/af_unix.cskb->free=1;
skb519net/unix/af_unix.ckfree_skb(skb, FREE_WRITE);
skb524net/unix/af_unix.ckfree_skb(skb, FREE_WRITE);
skb530net/unix/af_unix.cskb_queue_tail(&other->receive_queue,skb);
skb581net/unix/af_unix.cunix_socket *ska,*skb;  
skb584net/unix/af_unix.cskb=b->data;
skb588net/unix/af_unix.cskb->protinfo.af_unix.locks++;
skb589net/unix/af_unix.cska->protinfo.af_unix.other=skb;
skb590net/unix/af_unix.cskb->protinfo.af_unix.other=ska;
skb592net/unix/af_unix.cskb->state=TCP_ESTABLISHED;
skb600net/unix/af_unix.cstruct sk_buff *skb;
skb623net/unix/af_unix.cskb=skb_dequeue(&sk->receive_queue);
skb624net/unix/af_unix.cif(skb==NULL)
skb640net/unix/af_unix.cwhile(skb==NULL);
skb641net/unix/af_unix.ctsk=skb->sk;
skb642net/unix/af_unix.ckfree_skb(skb, FREE_WRITE);  /* The buffer is just used as a tag */
skb689net/unix/af_unix.cstruct sk_buff *skb;
skb772net/unix/af_unix.cskb=sock_alloc_send_skb(sk,size,limit,nonblock, &err);
skb774net/unix/af_unix.cif(skb==NULL)
skb783net/unix/af_unix.csize=skb_tailroom(skb);    /* If we dropped back on a limit then our skb is smaller */
skb785net/unix/af_unix.cskb->sk=sk;
skb786net/unix/af_unix.cskb->free=1;
skb788net/unix/af_unix.cmemcpy_fromiovec(skb_put(skb,size),msg->msg_iov, size);
skb800net/unix/af_unix.ckfree_skb(skb, FREE_WRITE);
skb814net/unix/af_unix.ckfree_skb(skb, FREE_WRITE);
skb822net/unix/af_unix.cskb->h.filp = filp;
skb827net/unix/af_unix.cskb_queue_tail(&other->receive_queue, skb);
skb886net/unix/af_unix.cstruct sk_buff *skb;
skb918net/unix/af_unix.cskb=skb_dequeue(&sk->receive_queue);
skb919net/unix/af_unix.cif(skb==NULL)
skb937net/unix/af_unix.cif(skb->sk->protinfo.af_unix.name)
skb939net/unix/af_unix.cmemcpy(sunaddr->sun_path, skb->sk->protinfo.af_unix.name, 108);
skb948net/unix/af_unix.cnum=min(skb->len,size-copied);
skb949net/unix/af_unix.cmemcpy_tofs(sp, skb->data, num);
skb951net/unix/af_unix.cif ((filp = skb->h.filp) != NULL) {
skb952net/unix/af_unix.cskb->h.filp = NULL;
skb961net/unix/af_unix.cskb_pull(skb, num);
skb963net/unix/af_unix.cif (skb->len) {
skb964net/unix/af_unix.cskb_queue_head(&sk->receive_queue, skb);
skb967net/unix/af_unix.ckfree_skb(skb, FREE_WRITE);
skb1031net/unix/af_unix.cstruct sk_buff *skb;
skb1035net/unix/af_unix.cif((skb=skb_peek(&sk->receive_queue))!=NULL)
skb1036net/unix/af_unix.camount=skb->len;