186 Commits

Author SHA1 Message Date
hankangkang
73e6d3e7f4 bug: free sock when exit
(cherry picked from commit 32b9ab7f27450cda7940fcdd20ca99a1f1292528)
2024-12-03 10:05:29 +08:00
jiangheng
e40ebc825a fix no ack response when lcoal only receive but not send data
(cherry picked from commit cff9209833e43c2d025165c7890410c0ac3775eb)
2024-11-22 17:06:27 +08:00
yangchen
567dc04c84 fix IFNAMSIZ definition conflict between lwip and kernel
(cherry picked from commit 8ec18511ecfd6990b17210b27ffb17c3a7bf4c2b)
2024-11-15 19:43:38 +08:00
hankangkang
c76bb1248a When the GAZELLE_TCP_REUSE_IPPORT is on, min_cnts_lpcb is NULL
(cherry picked from commit af28680ed87c42b93dbb515dfbe55cb75430744d)
2024-11-01 16:03:58 +08:00
yinbin
0975937e04 IGMP: fix problem that can not join the sixteen igmp group
(cherry picked from commit 729e3e8ed5993050d5bd0fc19cb90858c7fb682a)
2024-11-01 10:23:44 +08:00
yinbin
eb405ae5cd bugfix: fix memery errors detected by cooddy
(cherry picked from commit 2e88021dd3023ae87fd8b57345447f8ca9e5ed83)
2024-10-18 15:03:40 +08:00
jiangheng
e5a7075a0e pingpong: fix send dup ack in fast timer
(cherry picked from commit 94af3edd00fec7cddf8e1cdd8e83e1b67d4a65b5)
2024-10-08 09:13:46 +08:00
jiangheng
d596657514 adapt for interrupt mode
(cherry picked from commit 2c32351b0205b715b687964679acb4282b4ec8fe)
2024-10-08 09:10:37 +08:00
jiangheng
f73eaab7a2 add pingpong mode support
(cherry picked from commit 96f86bacb34254ac75cce04aa29045daf8dfca1b)
2024-10-08 09:07:54 +08:00
Lemmy Huang
64dff1d769 cleancode: rename log level
LWIPGZ_LOG_DEBUG
  LWIPGZ_LOG_INFO
  LWIPGZ_LOG_WARNING
  LWIPGZ_LOG_ERR
  LWIPGZ_LOG_FATAL

Signed-off-by: Lemmy Huang <huangliming5@huawei.com>
(cherry picked from commit 0fa07a72d9fad48289039559cfbff49834527854)
2024-09-30 10:34:00 +08:00
yinbin
648cc8428a LOG: modified gazelle log level and add item in mib2
(cherry picked from commit 0e4a490bf1996cdffb51f59a8e45bf12e12d964a)
2024-09-29 21:38:09 +08:00
yinbin
08155b68d3 LWIPOPTS: support setsockopt SO_SNDTIMEO SO_SNDBUF
(cherry picked from commit 76e0b18f1c47eb426da5448cd93a316963204f11)
2024-09-20 19:47:12 +08:00
yinbin
1e6cf2e345 check if mem_init returns errno
(cherry picked from commit a12012bcef9c04aba33bd065bcad7cbd8a1387c8)
2024-08-21 16:58:12 +08:00
yangchen
950a187e1d fix the definition of IPV6_V6ONLY
(cherry picked from commit 63d08ed4396d07d3ce4c4d43bfac50d0b4bfd0f0)
2024-08-21 16:43:29 +08:00
yinbin
e4f94d6b81 INIT: fix lwip_init failed because of dpdk set errno
(cherry picked from commit 9fc987a4da3ce8350fcb28f23917e05e1993b02e)
2024-08-21 09:55:27 +08:00
yinbin
c6f4c0e465 LOOPBACK: fix loop coredump
(cherry picked from commit 3c9825cc509393533200148bbbde1f91ad4052cd)
2024-08-21 09:19:51 +08:00
Lemmy Huang
2b28a02203 cleancode: refactor offload
enable sys_arch failed log

