summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorNiels Provos <provos@cvs.openbsd.org>1997-06-24 20:57:30 +0000
committerNiels Provos <provos@cvs.openbsd.org>1997-06-24 20:57:30 +0000
commit16eeb6e2cf863ccb9bd69d395f0646d13f63f262 (patch)
treebbde5bdaffac279313afb5d64e3a0561c3cbd048 /sys
parent592f9dc5e7de7d1cdd4044b59f1c32d5ef3e8d4f (diff)
use ntohs instead of NTOHS for counters
Diffstat (limited to 'sys')
-rw-r--r--sys/netinet/ip_ahhmacmd5.c4
-rw-r--r--sys/netinet/ip_ahhmacsha1.c4
-rw-r--r--sys/netinet/ip_ahmd5.c4
-rw-r--r--sys/netinet/ip_ahsha1.c4
-rw-r--r--sys/netinet/ip_esp3des.c4
-rw-r--r--sys/netinet/ip_esp3desmd5.c4
-rw-r--r--sys/netinet/ip_espdes.c4
-rw-r--r--sys/netinet/ip_espdesmd5.c4
8 files changed, 16 insertions, 16 deletions
diff --git a/sys/netinet/ip_ahhmacmd5.c b/sys/netinet/ip_ahhmacmd5.c
index 2b12196fe04..243c5b6e408 100644
--- a/sys/netinet/ip_ahhmacmd5.c
+++ b/sys/netinet/ip_ahhmacmd5.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_ahhmacmd5.c,v 1.10 1997/06/24 20:48:40 provos Exp $ */
+/* $OpenBSD: ip_ahhmacmd5.c,v 1.11 1997/06/24 20:57:24 provos Exp $ */
/*
* The author of this code is John Ioannidis, ji@tla.org,
@@ -361,7 +361,7 @@ ahhmacmd5_input(struct mbuf *m, struct tdb *tdb)
/* Update the counters */
tdb->tdb_packets++;
- tdb->tdb_bytes += NTOHS(ip->ip_len) - (ip->ip_hl << 2);
+ tdb->tdb_bytes += ntohs(ip->ip_len) - (ip->ip_hl << 2);
return m;
}
diff --git a/sys/netinet/ip_ahhmacsha1.c b/sys/netinet/ip_ahhmacsha1.c
index 4f0ac261006..bd2003e52fe 100644
--- a/sys/netinet/ip_ahhmacsha1.c
+++ b/sys/netinet/ip_ahhmacsha1.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_ahhmacsha1.c,v 1.8 1997/06/24 20:48:40 provos Exp $ */
+/* $OpenBSD: ip_ahhmacsha1.c,v 1.9 1997/06/24 20:57:25 provos Exp $ */
/*
* The author of this code is John Ioannidis, ji@tla.org,
@@ -364,7 +364,7 @@ ahhmacsha1_input(struct mbuf *m, struct tdb *tdb)
/* Update the counters */
tdb->tdb_packets++;
- tdb->tdb_bytes += NTOHS(ip->ip_len) - (ip->ip_hl << 2);
+ tdb->tdb_bytes += ntohs(ip->ip_len) - (ip->ip_hl << 2);
return m;
}
diff --git a/sys/netinet/ip_ahmd5.c b/sys/netinet/ip_ahmd5.c
index b3e7106ebc4..ce3a9143220 100644
--- a/sys/netinet/ip_ahmd5.c
+++ b/sys/netinet/ip_ahmd5.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_ahmd5.c,v 1.7 1997/06/24 20:48:41 provos Exp $ */
+/* $OpenBSD: ip_ahmd5.c,v 1.8 1997/06/24 20:57:25 provos Exp $ */
/*
* The author of this code is John Ioannidis, ji@tla.org,
@@ -281,7 +281,7 @@ ahmd5_input(struct mbuf *m, struct tdb *tdb)
/* Update the counters */
tdb->tdb_packets++;
- tdb->tdb_bytes += NTOHS(ip->ip_len) - (ip->ip_hl << 2);
+ tdb->tdb_bytes += ntohs(ip->ip_len) - (ip->ip_hl << 2);
return m;
}
diff --git a/sys/netinet/ip_ahsha1.c b/sys/netinet/ip_ahsha1.c
index ef8d7831f89..b7cc04425f0 100644
--- a/sys/netinet/ip_ahsha1.c
+++ b/sys/netinet/ip_ahsha1.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_ahsha1.c,v 1.3 1997/06/24 20:48:41 provos Exp $ */
+/* $OpenBSD: ip_ahsha1.c,v 1.4 1997/06/24 20:57:26 provos Exp $ */
/*
* The author of this code is John Ioannidis, ji@tla.org,
@@ -280,7 +280,7 @@ ahsha1_input(struct mbuf *m, struct tdb *tdb)
/* Update the counters */
tdb->tdb_packets++;
- tdb->tdb_bytes += NTOHS(ip->ip_len) - (ip->ip_hl << 2);
+ tdb->tdb_bytes += ntohs(ip->ip_len) - (ip->ip_hl << 2);
return m;
}
diff --git a/sys/netinet/ip_esp3des.c b/sys/netinet/ip_esp3des.c
index fb189eec04a..3cb89280283 100644
--- a/sys/netinet/ip_esp3des.c
+++ b/sys/netinet/ip_esp3des.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_esp3des.c,v 1.4 1997/06/24 12:15:22 provos Exp $ */
+/* $OpenBSD: ip_esp3des.c,v 1.5 1997/06/24 20:57:27 provos Exp $ */
/*
* The author of this code is John Ioannidis, ji@tla.org,
@@ -301,7 +301,7 @@ esp3des_input(struct mbuf *m, struct tdb *tdb)
/* Update the counters */
tdb->tdb_packets++;
- tdb->tdb_bytes += NTOHS(ip->ip_len) - (ip->ip_hl << 2) + blk[6] + 2;
+ tdb->tdb_bytes += ntohs(ip->ip_len) - (ip->ip_hl << 2) + blk[6] + 2;
return m;
}
diff --git a/sys/netinet/ip_esp3desmd5.c b/sys/netinet/ip_esp3desmd5.c
index 45b4153be6b..d6f1ecb3eed 100644
--- a/sys/netinet/ip_esp3desmd5.c
+++ b/sys/netinet/ip_esp3desmd5.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_esp3desmd5.c,v 1.8 1997/06/24 12:15:23 provos Exp $ */
+/* $OpenBSD: ip_esp3desmd5.c,v 1.9 1997/06/24 20:57:28 provos Exp $ */
/*
* The author of this code is John Ioannidis, ji@tla.org,
@@ -510,7 +510,7 @@ esp3desmd5_input(struct mbuf *m, struct tdb *tdb)
/* Update the counters */
tdb->tdb_packets++;
- tdb->tdb_bytes += NTOHS(ip->ip_len) - (ip->ip_hl << 2) + padsize +
+ tdb->tdb_bytes += ntohs(ip->ip_len) - (ip->ip_hl << 2) + padsize +
2 + ESP3DESMD5_ALEN;
return m;
diff --git a/sys/netinet/ip_espdes.c b/sys/netinet/ip_espdes.c
index 476144dcc0d..fd85253f793 100644
--- a/sys/netinet/ip_espdes.c
+++ b/sys/netinet/ip_espdes.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_espdes.c,v 1.6 1997/06/24 12:15:23 provos Exp $ */
+/* $OpenBSD: ip_espdes.c,v 1.7 1997/06/24 20:57:28 provos Exp $ */
/*
* The author of this code is John Ioannidis, ji@tla.org,
@@ -288,7 +288,7 @@ espdes_input(struct mbuf *m, struct tdb *tdb)
/* Update the counters */
tdb->tdb_packets++;
- tdb->tdb_bytes += NTOHS(ip->ip_len) - (ip->ip_hl << 2) + blk[6] + 2;
+ tdb->tdb_bytes += ntohs(ip->ip_len) - (ip->ip_hl << 2) + blk[6] + 2;
return m;
}
diff --git a/sys/netinet/ip_espdesmd5.c b/sys/netinet/ip_espdesmd5.c
index 9b0f8f8ab64..7ef8b91bc08 100644
--- a/sys/netinet/ip_espdesmd5.c
+++ b/sys/netinet/ip_espdesmd5.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_espdesmd5.c,v 1.8 1997/06/24 12:15:24 provos Exp $ */
+/* $OpenBSD: ip_espdesmd5.c,v 1.9 1997/06/24 20:57:29 provos Exp $ */
/*
* The author of this code is John Ioannidis, ji@tla.org,
@@ -494,7 +494,7 @@ espdesmd5_input(struct mbuf *m, struct tdb *tdb)
/* Update the counters */
tdb->tdb_packets++;
- tdb->tdb_bytes += NTOHS(ip->ip_len) - (ip->ip_hl << 2) + padsize +
+ tdb->tdb_bytes += ntohs(ip->ip_len) - (ip->ip_hl << 2) + padsize +
2 + ESPDESMD5_ALEN;
return m;