누가 다음 코드가 무엇을 의미하는지 설명 할 수 있습니까?__KERNEL__이 (가) 리눅스 커널에서 사용되는 것은 무엇입니까?
__KERNEL__
이 정의되지 않은 경우 다음 매크로를 정의하십시오. 언제 어디서 __KERNEL__
을 정의합니까?
/* only for userspace compatibility */
#ifndef __KERNEL__
/* IP6 Hooks */
/* After promisc drops, checksum checks. */
#define NF_IP6_PRE_ROUTING 0
/* If the packet is destined for this box. */
#define NF_IP6_LOCAL_IN 1
/* If the packet is destined for another interface. */
#define NF_IP6_FORWARD 2
/* Packets coming from a local process. */
#define NF_IP6_LOCAL_OUT 3
/* Packets about to hit the wire. */
#define NF_IP6_POST_ROUTING 4
#define NF_IP6_NUMHOOKS 5
#endif /* ! __KERNEL__ */
대단히 감사합니다. 나는이 대답을 좋아한다. – DaVid