tag | line | file | source code |
ddp | 921 | net/appletalk/ddp.c | unsigned short atalk_checksum(struct ddpehdr *ddp, int len) |
ddp | 924 | net/appletalk/ddp.c | unsigned char *data=(unsigned char *)ddp; |
ddp | 1363 | net/appletalk/ddp.c | struct ddpehdr *ddp=(void *)skb->h.raw; |
ddp | 1369 | net/appletalk/ddp.c | if(skb->len<sizeof(*ddp)) |
ddp | 1382 | net/appletalk/ddp.c | *((__u16 *)ddp)=ntohs(*((__u16 *)ddp)); |
ddp | 1390 | net/appletalk/ddp.c | skb_trim(skb,min(skb->len,ddp->deh_len)); |
ddp | 1398 | net/appletalk/ddp.c | if(skb->len<sizeof(*ddp)) |
ddp | 1409 | net/appletalk/ddp.c | if(ddp->deh_sum && atalk_checksum(ddp, ddp->deh_len)!= ddp->deh_sum) |
ddp | 1418 | net/appletalk/ddp.c | if(call_in_firewall(AF_APPLETALK, skb, ddp)!=FW_ACCEPT) |
ddp | 1428 | net/appletalk/ddp.c | if(ddp->deh_dnet == 0) /* Net 0 is 'this network' */ |
ddp | 1429 | net/appletalk/ddp.c | atif=atalk_find_anynet(ddp->deh_dnode, dev); |
ddp | 1431 | net/appletalk/ddp.c | atif=atalk_find_interface(ddp->deh_dnet,ddp->deh_dnode); |
ddp | 1441 | net/appletalk/ddp.c | if (skb->pkt_type != PACKET_HOST || ddp->deh_dnet == 0) |
ddp | 1452 | net/appletalk/ddp.c | if(call_fw_firewall(AF_APPLETALK, skb, ddp)!=FW_ACCEPT) |
ddp | 1458 | net/appletalk/ddp.c | ta.s_net=ddp->deh_dnet; |
ddp | 1459 | net/appletalk/ddp.c | ta.s_node=ddp->deh_dnode; |
ddp | 1463 | net/appletalk/ddp.c | if(rt==NULL || ddp->deh_hops==15) |
ddp | 1468 | net/appletalk/ddp.c | ddp->deh_hops++; |
ddp | 1472 | net/appletalk/ddp.c | ddp_dl->header_length + ddp->deh_len)); |
ddp | 1474 | net/appletalk/ddp.c | *((__u16 *)ddp)=ntohs(*((__u16 *)ddp)); /* Mend the byte order */ |
ddp | 1485 | net/appletalk/ddp.c | tosat.sat_addr.s_net = ddp->deh_dnet; |
ddp | 1486 | net/appletalk/ddp.c | tosat.sat_addr.s_node = ddp->deh_dnode; |
ddp | 1487 | net/appletalk/ddp.c | tosat.sat_port = ddp->deh_dport; |
ddp | 1519 | net/appletalk/ddp.c | struct ddpehdr *ddp; |
ddp | 1605 | net/appletalk/ddp.c | ddp=(struct ddpehdr *)skb_put(skb,sizeof(struct ddpehdr)); |
ddp | 1606 | net/appletalk/ddp.c | ddp->deh_pad=0; |
ddp | 1607 | net/appletalk/ddp.c | ddp->deh_hops=0; |
ddp | 1608 | net/appletalk/ddp.c | ddp->deh_len=len+sizeof(*ddp); |
ddp | 1614 | net/appletalk/ddp.c | *((__u16 *)ddp)=ntohs(*((__u16 *)ddp)); |
ddp | 1616 | net/appletalk/ddp.c | ddp->deh_dnet=usat->sat_addr.s_net; |
ddp | 1617 | net/appletalk/ddp.c | ddp->deh_snet=sk->protinfo.af_at.src_net; |
ddp | 1618 | net/appletalk/ddp.c | ddp->deh_dnode=usat->sat_addr.s_node; |
ddp | 1619 | net/appletalk/ddp.c | ddp->deh_snode=sk->protinfo.af_at.src_node; |
ddp | 1620 | net/appletalk/ddp.c | ddp->deh_dport=usat->sat_port; |
ddp | 1621 | net/appletalk/ddp.c | ddp->deh_sport=sk->protinfo.af_at.src_port; |
ddp | 1629 | net/appletalk/ddp.c | ddp->deh_sum=0; |
ddp | 1631 | net/appletalk/ddp.c | ddp->deh_sum=atalk_checksum(ddp, len+sizeof(*ddp)); |
ddp | 1635 | net/appletalk/ddp.c | if(call_out_firewall(AF_APPLETALK, skb, ddp)!=FW_ACCEPT) |
ddp | 1648 | net/appletalk/ddp.c | if(ddp->deh_dnode==ATADDR_BCAST) |
ddp | 1703 | net/appletalk/ddp.c | struct ddpehdr *ddp = NULL; |
ddp | 1718 | net/appletalk/ddp.c | ddp = (struct ddpehdr *)(skb->h.raw); |
ddp | 1721 | net/appletalk/ddp.c | copied=ddp->deh_len; |
ddp | 1728 | net/appletalk/ddp.c | copied=ddp->deh_len - sizeof(*ddp); |
ddp | 1731 | net/appletalk/ddp.c | skb_copy_datagram_iovec(skb,sizeof(*ddp),msg->msg_iov,copied); |
ddp | 1736 | net/appletalk/ddp.c | sat->sat_port=ddp->deh_sport; |
ddp | 1737 | net/appletalk/ddp.c | sat->sat_addr.s_node=ddp->deh_snode; |
ddp | 1738 | net/appletalk/ddp.c | sat->sat_addr.s_net=ddp->deh_snet; |