Changeset 247


Ignore:
Timestamp:
10/02/13 16:43:09 (11 years ago)
Author:
atzm
Message:

udp_encap_enable() is needed in kernel 3.5.0 or later.

Location:
ksyslog/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ksyslog/trunk/compat.h

    r246 r247  
    1515#endif 
    1616 
     17#if LINUX_VERSION_CODE < KERNEL_VERSION(3,5,0) 
     18static inline void udp_encap_enable(void) 
     19{ 
     20} 
     21#endif 
     22 
    1723#if LINUX_VERSION_CODE < KERNEL_VERSION(3,10,0) 
    1824#ifdef CONFIG_PROC_FS 
  • ksyslog/trunk/ksyslog.c

    r246 r247  
    652652        } 
    653653 
     654        ksyslog_work_register(ksyslog_flush_interval); 
     655 
    654656        udp_sk(ksyslog_rcv_sk->sk)->encap_type = UDP_ENCAP_KSYSLOG; 
    655657        udp_sk(ksyslog_rcv_sk->sk)->encap_rcv = ksyslog_rcv; 
    656  
    657         ksyslog_work_register(ksyslog_flush_interval); 
     658        udp_encap_enable(); 
    658659 
    659660        return 0; 
Note: See TracChangeset for help on using the changeset viewer.