Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 730817 Details for
Bug 658855
Network manager doesn't expose dhcpv4 next-server option
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Fixed patch for dhcp-4.1.1-34.P1.el6
next-server2.patch (text/plain), 1.81 KB, created by
Tomáš Hozza
on 2013-04-02 14:44:52 UTC
(
hide
)
Description:
Fixed patch for dhcp-4.1.1-34.P1.el6
Filename:
MIME Type:
Creator:
Tomáš Hozza
Created:
2013-04-02 14:44:52 UTC
Size:
1.81 KB
patch
obsolete
>diff -up dhcp-4.1.1-P1/client/dhclient.c.next-server dhcp-4.1.1-P1/client/dhclient.c >--- dhcp-4.1.1-P1/client/dhclient.c.next-server 2013-04-02 11:46:53.598023025 +0200 >+++ dhcp-4.1.1-P1/client/dhclient.c 2013-04-02 11:46:53.621023005 +0200 >@@ -1420,7 +1420,7 @@ void state_selecting (cpp) > client -> state = S_REQUESTING; > > /* Bind to the address we received. */ >- bind_lease (client); >+ bind_lease (client, NULL); > return; > } > >@@ -1597,11 +1597,12 @@ void dhcpack (packet) > if (client -> new -> rebind < cur_time) > client -> new -> rebind = TIME_MAX; > >- bind_lease (client); >+ bind_lease (client, &packet -> raw -> siaddr); > } > >-void bind_lease (client) >+void bind_lease (client, siaddr) > struct client_state *client; >+ struct in_addr *siaddr; > { > struct timeval tv; > >@@ -1622,6 +1623,13 @@ void bind_lease (client) > if (client -> alias) > script_write_params (client, "alias_", client -> alias); > >+ if (siaddr) { >+ char buf[INET_ADDRSTRLEN]; >+ >+ if (inet_ntop (AF_INET, (void *) siaddr, buf, sizeof (buf))) >+ client_envadd (client, "new_", "next_server", "%s", buf); >+ } >+ > /* If the BOUND/RENEW code detects another machine using the > offered address, it exits nonzero. We need to send a > DHCPDECLINE and toss the lease. */ >diff -up dhcp-4.1.1-P1/includes/dhcpd.h.next-server dhcp-4.1.1-P1/includes/dhcpd.h >--- dhcp-4.1.1-P1/includes/dhcpd.h.next-server 2013-04-02 11:46:53.000000000 +0200 >+++ dhcp-4.1.1-P1/includes/dhcpd.h 2013-04-02 11:54:32.535731295 +0200 >@@ -2555,7 +2555,7 @@ void state_bound PROTO ((void *)); > void state_stop PROTO ((void *)); > void state_panic PROTO ((void *)); > >-void bind_lease PROTO ((struct client_state *)); >+void bind_lease PROTO ((struct client_state *, struct in_addr *)); > > void make_client_options PROTO ((struct client_state *, > struct client_lease *, u_int8_t *,
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 658855
:
702551
| 730817