File: checksum.h

package info (click to toggle)
pcaputils 0.8-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 372 kB
  • sloc: ansic: 2,945; sh: 44; makefile: 38
file content (10 lines) | stat: -rw-r--r-- 211 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
#ifndef CHECKSUM_H
#define CHECKSUM_H

#include "uint.h"
#include "util.h"

extern __inline u16 checksum_ip(const void *iph, unsigned ihl);
extern __inline u16 checksum_net(const void *p, unsigned len);

#endif