Bugzilla – Attachment 1606 Details for
Bug 1561
Check for up on open tap device
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
check for open tun/tap device
tap_open_on_up.diff (text/plain), 826 bytes, created by
Richard
on 2009-02-24 07:32:39 AEDT
(
hide
)
Description:
check for open tun/tap device
Filename:
MIME Type:
Creator:
Richard
Created:
2009-02-24 07:32:39 AEDT
Size:
826 bytes
patch
obsolete
>*** ../openssh/openbsd-compat/port-tun.c Mon Feb 23 20:32:32 2009 >--- openbsd-compat/port-tun.c Tue Feb 24 07:00:09 2009 >*************** >*** 171,183 **** > if ((sock = socket(PF_UNIX, SOCK_STREAM, 0)) == -1) > goto failed; > > if (ioctl(sock, SIOCGIFFLAGS, &ifr) == -1) > goto failed; >! ifr.ifr_flags |= IFF_UP; >! if (ioctl(sock, SIOCSIFFLAGS, &ifr) == -1) >! goto failed; > > close(sock); > return (fd); > > failed: >--- 171,187 ---- > if ((sock = socket(PF_UNIX, SOCK_STREAM, 0)) == -1) > goto failed; > > if (ioctl(sock, SIOCGIFFLAGS, &ifr) == -1) > goto failed; >! >! /* tap device can be brought up automatically */ >! if (!(ifr.ifr_flags & IFF_UP)) { >! ifr.ifr_flags |= IFF_UP; >! if (ioctl(sock, SIOCSIFFLAGS, &ifr) == -1) >! goto failed; >! } > > close(sock); > return (fd); > > failed:
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 1561
: 1606 |
1911