Commit Graph

11 Commits

Author SHA1 Message Date
giomba 260f537125 adding comments here and there 2019-12-24 23:41:31 +01:00
giomba 5c7b1ffc99 basics of ND with RADV
neighbor discovery protocol basics, just for fun and for radv slaac
this is a working version, but code is not perfect,
just commit to save the checkpoint -- this isn't the master, is it?
2019-12-24 23:00:31 +01:00
giomba 9beb97fdba software engeneering for better resrouce management
now reproduced also in UDP, not only ICMP
This patch also allows for a better ISO/OSI layer separation between
IPv6 and upper layers, and upper layers can use the same common
interface
2019-12-24 19:33:07 +01:00
giomba 339de9322f software engineering for best resource management
actually only one packet is managed at a time,
then a packetin+packetout buffer area has been created for IPv6 packets.
Upper layers can then access this data by means of pointer,
avoiding further allocations on the stack.
Obviously, packetin is read-only (eg. upper layers can only read it)
2019-12-24 17:59:51 +01:00
giomba fabd0886b6 more consistent usage of data structures in the code 2019-12-24 16:00:09 +01:00
giomba c05386db26 Internet Checksum computation generalized 2019-12-24 10:36:49 +01:00
giomba c07807fc86 removed serialize/deserialize methods
it's everything already stored as serialized, just to save memory
(we only have 2k of memory)
2019-12-23 22:30:58 +01:00
giomba fb79e3d371 added proper IPv6 flow reply for ICMP packets 2019-12-23 21:47:25 +01:00
giomba 3d3d24942e sizes in int 2019-12-23 19:02:05 +01:00
giomba 11e56ac38c code polishing 2019-12-23 18:57:21 +01:00
giomba 12d09f24c5 First commit 2019-12-23 14:13:13 +01:00