Xiang Xiao
1ee948e0c8
Include assert.h for DEBUGASSERT caller
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-05-24 12:34:37 +09:00
chao.an
4c256e7db3
netutils/dhcpd: handshake the dhcpd message with server port.
...
resolve the dhcpd compatibility issues on some strict system, such as Windows XP,7,10
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-03-21 20:55:32 -07:00
Jiuzhu Dong
801acce04e
dhcpd/telnet: don't need to dupcalite listen socket when task_create
...
N/A
Change-Id: Id0d613809c4caf902332b16daedebbe45acee7f2
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-03-19 08:21:27 +09:00
Dong Heng
208df89ab0
netutils/dhcpd: Fix printf format error based on different chip arches
2021-03-05 07:45:07 -08:00
YAMAMOTO Takashi
e1cfa52efa
netutils/dhcpd/dhcpd.c: Fix syslog formats
2020-11-26 19:28:14 -08:00
chao.an
8917467d04
netutils/dhcpd: correct the member name
...
Change-Id: I4dc6be8550a938851ae897fd93200a995e5c5178
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-08-07 14:16:14 -05:00
Xiang Xiao
3b98acc87c
netutils/dhcpd: correct the option header check
...
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-05-14 07:51:55 -06:00
Xiang Xiao
ed3ac15526
netutils/dhcpd: Fix the minor typo error
...
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-05-14 07:51:55 -06:00
chao.an
7a9eea5aba
netutils/dhcpd: fix nxstyle warning
...
Change-Id: I92c4c9426629c728c70b3f6bb047f218816580a2
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-05-09 13:31:15 -06:00
chao.an
018c9420ac
netutils/dhcpd: cancelable dhcp daemon
...
Change-Id: Iea3c0b8f91b0d6d8ececcd3932d8756a9d021608
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-05-09 13:31:15 -06:00
Xiang Xiao
41d88f06e7
Run codespell -w with the latest dictonary again
2020-02-23 07:10:14 -06:00
Xiang Xiao
d660492289
Run codespell -w against all files
...
and fix the wrong correction
2020-02-22 14:41:36 -06:00
Xiang Xiao
db61c92100
Fix dhcpd #17
...
apps/netutils/dhcpd/dhcpd.c: Fix unused const variable
dhcpd.c:273:29: warning: 'g_anyipaddr' defined but not used [-Wunused-const-variable=]
static const uint8_t g_anyipaddr[4] = {0, 0, 0, 0};
apps/netutils/dhcpd: Make dhcpd interface configurable
apps/netutils/dhcpd: Lease address directly if hit in address range
apps/netutils/netinit: Initialize dhcpc_state
update the addresses only on request success
2020-01-16 12:06:25 -06:00
Xiang Xiao
857158451b
Unify the void cast usage
...
1.Remove void cast for function because many place ignore the returned value witout cast
2.Replace void cast for variable with UNUSED macro
Change-Id: Ie644129a563244a6397036789c4c3ea83c4e9b09
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-01-02 23:21:01 +08:00
Gregory Nutt
9b77f80740
apps/netutils/dhcpd/dhcpd.c: Correct backward conditional logic in dhcpd_leaseexpired(). Noted by surya prakash <suryaec1684@gmail.com>.
2019-12-19 07:35:52 -06:00
Nathan Hartman
664e8a1410
Fix minor typos in docs and comments.
2019-09-29 12:53:39 -06:00
Anthony Merlino
87098590b5
Merged in antmerlino/apps/dhcpd-arp-fix (pull request #187 )
...
netutils/dhcpd: Fixes bug where hwaddr was being used instead of ipaddr in the ARP update.
This bug seems to have been introduced 3 years ago during a rewrite to remove a direct OS call to arp. I'm not sure how others have not run into issues with this. The behavior I was observing was that the DHCPD would go to offer an IP address, but then send a ARP request for the IP instead because it didn't know where to send the data.
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-07-26 01:52:57 +00:00
EunBong Song
d0f74f5346
dhcpd: Prevent buffer overflow in dhcpd_addoption. offset represents distance from start of option buffer. So this should be changed current option pointer minus start of buffer.
2017-08-25 06:50:37 -06:00
Sebastien Lorquet
2cbad44f1d
This is the Pokemon patch to change all includes fronm <apps/bla/bla.h> to "bla/bla.h"
2016-07-11 10:11:18 -06:00
Gregory Nutt
a50383db3d
apps/graphics and netutils: Change some *err() message to *info() messages if what was a *dbg() message does not indicate and error condition.
2016-06-14 17:53:47 -06:00
Gregory Nutt
586b0aa7e0
Change names of *dbg() * *err()
2016-06-11 15:51:27 -06:00
Gregory Nutt
344c92e2a4
Replace all occurrences of vdbg with vinfo
2016-06-11 11:55:38 -06:00
Gregory Nutt
5642e02f77
Fix some incorrect usage of INADDR_ANY
2016-02-09 11:24:30 -06:00
Gregory Nutt
85b5341d7b
DHCPD no longer calls directly into the OS, but uses network IOCTL commands to modify the ARP table.
2016-02-08 12:07:47 -06:00
Gregory Nutt
f10f2de2e4
Eliminate some warnings
2015-09-08 09:20:49 -06:00
Gregory Nutt
ae57fd7ee2
Fix some warnings/errors detected by nuttx/tools/testbuilds.sh
2015-07-10 18:41:56 -06:00
Gregory Nutt
55bfbed33f
Fixes for more issues found by cppcheck
2014-11-25 15:26:30 -06:00
Gregory Nutt
af6272a227
SAMA5D4-EK EMAC1: Correct name of EMAC1 configuration variable
2014-11-18 11:02:22 -06:00
Gregory Nutt
24aa151b00
Ooops.. Fix oversight in last commit
2014-11-18 07:43:34 -06:00
Gregory Nutt
424c885f55
DHCPD: Remove dhcpd_addoption_n. It uses C features not supported by all compilers
2014-11-18 07:25:01 -06:00
Gregory Nutt
e59819bbed
DHCPD: Add support for the dhcp options for netmask, router and dns. From Brennan Ashton
2014-11-18 07:20:18 -06:00
Gregory Nutt
97d6f97df7
NET: in-progress change... don't use
2014-07-04 16:38:51 -06:00
Gregory Nutt
44ea3903f9
DHCPD: Missed name change uip_lock->net_lock
2014-06-30 19:31:27 -06:00
Gregory Nutt
86a4890fca
Move include/nuttx/net/uip/uip-arch.h to include/nuttx/net/arp.h; rename all uip_arp_ functions to arp_
2014-05-30 12:13:06 -06:00
Gregory Nutt
b9cf7acb1a
More trailing whilespace removal
2014-04-13 16:24:28 -06:00
Gregory Nutt
217aa7835e
DHCPD: Correct value of PAD option is 0, not 1. From Brennan Ashton
2014-03-31 12:33:52 -06:00
Gregory Nutt
9b172004c0
dhcpd_allocipaddr() should not call ntohl(). The return value is already in host order. From Brennan Ashton
2014-03-03 17:46:56 -06:00
Gregory Nutt
09f534db73
DHCPD: Fix calculation of lease address. Bad logic causes repeated assignment of the same IP address. SourceForge bug #21 from Paolo Messina.
2013-09-06 08:10:54 -06:00
patacongo
217e8451f9
Move all non-standard, NuttX header files into include/nuttx/net
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4450 42af7a65-404d-4744-a932-0658087f49c3
2012-03-03 23:18:34 +00:00
patacongo
ba73620d39
Correct and error in recv() and recvfrom() return value
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4402 42af7a65-404d-4744-a932-0658087f49c3
2012-02-18 18:13:30 +00:00
patacongo
1329f14683
STM32 Ethernet bugfixes; STM3240G-EVAL DHCPD configuration; fixes for IP address order bugs in DHCPD
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4168 42af7a65-404d-4744-a932-0658087f49c3
2011-12-13 17:25:23 +00:00
patacongo
5b96d86bfb
Move nuttx/netutils to apps/netutils
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3401 42af7a65-404d-4744-a932-0658087f49c3
2011-03-19 21:04:13 +00:00