Bugzilla – Attachment 3005 Details for
Bug 2735
Wrong address family handling for tun devices
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to fix address family handling for sys_tun_infilter()
0001-Fix-address-family-handling-in-sys_tun_infilter.patch (text/plain), 696 bytes, created by
stepe
on 2017-07-03 08:27:42 AEST
(
hide
)
Description:
Patch to fix address family handling for sys_tun_infilter()
Filename:
MIME Type:
Creator:
stepe
Created:
2017-07-03 08:27:42 AEST
Size:
696 bytes
patch
obsolete
>From e3c6cdb0dc899d726ca7d1d7dd84d0ec9fb7b6b2 Mon Sep 17 00:00:00 2001 >From: stepe <stepe@centaurus.uberspace.de> >Date: Sun, 2 Jul 2017 22:39:39 +0200 >Subject: [PATCH 1/2] Fix address family handling in sys_tun_infilter() > > >diff --git a/openbsd-compat/port-tun.c b/openbsd-compat/port-tun.c >index a444adf..df76963 100644 >--- a/openbsd-compat/port-tun.c >+++ b/openbsd-compat/port-tun.c >@@ -224,11 +224,11 @@ sys_tun_infilter(struct Channel *c, char *buf, int len) > iph = (struct ip *)(ptr + sizeof(u_int32_t)); > switch (iph->ip_v) { > case 6: >- *af = AF_INET6; >+ *af = htonl(AF_INET6); > break; > case 4: > default: >- *af = AF_INET; >+ *af = htonl(AF_INET); > break; > } > #endif >-- >2.1.4 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 2735
:
3005
|
3006
|
3011
|
3016
|
3017
|
3019
|
3020