Jan Kiszka wrote:
> [Somehow, my TB hates your mails - it just presents empty bodies to me
> when I hit reply. Strange.]

Hm, I used "quilt mail" to my local mbox first before bouncing it to
the RTnet-useres ML.

> Wolfgang Grandegger wrote:
>> With this patch non-real-time UDP packets a routed to the Linux
>> network stack. You can enable this feature with the configure
>> option "--enable-proxy-udp".
> 
> From a first glance, I think we can live without
> CONFIG_RTNET_ADDON_PROXY_UDP, just letting the new code depend on
> CONFIG_RTNET_ADDON_PROXY.

Fine for me. As I don't know the existing use-cases, I made the new
feature configurable.

> 
>> Note: this patch requires running "scripts/autogen.sh"
>>
>> Signed-off-by: Wolfang Grandegger <[EMAIL PROTECTED]>
>> Index: rtnet/stack/ipv4/ip_input.c
>> ===================================================================
>> --- rtnet.orig/stack/ipv4/ip_input.c
>> +++ rtnet/stack/ipv4/ip_input.c
>> @@ -70,6 +70,13 @@ static inline void rt_ip_local_deliver(s
>>          } else {
>>              /* Get the destination socket */
>>              if ((sock = ipprot->dest_socket(skb)) == NULL) {
>> +#ifdef CONFIG_RTNET_ADDON_PROXY_UDP
>> +                if (rt_ip_fallback_handler) {
>> +                    __rtskb_push(skb, iph->ihl*4);
>> +                    rt_ip_fallback_handler(skb);
>> +                    return;
>> +                }
>> +#endif
>>                  kfree_rtskb(skb);
>>                  return;
>>              }
>> Index: rtnet/stack/ipv4/ip_fragment.c
>> ===================================================================
>> --- rtnet.orig/stack/ipv4/ip_fragment.c
>> +++ rtnet/stack/ipv4/ip_fragment.c
>> @@ -33,6 +33,11 @@
>>  
>>  #include <ipv4/ip_fragment.h>
>>  
>> +#ifdef CONFIG_RTNET_ADDON_PROXY_UDP
>> +#include <ipv4/ip_input.h>
>> +#endif /* CONFIG_RTNET_ADDON_PROXY_UDP */
>> +
>> +#define FRAG_DBG
> 
> The last line probably does not want to be in mainline.

Yep.

Wolfgang.

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
RTnet-users mailing list
RTnet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rtnet-users

Reply via email to