jin_cksum.h File Reference

Contains functions for working with internet checksums. More...


Functions

static void jin_cksum_differential (u_short *cksum, u_short *new, u_short *old, int n)
 Calculates the internet checksum given a change from old to new.


Detailed Description

Contains functions for working with internet checksums.


Function Documentation

static void jin_cksum_differential u_short *  cksum,
u_short *  new,
u_short *  old,
int  n
[inline, static]
 

Calculates the internet checksum given a change from old to new.

The new value is put back into cksum. Therefore, this function is not meant for performance-critical applications.


2007-2009 Juniper Networks, Inc. All rights reserved. The information contained herein is confidential information of Juniper Networks, Inc., and may not be used, disclosed, distributed, modified, or copied without the prior written consent of Juniper Networks, Inc. in an express license. This information is subject to change by Juniper Networks, Inc. Juniper Networks, the Juniper Networks logo, and JUNOS are registered trademarks of Juniper Networks, Inc. in the United States and other countries. All other trademarks, service marks, registered trademarks, or registered service marks are the property of their respective owners.
Generated on Sun May 30 20:23:40 2010 for libjuniper by Doxygen 1.4.5