chiark
/
gitweb
/
~mdw
/
tripe
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
server: Repurpose the flags in `peerspec'.
[tripe]
/
server
/
peer.c
diff --git
a/server/peer.c
b/server/peer.c
index 456efd7789da91677516d75c0c1d18578477cd58..ec89f771c35f627d4d65c07ef4b265329c0f0c50 100644
(file)
--- a/
server/peer.c
+++ b/
server/peer.c
@@
-753,14
+753,14
@@
peer *p_create(peerspec *spec)
T( trace(T_TUNNEL, "peer: attached interface %s to peer `%s'",
p->ifname, p_name(p)); )
p_setkatimer(p);
T( trace(T_TUNNEL, "peer: attached interface %s to peer `%s'",
p->ifname, p_name(p)); )
p_setkatimer(p);
- if (kx_init(&p->kx, p, &p->ks, p->spec.
kxf
))
+ if (kx_init(&p->kx, p, &p->ks, p->spec.
f & PSF_KXMASK
))
goto tidy_4;
a_notify("ADD",
"?PEER", p,
"%s", p->ifname,
"?ADDR", &p->spec.sa,
A_END);
goto tidy_4;
a_notify("ADD",
"?PEER", p,
"%s", p->ifname,
"?ADDR", &p->spec.sa,
A_END);
- if (!(p->spec.
kx
f & KXF_CORK)) {
+ if (!(p->spec.f & KXF_CORK)) {
a_notify("KXSTART", "?PEER", p, A_END);
/* Couldn't tell anyone before */
}
a_notify("KXSTART", "?PEER", p, A_END);
/* Couldn't tell anyone before */
}