Added new option SO_REUSE_RXTOALL to pass received UDP broadcast/multicast packets to more than one pcb

This commit is contained in:
goldsimon
2010-05-15 14:52:39 +00:00
parent baeb41f5f4
commit a56795c149
3 changed files with 55 additions and 2 deletions

View File

@@ -1388,12 +1388,21 @@
#endif
/**
* SO_REUSE==1: Enable SO_REUSEADDR and SO_REUSEPORT options. DO NOT USE!
* SO_REUSE==1: Enable SO_REUSEADDR option.
*/
#ifndef SO_REUSE
#define SO_REUSE 0
#endif
/**
* SO_REUSE_RXTOALL==1: Pass a copy of incoming broadcast/multicast packets
* to all local matches if SO_REUSEADDR is turned on.
* WARNING: Adds a memcpy for every packet if passing to more than one pcb!
*/
#ifndef SO_REUSE_RXTOALL
#define SO_REUSE_RXTOALL 0
#endif
/*
----------------------------------------
---------- Statistics options ----------