Another thing I should mention... One issue that was unforseen during the writing of all of this is that there may be a need to use ARP between a incomming packet and a reply to that packet.
Currently it is like this when PIC is host and PC is client 1. PC sends to PIC 2. PIC replies to PC It should be: 1. PC sends to PIC 2. PIC asks via ARP "Who are you? What is your MAC?" 3. PIC replies to PC The issue with the above is that the new step will modify the buffer too much. My libs try to use a quick method of leaving parts of underlaying layers alone to save speed. A good example is when the PIC gets a ping there is data with it, and that data does not need to be modified before it gets sent back. Therefore I leave it where it is in the buffer so it is there with the reply. ARP in an extra step could modify this data! To fix the issue in TCP, I think I was storing the MAC address that is in a incomming packet, but I also remember some issue about getting the MAC address of the router instead of the PC that sent the packet (which is what I wanted). A ARP table might also needs timeouts. If we don't hear from a PC within 1 min or so, the IP/MAC can be dropped. I can't quite remember everything since I haven't looked at networking in a while. Some of the above statements could be incorrect. Matt. -- You received this message because you are subscribed to the Google Groups "jallib" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/jallib?hl=en.