Signed-off-by: Lemmy Huang <huangliming5@huawei.com>
(cherry picked from commit 34b22f2f4f2cb538497e033b1eaf9cd4092a9527)
2024-08-20 20:57:36 +08:00
Lemmy Huang
0bd5979b72 cleancode: refactor memp
Signed-off-by: Lemmy Huang <huangliming5@huawei.com>
(cherry picked from commit 1d12d69321823922045c0875ffe3cdc24f6bca1d)
2024-08-20 20:42:11 +08:00
Lemmy Huang
44e92f10b1 cleancode: refactor sys_now and lwip_ioctl
Signed-off-by: Lemmy Huang <huangliming5@huawei.com>
(cherry picked from commit 752bbadcb8fb3768154cede5886cd61f8ce256e8)
2024-08-20 16:09:23 +08:00
Lemmy Huang
2bbeb8f3be cleancode: move tcp_hash_table to lwipgz_tcp_priv.h
Signed-off-by: Lemmy Huang <huangliming5@huawei.com>
(cherry picked from commit e5281e35a4dc5fa93a4265e73b8c88d35d5367ef)
2024-08-20 15:53:18 +08:00
Lemmy Huang
7f3dbc4b41 cleancode: move options from opt.h to lwipopts.h
Signed-off-by: Lemmy Huang <huangliming5@huawei.com>
(cherry picked from commit f8dbc52ccc0c57ada72279ab34ca764bbef3e91e)
2024-08-20 14:30:46 +08:00
Lemmy Huang
517bbc7033 cleancode: refactor lwipgz_hlist.h
Changed:
    INIT_HLIST_HEAD -> hlist_init_head
    INIT_HLIST_NODE -> hlist_init_node
    hlist_empty     -> hlist_head_empty
    hlist_unhashed  -> hlist_node_null
    hlist_del_init  -> hlist_del_node
  Not changed:
    hlist_add_head
    hlist_add_before
    hlist_add_after
  Deprecated:
    INIT_HLIST_CTRL
    hlist_ctl_del
    hlist_pop_tail
    hlist_pop_head
    hlist_ctl_add_tail
    hlist_ctl_add_head
    hlist_ctl_add_after
    hlist_ctl_add_before

Signed-off-by: Lemmy Huang <huangliming5@huawei.com>
(cherry picked from commit cdc8bd604439ca9b3fd6bf2500816f2e6269e64e)
2024-08-20 11:22:00 +08:00
Lemmy Huang
15385a2dd3 cleancode: refactor lwipgz_list.h
Changed:
    list_is_empty       -> list_head_empty
    list_is_null        -> list_node_null

    init_list_node      -> list_init_head
    init_list_node_null -> list_init_node

    list_add_node       -> list_add_node
    list_del_node_null  -> list_del_node
    list_del_node       -> __list_del_node
    list_for_each_safe  -> list_for_each_node
  Deprecated:
    list_del_node_init
  Added:
    list_get_node_count
    list_entry

Signed-off-by: Lemmy Huang <huangliming5@huawei.com>
(cherry picked from commit 4d42ad4eeda6b9e9feb902ba7e986aa5a153db49)
2024-08-20 11:08:34 +08:00
Lemmy Huang
6424911a07 cleancode: refactor posix_api
Signed-off-by: Lemmy Huang <huangliming5@huawei.com>
(cherry picked from commit 372566ff31eea6f3eec6aa3434d390503fcbf44a)
2024-08-20 10:52:50 +08:00
Lemmy Huang
7c3d307dbd cleancode: refactor posix type and get_socket
Changed:
    get_socket_by_fd -> lwip_get_socket
    get_socket

    SET_CONN_TYPE_LIBOS_OR_HOST   -> POSIX_SET_TYPE
    SET_CONN_TYPE_LIBOS
    SET_CONN_TYPE_HOST

    CONN_TYPE_IS_LIBOS            -> POSIX_IS_TYPE
    CONN_TYPE_IS_HOST

    CONN_TYPE_HAS_LIBOS_AND_HOST  -> POSIX_HAS_TYPE
    CONN_TYPE_HAS_LIBOS
    CONN_TYPE_HAS_HOST

Signed-off-by: Lemmy Huang <huangliming5@huawei.com>
(cherry picked from commit 722d58e4b17d5bc7f4bd4b9cfa8b59ee94eb92ff)
2024-08-20 09:38:45 +08:00
Lemmy Huang
931209bcad cleancode: refactor lwipsock.h
Signed-off-by: Lemmy Huang <huangliming5@huawei.com>
(cherry picked from commit df157deb4258ed1b202ffa6277992b26371ae467)
2024-08-13 10:54:29 +08:00
Lemmy Huang
de9c0daf3c cleancode: rename gazelle files in lwip
Signed-off-by: Lemmy Huang <huangliming5@huawei.com>
(cherry picked from commit 38d1bebcd76bc1d761b89443aadc0f371d1515ab)
2024-07-17 14:30:48 +08:00
Lemmy Huang
6effda4290 cleancode: improving makefile readability
cleancode: remove perf

