source: packages/net/xtables-addons/patches/101-rtsp-linux-3.6-compat.patch @ 34391

Last change on this file since 34391 was 34391, checked in by jow, 4 years ago

xtables-addons: fix RTSP conntrack compatibility with Linux 3.6

File size: 520 bytes
  • extensions/rtsp/nf_conntrack_rtsp.c

    a b  
    2828 *                      - Port to new NF API 
    2929 */ 
    3030 
     31#include <linux/version.h> 
    3132#include <linux/module.h> 
    3233#include <linux/netfilter.h> 
    3334#include <linux/ip.h> 
    init(void) 
    496497                } else { 
    497498                        sprintf(tmpname, "rtsp-%d", i); 
    498499                } 
     500#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,6,0) 
     501                strncpy(hlpr->name, tmpname, sizeof(hlpr->name)); 
     502#else 
    499503                hlpr->name = tmpname; 
     504#endif 
    500505 
    501506                pr_debug("port #%d: %d\n", i, ports[i]); 
    502507 
Note: See TracBrowser for help on using the repository browser.