diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2007-09-11 18:05:37 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2007-09-11 18:05:37 +0000 |
commit | 553326fff9fa1dca9d0360b516c25830e9a04146 (patch) | |
tree | 12c078914ebade2c091c13ba55df7fcde5d90cc1 /usr.sbin | |
parent | 49b0f06ed071f06042f8e22d9545fe0f46c5125e (diff) |
More baudrate fixes. Again don't forget to initialize the iface->baudrate.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/ripd/interface.c | 3 | ||||
-rw-r--r-- | usr.sbin/ripd/ripd.h | 9 |
2 files changed, 6 insertions, 6 deletions
diff --git a/usr.sbin/ripd/interface.c b/usr.sbin/ripd/interface.c index f5ecc524102..36153e476a7 100644 --- a/usr.sbin/ripd/interface.c +++ b/usr.sbin/ripd/interface.c @@ -1,4 +1,4 @@ -/* $OpenBSD: interface.c,v 1.2 2006/11/28 19:21:15 reyk Exp $ */ +/* $OpenBSD: interface.c,v 1.3 2007/09/11 18:05:36 claudio Exp $ */ /* * Copyright (c) 2006 Michele Marchetto <mydecay@openbeer.it> @@ -406,6 +406,7 @@ if_new(struct kif *kif) iface->flags = kif->flags; iface->linkstate = kif->link_state; iface->media_type = kif->media_type; + iface->baudrate = kif->baudrate; /* get address */ if (ioctl(s, SIOCGIFADDR, ifr) < 0) diff --git a/usr.sbin/ripd/ripd.h b/usr.sbin/ripd/ripd.h index f4ad0a7b6eb..a4508133bdb 100644 --- a/usr.sbin/ripd/ripd.h +++ b/usr.sbin/ripd/ripd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ripd.h,v 1.6 2007/09/11 17:26:22 henning Exp $ */ +/* $OpenBSD: ripd.h,v 1.7 2007/09/11 18:05:36 claudio Exp $ */ /* * Copyright (c) 2004 Esben Norby <norby@openbsd.org> @@ -213,9 +213,9 @@ struct iface { struct packet_head rp_list; struct auth_md_head auth_md_list; + u_int64_t baudrate; time_t uptime; - u_long mtu; - u_long baudrate; /* XXX u_int64_t */ + u_int mtu; int fd; /* XXX */ int state; u_short ifindex; @@ -312,8 +312,7 @@ struct ctl_iface { time_t uptime; time_t report_timer; - u_int32_t baudrate; /* XXX 32bit only? */ - + u_int64_t baudrate; unsigned int ifindex; int state; int mtu; |