#
0796825e |
| 04-Feb-2019 |
Andre Przywara <andre.przywara@arm.com> |
net/dhcp: avoid misleading strncpy
The code for copying an empty IP address into the DHCP opt buffer used strncpy, however used the source length as the size argument. GCC 8.x complains about it.
S
net/dhcp: avoid misleading strncpy
The code for copying an empty IP address into the DHCP opt buffer used strncpy, however used the source length as the size argument. GCC 8.x complains about it.
Since the source string is actually fixed, just revert to the old strcpy, which gives us actually the same level of security in this case, but makes the compiler happy.
Signed-off-by: Andre Przywara <andre.przywara@arm.com> Signed-off-by: Will Deacon <will.deacon@arm.com>
show more ...
|
#
d87b503f |
| 10-Jan-2019 |
Jean-Philippe Brucker <jean-philippe.brucker@arm.com> |
net/uip: Add exit function
When resetting the virtio-net queues, the UIP state needs to be reset as well. Stop all threads (one per TCP stream and UDP connection) and free memory.
Signed-off-by: Je
net/uip: Add exit function
When resetting the virtio-net queues, the UIP state needs to be reset as well. Stop all threads (one per TCP stream and UDP connection) and free memory.
Signed-off-by: Jean-Philippe Brucker <jean-philippe.brucker@arm.com> Signed-off-by: Julien Thierry <julien.thierry@arm.com> Signed-off-by: Will Deacon <will.deacon@arm.com>
show more ...
|
#
a7b946b9 |
| 10-Aug-2012 |
Michael Ellerman <michael@ellerman.id.au> |
kvm tools: Fix crash when /etc/resolv.conf doesn't exist
In uip_dhcp_get_dns() we try to open /etc/resolv.conf. If we fail to open it we then SEGV trying to fclose() it.
Fix the code to just return
kvm tools: Fix crash when /etc/resolv.conf doesn't exist
In uip_dhcp_get_dns() we try to open /etc/resolv.conf. If we fail to open it we then SEGV trying to fclose() it.
Fix the code to just return directly if we can't open it.
Acked-by: Asias He <asias.hejun@gmail.com> Signed-off-by: Michael Ellerman <michael@ellerman.id.au> Signed-off-by: Pekka Enberg <penberg@kernel.org>
show more ...
|
#
575a9e3f |
| 14-Sep-2011 |
Sasha Levin <levinsasha928@gmail.com> |
kvm tools: Use kernel dhcp for network autoconfiguration
This patch removes the manual/usermode dhcp client configuration and instead uses the DHCP client built within the kernel.
Since this client
kvm tools: Use kernel dhcp for network autoconfiguration
This patch removes the manual/usermode dhcp client configuration and instead uses the DHCP client built within the kernel.
Since this client is tightly integrated with NFS (if NFS config is set), we will add a specific NFS root addr in our DHCP offer to point it to a non existent address so that we won't hang trying to poke it for our root.
Acked-by: Asias He <asias.hejun@gmail.com> Signed-off-by: Sasha Levin <levinsasha928@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
show more ...
|
#
bcd315db |
| 17-Jul-2011 |
Asias He <asias.hejun@gmail.com> |
kvm tools: Introduce uip_tx_do_ipv4_udp_dhcp()
uip_tx_do_ipv4_udp_dhcp() is used to handle DHCP packages from guest.
Signed-off-by: Asias He <asias.hejun@gmail.com> Signed-off-by: Pekka Enberg <pen
kvm tools: Introduce uip_tx_do_ipv4_udp_dhcp()
uip_tx_do_ipv4_udp_dhcp() is used to handle DHCP packages from guest.
Signed-off-by: Asias He <asias.hejun@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
show more ...
|
#
155c7f33 |
| 17-Jul-2011 |
Asias He <asias.hejun@gmail.com> |
kvm tools: Introduce uip_dhcp_make_pkg()
This patch cooks a DHCP package.
Signed-off-by: Asias He <asias.hejun@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
|
#
ab8d80a6 |
| 17-Jul-2011 |
Asias He <asias.hejun@gmail.com> |
kvm tools: Fill all DHCP options
The following DHCP options are filled.
- MSG_TYPE
- SERVER_ID
- LEASE_TIME
- SUBMASK
- ROUTER
- DNS_SERVER
- DOMAIN_NAME
Signed-off-by:
kvm tools: Fill all DHCP options
The following DHCP options are filled.
- MSG_TYPE
- SERVER_ID
- LEASE_TIME
- SUBMASK
- ROUTER
- DNS_SERVER
- DOMAIN_NAME
Signed-off-by: Asias He <asias.hejun@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
show more ...
|
#
32a44aaf |
| 17-Jul-2011 |
Asias He <asias.hejun@gmail.com> |
kvm tools: Fill DHCP options with domain name and DNS server IP
Domain name and DNS server IP address are filled.
Signed-off-by: Asias He <asias.hejun@gmail.com> Signed-off-by: Pekka Enberg <penber
kvm tools: Fill DHCP options with domain name and DNS server IP
Domain name and DNS server IP address are filled.
Signed-off-by: Asias He <asias.hejun@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
show more ...
|
#
bdcc9e40 |
| 17-Jul-2011 |
Asias He <asias.hejun@gmail.com> |
kvm tools: Get domain name and nameserver from host
This patch get domain name and nameserver information from host config file /etc/resolv.conf.
Guest can obtain DNS information through DHCP.
Sig
kvm tools: Get domain name and nameserver from host
This patch get domain name and nameserver information from host config file /etc/resolv.conf.
Guest can obtain DNS information through DHCP.
Signed-off-by: Asias He <asias.hejun@gmail.com> [ penberg@kernel.org: check fscanf() for errors ] Signed-off-by: Pekka Enberg <penberg@kernel.org>
show more ...
|
#
8f5f2f95 |
| 17-Jul-2011 |
Asias He <asias.hejun@gmail.com> |
kvm tools: Add helpers to tell the type of a DHCP message
If DHCP DISCOVER or DHCP REQUEST is found, reply with DHCP OFFER or DHCP ACK respectively.
Signed-off-by: Asias He <asias.hejun@gmail.com>
kvm tools: Add helpers to tell the type of a DHCP message
If DHCP DISCOVER or DHCP REQUEST is found, reply with DHCP OFFER or DHCP ACK respectively.
Signed-off-by: Asias He <asias.hejun@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
show more ...
|
#
0c4bfcac |
| 17-Jul-2011 |
Asias He <asias.hejun@gmail.com> |
kvm tools: Add helper to tell if a UDP package is a DHCP package
This patch checks:
- sport and dport
- magic cookie
to detemine whether a UDP package is a DHCP package.
Signed-off-by: Asi
kvm tools: Add helper to tell if a UDP package is a DHCP package
This patch checks:
- sport and dport
- magic cookie
to detemine whether a UDP package is a DHCP package.
Signed-off-by: Asias He <asias.hejun@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
show more ...
|