3 |
* |
* |
4 |
* Copyright (C) 2005-2009 NTT DATA CORPORATION |
* Copyright (C) 2005-2009 NTT DATA CORPORATION |
5 |
* |
* |
6 |
* Version: 1.7.0-pre 2009/08/24 |
* Version: 1.7.0 2009/09/03 |
7 |
* |
* |
8 |
* This file is applicable to both 2.4.30 and 2.6.11 and later. |
* This file is applicable to both 2.4.30 and 2.6.11 and later. |
9 |
* See README.ccs for ChangeLog. |
* See README.ccs for ChangeLog. |
171 |
char buf[64]; |
char buf[64]; |
172 |
if (ccs_init_request_info(&r, NULL, |
if (ccs_init_request_info(&r, NULL, |
173 |
CCS_MAC_NETWORK_UDP_BIND + operation) |
CCS_MAC_NETWORK_UDP_BIND + operation) |
174 |
== CCS_MAC_MODE_DISABLED) |
== CCS_CONFIG_DISABLED) |
175 |
return 0; |
return 0; |
176 |
memset(buf, 0, sizeof(buf)); |
memset(buf, 0, sizeof(buf)); |
177 |
if (is_ipv6) |
if (is_ipv6) |
225 |
error = ccs_supervisor(&r, CCS_KEYWORD_ALLOW_NETWORK |
error = ccs_supervisor(&r, CCS_KEYWORD_ALLOW_NETWORK |
226 |
"%s %s %u\n", keyword, buf, port); |
"%s %s %u\n", keyword, buf, port); |
227 |
} while (error == 1); |
} while (error == 1); |
228 |
if (r.mode != CCS_MAC_MODE_ENFORCING) |
if (r.mode != CCS_CONFIG_ENFORCING) |
229 |
error = 0; |
error = 0; |
230 |
return error; |
return error; |
231 |
} |
} |
797 |
|
|
798 |
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 22) |
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 22) |
799 |
#if !defined(RHEL_MAJOR) || RHEL_MAJOR != 5 |
#if !defined(RHEL_MAJOR) || RHEL_MAJOR != 5 |
800 |
|
#if !defined(AX_MAJOR) || AX_MAJOR != 3 || !defined(AX_MINOR) || AX_MINOR < 2 |
801 |
|
|
802 |
static inline struct iphdr *ip_hdr(const struct sk_buff *skb) |
static inline struct iphdr *ip_hdr(const struct sk_buff *skb) |
803 |
{ |
{ |
816 |
|
|
817 |
#endif |
#endif |
818 |
#endif |
#endif |
819 |
|
#endif |
820 |
|
|
821 |
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 12) |
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 12) |
822 |
static void skb_kill_datagram(struct sock *sk, struct sk_buff *skb, |
static void skb_kill_datagram(struct sock *sk, struct sk_buff *skb, |