taglinefilesource code
ddp921net/appletalk/ddp.cunsigned short atalk_checksum(struct ddpehdr *ddp, int len)
ddp924net/appletalk/ddp.cunsigned char *data=(unsigned char *)ddp;
ddp1363net/appletalk/ddp.cstruct ddpehdr *ddp=(void *)skb->h.raw;
ddp1369net/appletalk/ddp.cif(skb->len<sizeof(*ddp))
ddp1382net/appletalk/ddp.c*((__u16 *)ddp)=ntohs(*((__u16 *)ddp));
ddp1390net/appletalk/ddp.cskb_trim(skb,min(skb->len,ddp->deh_len));
ddp1398net/appletalk/ddp.cif(skb->len<sizeof(*ddp))
ddp1409net/appletalk/ddp.cif(ddp->deh_sum && atalk_checksum(ddp, ddp->deh_len)!= ddp->deh_sum)
ddp1418net/appletalk/ddp.cif(call_in_firewall(AF_APPLETALK, skb, ddp)!=FW_ACCEPT)
ddp1428net/appletalk/ddp.cif(ddp->deh_dnet == 0)  /* Net 0 is 'this network' */
ddp1429net/appletalk/ddp.catif=atalk_find_anynet(ddp->deh_dnode, dev);
ddp1431net/appletalk/ddp.catif=atalk_find_interface(ddp->deh_dnet,ddp->deh_dnode);
ddp1441net/appletalk/ddp.cif (skb->pkt_type != PACKET_HOST || ddp->deh_dnet == 0) 
ddp1452net/appletalk/ddp.cif(call_fw_firewall(AF_APPLETALK, skb, ddp)!=FW_ACCEPT)
ddp1458net/appletalk/ddp.cta.s_net=ddp->deh_dnet;
ddp1459net/appletalk/ddp.cta.s_node=ddp->deh_dnode;
ddp1463net/appletalk/ddp.cif(rt==NULL || ddp->deh_hops==15)
ddp1468net/appletalk/ddp.cddp->deh_hops++;
ddp1472net/appletalk/ddp.cddp_dl->header_length + ddp->deh_len));
ddp1474net/appletalk/ddp.c*((__u16 *)ddp)=ntohs(*((__u16 *)ddp));    /* Mend the byte order */
ddp1485net/appletalk/ddp.ctosat.sat_addr.s_net = ddp->deh_dnet;
ddp1486net/appletalk/ddp.ctosat.sat_addr.s_node = ddp->deh_dnode;
ddp1487net/appletalk/ddp.ctosat.sat_port = ddp->deh_dport;
ddp1519net/appletalk/ddp.cstruct ddpehdr *ddp;
ddp1605net/appletalk/ddp.cddp=(struct ddpehdr *)skb_put(skb,sizeof(struct ddpehdr));
ddp1606net/appletalk/ddp.cddp->deh_pad=0;
ddp1607net/appletalk/ddp.cddp->deh_hops=0;
ddp1608net/appletalk/ddp.cddp->deh_len=len+sizeof(*ddp);
ddp1614net/appletalk/ddp.c*((__u16 *)ddp)=ntohs(*((__u16 *)ddp));
ddp1616net/appletalk/ddp.cddp->deh_dnet=usat->sat_addr.s_net;
ddp1617net/appletalk/ddp.cddp->deh_snet=sk->protinfo.af_at.src_net;
ddp1618net/appletalk/ddp.cddp->deh_dnode=usat->sat_addr.s_node;
ddp1619net/appletalk/ddp.cddp->deh_snode=sk->protinfo.af_at.src_node;
ddp1620net/appletalk/ddp.cddp->deh_dport=usat->sat_port;
ddp1621net/appletalk/ddp.cddp->deh_sport=sk->protinfo.af_at.src_port;
ddp1629net/appletalk/ddp.cddp->deh_sum=0;
ddp1631net/appletalk/ddp.cddp->deh_sum=atalk_checksum(ddp, len+sizeof(*ddp));
ddp1635net/appletalk/ddp.cif(call_out_firewall(AF_APPLETALK, skb, ddp)!=FW_ACCEPT)
ddp1648net/appletalk/ddp.cif(ddp->deh_dnode==ATADDR_BCAST)
ddp1703net/appletalk/ddp.cstruct ddpehdr  *ddp = NULL;
ddp1718net/appletalk/ddp.cddp = (struct ddpehdr *)(skb->h.raw);
ddp1721net/appletalk/ddp.ccopied=ddp->deh_len;
ddp1728net/appletalk/ddp.ccopied=ddp->deh_len - sizeof(*ddp);
ddp1731net/appletalk/ddp.cskb_copy_datagram_iovec(skb,sizeof(*ddp),msg->msg_iov,copied);
ddp1736net/appletalk/ddp.csat->sat_port=ddp->deh_sport;
ddp1737net/appletalk/ddp.csat->sat_addr.s_node=ddp->deh_snode;
ddp1738net/appletalk/ddp.csat->sat_addr.s_net=ddp->deh_snet;