Signed-off-by: Lemmy Huang <huangliming5@huawei.com>
(cherry picked from commit a47e06640116c144a038f330f4b044c9e4741fcf)
2024-07-17 10:21:10 +08:00
wanfeng
43619cd290 add MCAST_MSFILTER in setsockopt for MLDv2 of IPv6
(cherry picked from commit 840b330fab146ad8706b7f7ea6acf80f7c1f6a6e)
2024-07-12 15:30:52 +08:00
wanfeng
9dc9d24390 add MCAST_MSFILTER to setsockopt for IGMPv3
(cherry picked from commit 836544f19c307b9148cd3aa95b261e8d95775e16)
2024-07-05 17:44:34 +08:00
hantwofish
fc7816e4c3 virtio: record local_port for distributing pkts in virtio_user.
(cherry picked from commit a37e0838d2d238b31e9784a579dba4dd61b53a04)
2024-07-01 10:45:03 +08:00
wanfeng
396ce72607 Improve the size of multicast specifications, with a maximum of 16 groups and 32 members per group
(cherry picked from commit 6e68a85be7dd64edecfd030f699f711e09bbe4ac)
2024-06-28 17:31:53 +08:00
wanfeng
72578a7bdd add IP_ADD_SOURCE_MEMBERSHIP to setsockopt for igmpv3
(cherry picked from commit f8fce423a2ab60bd28e21bc10bc759bb1678d692)
2024-06-28 15:58:18 +08:00
jiangheng
efdb605ad6 distinguish tcp/udp get_from_sendring
(cherry picked from commit 681985d73e187b12d221d7adb1d3f1ffee269579)
2024-06-25 11:27:55 +08:00
yangchen
bd07f4a2ef lwip_sock: add sock_time_stamp
(cherry picked from commit 89bc4387b16a7c786ee9d7b0f3f34c61d04584a1)
2024-06-20 16:15:52 +08:00
yinbin6
b827de2e31 reduce pbuf poll size
(cherry picked from commit 31d2ac9cf3e6e42de830d4276cab3c64deee0851)
2024-06-20 15:56:21 +08:00
zhengjiebing
521e00f6d1 fix vlan filter bug
(cherry picked from commit 74a719175a88a9baddeb25ae83337f0f483ff1b8)
2024-06-20 11:08:34 +08:00
ningjin
9b32134abc change STAT_COUNTER from u16 to u64
(cherry picked from commit fb6adaf65970e0619f227df508f7698b8fcad9ee)
2024-05-31 15:48:50 +08:00
hantwofish
a019b46e7f mod checksum of ip_hdr and udp_hdr
(cherry picked from commit 9cb9aea40b320896c4703b36b9f173404402923f)
2024-05-21 19:37:40 +08:00
wanfeng
7d22ca7eb5 allow multicast membership to register multiple times
(cherry picked from commit 8034fbc3dea7d6d4ba831f459cf65e32d4ee476d)
2024-05-20 19:10:42 +08:00
hantwofish
22155c6c10 Fix MBUF memory leakage issue when message length is greater than MTU
(cherry picked from commit f82e0df44108578caa929cda16103e231531c9e3)
2024-05-13 15:33:18 +08:00
zhangyulongkylinos
78bffe3cc4 add MCAST_BLOCK_SOURCE to setsockopt for igmp3
(cherry picked from commit 6efc84747c29c2e313e4d75f7ab195679cf3829c)
2024-05-08 15:11:51 +08:00
zhangyulongkylinos
7ccc40f1a3 add MCAST_JOIN_GROUP to setsockopt for igmp3
(cherry picked from commit b474ee38542827cc8b3da5d57626c7357c27e8e7)
2024-05-08 15:08:25 +08:00
yinbin6
5932aba8f9 memset gazelle_quintuple in vdev_reg_done
(cherry picked from commit 3a20b81f5f851373509097ea8ed01719216d0cbb)
2024-05-08 14:46:25 +08:00
zhangyulongkylinos
83f81bf594 add MCAST_JOIN_SOURCE_GROUP to setsockopt for igmpv3
(cherry picked from commit 781677e2626ab21683cb1fba9a020f90d4cb6d1f)
2024-05-08 14:37:09 +08:00
wanfeng
27b06ec1cc add MCAST_BLOCK_SOURCE to setsockopt for mldv2
(cherry picked from commit 4056acb953a94e2b91d407f44a7c0440fb094d8b)
2024-05-08 14:25:38 +08:00
compile_success
c02ce97321 sync stats: add stats_proto in/out to xmit/recv 2024-05-08 03:01:31 +00:00
wanfeng
7dfe566da1 add MCAST_JOIN_SOURCE_GROUP to setsockopt for mldv2
(cherry picked from commit dc1cccb2ccb020e63c461da7bbee8604685eb424)
2024-04-26 15:29:00 +08:00
compile_success
3f09677924 fix udp recv memleak
(cherry picked from commit ae967bf99f5eacfc2d4a5a3ca4cb59c0560be245)
2024-04-26 14:33:54 +08:00
yinbin6
1a8b545caa opts: modify MEMP_NUM_UDP_PCB
(cherry picked from commit 4e15aea3ad871da35b49f20b4953f94f353a383f)
2024-04-21 15:06:01 +08:00