<html lang='en'>
<head>
<meta content='text/html; charset=utf-8' http-equiv='Content-Type'>
<title>
GitLab
</title>
</meta>
</head>
<style>
img {
max-width: 100%;
height: auto;
}
p.details {
font-style:italic;
color:#777
}
.footer p {
font-size:small;
color:#777
}
pre.commit-message {
white-space: pre-wrap;
}
.file-stats a {
text-decoration: none;
}
.file-stats .new-file {
color: #090;
}
.file-stats .deleted-file {
color: #B00;
}
</style>
<body>
<div class='content'>
<h3>Hal Murray pushed to branch master at <a href="https://gitlab.com/NTPsec/ntpsec">NTPsec / ntpsec</a></h3>
<h4>
Commits:
</h4>
<ul>
<li>
<strong><a href="https://gitlab.com/NTPsec/ntpsec/commit/d0bfe9dc8121ce1eda7c66b118a98efa32e68cd0">d0bfe9dc</a></strong>
<div>
<span>by Hal Murray</span>
<i>at 2015-12-14T02:19:36Z</i>
</div>
<pre class='commit-message'>Hack to bypass packet intercepts.</pre>
</li>
</ul>
<h4>1 changed file:</h4>
<ul>
<li class='file-stats'>
<a href='#diff-0'>
ntpd/ntp_intercept.c
</a>
</li>
</ul>
<h4>Changes:</h4>
<li id='diff-0'>
<a href='https://gitlab.com/NTPsec/ntpsec/commit/d0bfe9dc8121ce1eda7c66b118a98efa32e68cd0#diff-0'>
<strong>
ntpd/ntp_intercept.c
</strong>
</a>
<hr>
<pre class="highlight"><code><span style="color: #000000;background-color: #ffdddd">--- a/ntpd/ntp_intercept.c
</span><span style="color: #000000;background-color: #ddffdd">+++ b/ntpd/ntp_intercept.c
</span><span style="color: #aaaaaa">@@ -653,6 +653,10 @@ void intercept_sendpkt(const char *legend,
</span> struct pkt *pkt, int len)
{
char pkt_dump[BUFSIZ], newpacket[BUFSIZ];
<span style="color: #000000;background-color: #ddffdd">+if (1) {
+ sendpkt(dest, ep, ttl, pkt, len);
+ return;
+};
</span> packet_dump(pkt_dump, sizeof(pkt_dump), dest, pkt, len);
snprintf(newpacket, sizeof(newpacket), "sendpkt %s %s\n", legend, pkt_dump);
<span style="color: #aaaaaa">@@ -675,6 +679,11 @@ void intercept_sendpkt(const char *legend,
</span> void intercept_receive(struct recvbuf *rbufp)
{
char pkt_dump[BUFSIZ], newpacket[BUFSIZ];
<span style="color: #000000;background-color: #ddffdd">+if (1) {
+ receive(rbufp);
+ return;
+};
+
</span> packet_dump(pkt_dump, sizeof(pkt_dump),
&rbufp->recv_srcadr,
&rbufp->recv_pkt, rbufp->recv_length);
</code></pre>
<br>
</li>
</div>
<div class='footer' style='margin-top: 10px;'>
<p>
—
<br>
<a href="https://gitlab.com/NTPsec/ntpsec/commit/d0bfe9dc8121ce1eda7c66b118a98efa32e68cd0">View it on GitLab</a>.
<br>
You're receiving this email because of your account on gitlab.com.
If you'd like to receive fewer emails, you can adjust your notification settings.
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View Commit","url":"https://gitlab.com/NTPsec/ntpsec/commit/d0bfe9dc8121ce1eda7c66b118a98efa32e68cd0"}}</script>
</p>
</div>
</body>
</html>