projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
protocol change; byte swap those fields which need it; also add
[unix-history]
/
usr
/
src
/
sbin
/
routed
/
timer.c
diff --git
a/usr/src/sbin/routed/timer.c
b/usr/src/sbin/routed/timer.c
index
954ca7c
..
f6da47b
100644
(file)
--- a/
usr/src/sbin/routed/timer.c
+++ b/
usr/src/sbin/routed/timer.c
@@
-1,5
+1,5
@@
#ifndef lint
#ifndef lint
-static char sccsid[] = "@(#)timer.c 4.
2
%G%";
+static char sccsid[] = "@(#)timer.c 4.
3 (Berkeley)
%G%";
#endif
/*
#endif
/*
@@
-54,9
+54,16
@@
again:
if (!supplier || timetobroadcast)
continue;
msg->rip_cmd = RIPCMD_RESPONSE;
if (!supplier || timetobroadcast)
continue;
msg->rip_cmd = RIPCMD_RESPONSE;
+ msg->rip_vers = RIPVERSION;
msg->rip_nets[0].rip_dst = rt->rt_dst;
msg->rip_nets[0].rip_metric =
msg->rip_nets[0].rip_dst = rt->rt_dst;
msg->rip_nets[0].rip_metric =
- min(rt->rt_metric+1, HOPCNT_INFINITY);
+ min(rt->rt_metric+1, HOPCNT_INFINITY);
+#ifdef notyet
+ msg->rip_nets[0].rip_dst.sa_family =
+ htons(msg->rip_nets[0].rip_dst.sa_family);
+ msg->rip_nets[0].rip_metric =
+ htonl(msg->rip_nets[0].rip_metric);
+#endif
toall(sendmsg);
}
}
toall(sendmsg);
}
}