diff options
author | claudio <claudio@openbsd.org> | 2005-10-21 11:53:27 +0000 |
---|---|---|
committer | claudio <claudio@openbsd.org> | 2005-10-21 11:53:27 +0000 |
commit | 93292819891fbea53bd4a43a3c4e8f1f6c5663d1 (patch) | |
tree | 0f415d8cc563c70cf8fa8e04d7a93318400c577a /usr.sbin/ospfd/lsupdate.c | |
parent | remove two unused and deprecated Mach macros, alpha_round_page() and (diff) | |
download | wireguard-openbsd-93292819891fbea53bd4a43a3c4e8f1f6c5663d1.tar.xz wireguard-openbsd-93292819891fbea53bd4a43a3c4e8f1f6c5663d1.zip |
htons() instead of ntohs() when going from host to network.
Diffstat (limited to 'usr.sbin/ospfd/lsupdate.c')
-rw-r--r-- | usr.sbin/ospfd/lsupdate.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ospfd/lsupdate.c b/usr.sbin/ospfd/lsupdate.c index b5503b6b2d2..3cbba9d5e86 100644 --- a/usr.sbin/ospfd/lsupdate.c +++ b/usr.sbin/ospfd/lsupdate.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lsupdate.c,v 1.19 2005/10/21 08:29:25 claudio Exp $ */ +/* $OpenBSD: lsupdate.c,v 1.20 2005/10/21 11:53:27 claudio Exp $ */ /* * Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org> @@ -177,7 +177,7 @@ send_ls_update(struct iface *iface, struct in_addr addr, void *data, int len) age = ntohs(age); if ((age += iface->transmit_delay) >= MAX_AGE) age = MAX_AGE; - age = ntohs(age); + age = htons(age); memcpy(buf_seek(buf, pos, sizeof(age)), &age, sizeof(age)); /* update authentication and calculate checksum */ |