[quagga-users 14995] Which part of the kernel calculate the OSPF header checksum?

yanhc519 yanhc519 at 163.com
Sat Nov 17 13:57:33 GMT 2018


Hi, everyone!


In line 1649 of ospf6_message.c (\quagga-1.2.4\ospf6d), it says that "/* checksum is calculated by kernel */" as following.  I am wondering which part of the kernel calculate the OSPF header checksum? In Sockets layer or IPv6 layer? And in which file of what kernel?


  /* fill OSPF header */
  oh->version = OSPFV3_VERSION;
  /* message type must be set before */
  /* message length must be set before */
  oh->router_id = oi->area->ospf6->router_id;
  oh->area_id = oi->area->area_id;
  /* checksum is calculated by kernel */
  oh->instance_id = oi->instance_id;
  oh->reserved = 0;


Thanks in advance!


Regards, 
yanhc


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quagga.net/pipermail/quagga-users/attachments/20181117/169b51b0/attachment.html>


More information about the Quagga-users mailing list