|
@@ -108,9 +108,10 @@ static int copy_settings ( struct dhcp_packet *dest,
|
108
|
108
|
int create_fakedhcpdiscover ( struct net_device *netdev,
|
109
|
109
|
void *data, size_t max_len ) {
|
110
|
110
|
struct dhcp_packet dhcppkt;
|
|
111
|
+ struct in_addr ciaddr = { 0 };
|
111
|
112
|
int rc;
|
112
|
113
|
|
113
|
|
- if ( ( rc = create_dhcp_request ( &dhcppkt, netdev, NULL, data,
|
|
114
|
+ if ( ( rc = dhcp_create_request ( &dhcppkt, netdev, ciaddr, NULL, data,
|
114
|
115
|
max_len ) ) != 0 ) {
|
115
|
116
|
DBG ( "Could not create DHCPDISCOVER: %s\n",
|
116
|
117
|
strerror ( rc ) );
|
|
@@ -136,7 +137,7 @@ int create_fakedhcpack ( struct net_device *netdev,
|
136
|
137
|
int rc;
|
137
|
138
|
|
138
|
139
|
/* Create base DHCPACK packet */
|
139
|
|
- if ( ( rc = create_dhcp_packet ( &dhcppkt, netdev, DHCPACK, NULL,
|
|
140
|
+ if ( ( rc = dhcp_create_packet ( &dhcppkt, netdev, DHCPACK, NULL,
|
140
|
141
|
data, max_len ) ) != 0 ) {
|
141
|
142
|
DBG ( "Could not create DHCPACK: %s\n", strerror ( rc ) );
|
142
|
143
|
return rc;
|
|
@@ -187,7 +188,7 @@ int create_fakeproxydhcpack ( struct net_device *netdev,
|
187
|
188
|
}
|
188
|
189
|
|
189
|
190
|
/* Create base DHCPACK packet */
|
190
|
|
- if ( ( rc = create_dhcp_packet ( &dhcppkt, netdev, DHCPACK, NULL,
|
|
191
|
+ if ( ( rc = dhcp_create_packet ( &dhcppkt, netdev, DHCPACK, NULL,
|
191
|
192
|
data, max_len ) ) != 0 ) {
|
192
|
193
|
DBG ( "Could not create ProxyDHCPACK: %s\n",
|
193
|
194
|
strerror ( rc ) );
|