checksum.h 685 B

1234567891011121314151617181920212223242526
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved.
  4. */
  5. #ifndef _ASM_CHECKSUM_H
  6. #define _ASM_CHECKSUM_H
  7. #define do_csum do_csum
  8. unsigned int do_csum(const void *voidptr, int len);
  9. /*
  10. * computes the checksum of the TCP/UDP pseudo-header
  11. * returns a 16-bit checksum, already complemented
  12. */
  13. #define csum_tcpudp_nofold csum_tcpudp_nofold
  14. __wsum csum_tcpudp_nofold(__be32 saddr, __be32 daddr,
  15. __u32 len, __u8 proto, __wsum sum);
  16. #define csum_tcpudp_magic csum_tcpudp_magic
  17. __sum16 csum_tcpudp_magic(__be32 saddr, __be32 daddr,
  18. __u32 len, __u8 proto, __wsum sum);
  19. #include <asm-generic/checksum.h>
  20. #endif