Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Mar 2008 14:43:57 +0100
From:      Giulio Ferro <auryn@zirakzigil.org>
To:        pyunyh@gmail.com
Cc:        Andrew Thompson <thompsa@freebsd.org>, freebsd-net@freebsd.org
Subject:   Re: VLAN trunking and fragmentation
Message-ID:  <47D92F9D.4070701@zirakzigil.org>
In-Reply-To: <20080313033029.GF16972@cdnetworks.co.kr>
References:  <47D7C34E.8060805@zirakzigil.org> <47D817D2.9010306@errno.com> <47D8499A.5070605@zirakzigil.org> <20080313033029.GF16972@cdnetworks.co.kr>

next in thread | previous in thread | raw e-mail | index | archive | help
Pyun YongHyeon wrote:
> To rule out other possible issues, would you try the following
> files on your box?
>
> http://people.freebsd.org/~yongari/re/if_re.c
> http://people.freebsd.org/~yongari/re/if_rereg.h
>
>   
The latter is if_rlreg.h, I guess...

Anyway they don't compile:

cc -c -O2 -frename-registers -pipe -fno-strict-aliasing  -std=c99 -g 
-Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  
-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef 
-Wno-pointer-sign -fformat-extensions -nostdinc  -I. -I/usr/src/sys 
-I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS 
-include opt_global.h -fno-common -finline-limit=8000 --param 
inline-unit-growth=100 --param large-function-growth=1000  
-mcmodel=kernel -mno-red-zone  -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx 
-mno-3dnow  -msoft-float -fno-asynchronous-unwind-tables -ffreestanding 
-Werror  /usr/src/sys/dev/random/yarrow.c
cc -c -O2 -frename-registers -pipe -fno-strict-aliasing  -std=c99 -g 
-Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  
-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef 
-Wno-pointer-sign -fformat-extensions -nostdinc  -I. -I/usr/src/sys 
-I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS 
-include opt_global.h -fno-common -finline-limit=8000 --param 
inline-unit-growth=100 --param large-function-growth=1000  
-mcmodel=kernel -mno-red-zone  -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx 
-mno-3dnow  -msoft-float -fno-asynchronous-unwind-tables -ffreestanding 
-Werror  /usr/src/sys/dev/re/if_re.c
/usr/src/sys/dev/re/if_re.c: In function 're_allocmem':
/usr/src/sys/dev/re/if_re.c:997: error: 'struct rl_list_data' has no 
member named 'rl_rx_desc_cnt'
/usr/src/sys/dev/re/if_re.c:998: error: 'struct rl_list_data' has no 
member named 'rl_tx_desc_cnt'
/usr/src/sys/dev/re/if_re.c:1017: error: 'RL_NTXSEGS' undeclared (first 
use in this function)
/usr/src/sys/dev/re/if_re.c:1017: error: (Each undeclared identifier is 
reported only once
/usr/src/sys/dev/re/if_re.c:1017: error: for each function it appears in.)
/usr/src/sys/dev/re/if_re.c:1018: error: 'struct rl_list_data' has no 
member named 'rl_tx_mtag'
/usr/src/sys/dev/re/if_re.c:1030: error: 'struct rl_list_data' has no 
member named 'rl_rx_mtag'
/usr/src/sys/dev/re/if_re.c:1073: error: 'struct rl_list_data' has no 
member named 'rl_tx_desc_cnt'
/usr/src/sys/dev/re/if_re.c:1074: error: 'struct rl_list_data' has no 
member named 'rl_tx_mtag'
/usr/src/sys/dev/re/if_re.c:1075: error: 'struct rl_list_data' has no 
member named 'rl_tx_desc'
/usr/src/sys/dev/re/if_re.c:1119: error: 'struct rl_list_data' has no 
member named 'rl_rx_mtag'
/usr/src/sys/dev/re/if_re.c:1120: error: 'struct rl_list_data' has no 
member named 'rl_rx_sparemap'
/usr/src/sys/dev/re/if_re.c:1125: error: 'struct rl_list_data' has no 
member named 'rl_rx_desc_cnt'
/usr/src/sys/dev/re/if_re.c:1126: error: 'struct rl_list_data' has no 
member named 'rl_rx_mtag'
/usr/src/sys/dev/re/if_re.c:1127: error: 'struct rl_list_data' has no 
member named 'rl_rx_desc'
/usr/src/sys/dev/re/if_re.c: In function 're_attach':
/usr/src/sys/dev/re/if_re.c:1200: error: 'RL_CFG2_MSI' undeclared (first 
use in this function)
/usr/src/sys/dev/re/if_re.c:1266: error: 'struct rl_list_data' has no 
member named 'rl_tx_desc_cnt'
/usr/src/sys/dev/re/if_re.c:1266: error: 'RL_8169_TX_DESC_CNT' 
undeclared (first use in this function)
/usr/src/sys/dev/re/if_re.c:1267: error: 'struct rl_list_data' has no 
member named 'rl_rx_desc_cnt'
/usr/src/sys/dev/re/if_re.c:1267: error: 'RL_8169_RX_DESC_CNT' 
undeclared (first use in this function)
/usr/src/sys/dev/re/if_re.c:1272: error: 'struct rl_list_data' has no 
member named 'rl_tx_desc_cnt'
/usr/src/sys/dev/re/if_re.c:1272: error: 'RL_8139_TX_DESC_CNT' 
undeclared (first use in this function)
/usr/src/sys/dev/re/if_re.c:1273: error: 'struct rl_list_data' has no 
member named 'rl_rx_desc_cnt'
/usr/src/sys/dev/re/if_re.c:1273: error: 'RL_8139_RX_DESC_CNT' 
undeclared (first use in this function)
/usr/src/sys/dev/re/if_re.c: In function 're_detach':
/usr/src/sys/dev/re/if_re.c:1517: error: 'struct rl_list_data' has no 
member named 'rl_tx_mtag'
/usr/src/sys/dev/re/if_re.c:1518: error: 'struct rl_list_data' has no 
member named 'rl_tx_desc_cnt'
/usr/src/sys/dev/re/if_re.c:1519: error: 'struct rl_list_data' has no 
member named 'rl_tx_mtag'
/usr/src/sys/dev/re/if_re.c:1520: error: 'struct rl_list_data' has no 
member named 'rl_tx_desc'
/usr/src/sys/dev/re/if_re.c:1521: error: 'struct rl_list_data' has no 
member named 'rl_tx_mtag'
/usr/src/sys/dev/re/if_re.c:1523: error: 'struct rl_list_data' has no 
member named 'rl_rx_mtag'
/usr/src/sys/dev/re/if_re.c:1524: error: 'struct rl_list_data' has no 
member named 'rl_rx_desc_cnt'
/usr/src/sys/dev/re/if_re.c:1525: error: 'struct rl_list_data' has no 
member named 'rl_rx_mtag'
/usr/src/sys/dev/re/if_re.c:1526: error: 'struct rl_list_data' has no 
member named 'rl_rx_desc'
/usr/src/sys/dev/re/if_re.c:1527: error: 'struct rl_list_data' has no 
member named 'rl_rx_sparemap'
/usr/src/sys/dev/re/if_re.c:1528: error: 'struct rl_list_data' has no 
member named 'rl_rx_mtag'
/usr/src/sys/dev/re/if_re.c:1529: error: 'struct rl_list_data' has no 
member named 'rl_rx_sparemap'
/usr/src/sys/dev/re/if_re.c:1530: error: 'struct rl_list_data' has no 
member named 'rl_rx_mtag'
/usr/src/sys/dev/re/if_re.c: In function 're_discard_rxbuf':
/usr/src/sys/dev/re/if_re.c:1561: error: 'struct rl_list_data' has no 
member named 'rl_rx_desc'
/usr/src/sys/dev/re/if_re.c:1564: error: dereferencing pointer to 
incomplete type
/usr/src/sys/dev/re/if_re.c:1565: error: 'struct rl_list_data' has no 
member named 'rl_rx_desc_cnt'
/usr/src/sys/dev/re/if_re.c: In function 're_newbuf':
/usr/src/sys/dev/re/if_re.c:1601: error: 'struct rl_list_data' has no 
member named 'rl_rx_mtag'
/usr/src/sys/dev/re/if_re.c:1602: error: 'struct rl_list_data' has no 
member named 'rl_rx_sparemap'
/usr/src/sys/dev/re/if_re.c:1609: error: 'struct rl_list_data' has no 
member named 'rl_rx_desc'
/usr/src/sys/dev/re/if_re.c:1610: error: dereferencing pointer to 
incomplete type
/usr/src/sys/dev/re/if_re.c:1611: error: dereferencing pointer to 
incomplete type
/usr/src/sys/dev/re/if_re.c:1611: error: 'struct rl_list_data' has no 
member named 'rl_rx_mtag'
/usr/src/sys/dev/re/if_re.c:1611: error: dereferencing pointer to 
incomplete type
/usr/src/sys/dev/re/if_re.c:1613: error: dereferencing pointer to 
incomplete type
/usr/src/sys/dev/re/if_re.c:1613: error: 'struct rl_list_data' has no 
member named 'rl_rx_mtag'
/usr/src/sys/dev/re/if_re.c:1613: error: dereferencing pointer to 
incomplete type
/usr/src/sys/dev/re/if_re.c:1616: error: dereferencing pointer to 
incomplete type
/usr/src/sys/dev/re/if_re.c:1617: error: dereferencing pointer to 
incomplete type
/usr/src/sys/dev/re/if_re.c:1618: error: dereferencing pointer to 
incomplete type
/usr/src/sys/dev/re/if_re.c:1618: error: 'struct rl_list_data' has no 
member named 'rl_rx_sparemap'
/usr/src/sys/dev/re/if_re.c:1619: error: dereferencing pointer to 
incomplete type
/usr/src/sys/dev/re/if_re.c:1620: error: 'struct rl_list_data' has no 
member named 'rl_rx_sparemap'
/usr/src/sys/dev/re/if_re.c:1621: error: dereferencing pointer to 
incomplete type
/usr/src/sys/dev/re/if_re.c:1621: error: 'struct rl_list_data' has no 
member named 'rl_rx_mtag'
/usr/src/sys/dev/re/if_re.c:1621: error: dereferencing pointer to 
incomplete type
/usr/src/sys/dev/re/if_re.c:1629: error: 'struct rl_list_data' has no 
member named 'rl_rx_desc_cnt'
/usr/src/sys/dev/re/if_re.c: In function 're_tx_list_init':
/usr/src/sys/dev/re/if_re.c:1666: error: 'struct rl_list_data' has no 
member named 'rl_tx_desc_cnt'
/usr/src/sys/dev/re/if_re.c:1667: error: 'struct rl_list_data' has no 
member named 'rl_tx_desc_cnt'
/usr/src/sys/dev/re/if_re.c:1668: error: 'struct rl_list_data' has no 
member named 'rl_tx_desc'
/usr/src/sys/dev/re/if_re.c:1670: error: 'struct rl_list_data' has no 
member named 'rl_tx_desc_cnt'
/usr/src/sys/dev/re/if_re.c:1679: error: 'struct rl_list_data' has no 
member named 'rl_tx_desc_cnt'
/usr/src/sys/dev/re/if_re.c: In function 're_rx_list_init':
/usr/src/sys/dev/re/if_re.c:1691: error: 'struct rl_list_data' has no 
member named 'rl_rx_desc_cnt'
/usr/src/sys/dev/re/if_re.c:1692: error: 'struct rl_list_data' has no 
member named 'rl_rx_desc_cnt'
/usr/src/sys/dev/re/if_re.c:1693: error: 'struct rl_list_data' has no 
member named 'rl_rx_desc'
cc1: warnings being treated as errors
/usr/src/sys/dev/re/if_re.c: In function 're_rxeof':
/usr/src/sys/dev/re/if_re.c:1737: warning: implicit declaration of 
function 'RL_RX_DESC_NXT'
/usr/src/sys/dev/re/if_re.c:1737: warning: nested extern declaration of 
'RL_RX_DESC_NXT'
/usr/src/sys/dev/re/if_re.c:1744: error: 'struct rl_list_data' has no 
member named 'rl_rx_desc'
/usr/src/sys/dev/re/if_re.c: In function 're_txeof':
/usr/src/sys/dev/re/if_re.c:1920: warning: implicit declaration of 
function 'RL_TX_DESC_NXT'
/usr/src/sys/dev/re/if_re.c:1920: warning: nested extern declaration of 
'RL_TX_DESC_NXT'
/usr/src/sys/dev/re/if_re.c:1931: error: 'struct rl_list_data' has no 
member named 'rl_tx_desc'
/usr/src/sys/dev/re/if_re.c:1932: error: dereferencing pointer to 
incomplete type
/usr/src/sys/dev/re/if_re.c:1932: error: 'struct rl_list_data' has no 
member named 'rl_tx_mtag'
/usr/src/sys/dev/re/if_re.c:1932: error: dereferencing pointer to 
incomplete type
/usr/src/sys/dev/re/if_re.c:1934: error: dereferencing pointer to 
incomplete type
/usr/src/sys/dev/re/if_re.c:1934: error: 'struct rl_list_data' has no 
member named 'rl_tx_mtag'
/usr/src/sys/dev/re/if_re.c:1934: error: dereferencing pointer to 
incomplete type
/usr/src/sys/dev/re/if_re.c:1938: error: dereferencing pointer to 
incomplete type
/usr/src/sys/dev/re/if_re.c:1939: error: dereferencing pointer to 
incomplete type
/usr/src/sys/dev/re/if_re.c:1955: error: 'struct rl_list_data' has no 
member named 'rl_tx_desc_cnt'
/usr/src/sys/dev/re/if_re.c: In function 're_encap':
/usr/src/sys/dev/re/if_re.c:2151: error: 'RL_NTXSEGS' undeclared (first 
use in this function)
/usr/src/sys/dev/re/if_re.c:2213: error: 'struct rl_list_data' has no 
member named 'rl_tx_desc'
/usr/src/sys/dev/re/if_re.c:2214: error: 'struct rl_list_data' has no 
member named 'rl_tx_mtag'
/usr/src/sys/dev/re/if_re.c:2214: error: dereferencing pointer to 
incomplete type
/usr/src/sys/dev/re/if_re.c:2224: error: 'struct rl_list_data' has no 
member named 'rl_tx_mtag'
/usr/src/sys/dev/re/if_re.c:2225: error: dereferencing pointer to 
incomplete type
/usr/src/sys/dev/re/if_re.c:2241: error: dereferencing pointer to 
incomplete type
/usr/src/sys/dev/re/if_re.c:2241: error: 'struct rl_list_data' has no 
member named 'rl_tx_mtag'
/usr/src/sys/dev/re/if_re.c:2241: error: dereferencing pointer to 
incomplete type
/usr/src/sys/dev/re/if_re.c:2245: error: dereferencing pointer to 
incomplete type
/usr/src/sys/dev/re/if_re.c:2245: error: 'struct rl_list_data' has no 
member named 'rl_tx_mtag'
/usr/src/sys/dev/re/if_re.c:2245: error: dereferencing pointer to 
incomplete type
/usr/src/sys/dev/re/if_re.c:2277: error: 'struct rl_list_data' has no 
member named 'rl_tx_desc_cnt'
/usr/src/sys/dev/re/if_re.c:2286: warning: implicit declaration of 
function 'RL_TX_DESC_PRV'
/usr/src/sys/dev/re/if_re.c:2286: warning: nested extern declaration of 
'RL_TX_DESC_PRV'
/usr/src/sys/dev/re/if_re.c:2308: error: 'struct rl_list_data' has no 
member named 'rl_tx_desc'
/usr/src/sys/dev/re/if_re.c:2309: error: dereferencing pointer to 
incomplete type
/usr/src/sys/dev/re/if_re.c:2310: error: dereferencing pointer to 
incomplete type
/usr/src/sys/dev/re/if_re.c:2310: error: dereferencing pointer to 
incomplete type
/usr/src/sys/dev/re/if_re.c:2311: error: dereferencing pointer to 
incomplete type
/usr/src/sys/dev/re/if_re.c:2312: error: dereferencing pointer to 
incomplete type
/usr/src/sys/dev/re/if_re.c:2151: warning: unused variable 'segs'
/usr/src/sys/dev/re/if_re.c: In function 're_ioctl':
/usr/src/sys/dev/re/if_re.c:2662: error: 'RL_MAX_FRAMELEN' undeclared 
(first use in this function)
/usr/src/sys/dev/re/if_re.c: In function 're_stop':
/usr/src/sys/dev/re/if_re.c:2817: error: 'struct rl_list_data' has no 
member named 'rl_tx_desc_cnt'
/usr/src/sys/dev/re/if_re.c:2818: error: 'struct rl_list_data' has no 
member named 'rl_tx_desc'
/usr/src/sys/dev/re/if_re.c:2819: error: dereferencing pointer to 
incomplete type
/usr/src/sys/dev/re/if_re.c:2820: error: dereferencing pointer to 
incomplete type
/usr/src/sys/dev/re/if_re.c:2820: error: 'struct rl_list_data' has no 
member named 'rl_tx_mtag'
/usr/src/sys/dev/re/if_re.c:2820: error: dereferencing pointer to 
incomplete type
/usr/src/sys/dev/re/if_re.c:2822: error: dereferencing pointer to 
incomplete type
/usr/src/sys/dev/re/if_re.c:2822: error: 'struct rl_list_data' has no 
member named 'rl_tx_mtag'
/usr/src/sys/dev/re/if_re.c:2822: error: dereferencing pointer to 
incomplete type
/usr/src/sys/dev/re/if_re.c:2824: error: dereferencing pointer to 
incomplete type
/usr/src/sys/dev/re/if_re.c:2825: error: dereferencing pointer to 
incomplete type
/usr/src/sys/dev/re/if_re.c:2831: error: 'struct rl_list_data' has no 
member named 'rl_rx_desc_cnt'
/usr/src/sys/dev/re/if_re.c:2832: error: 'struct rl_list_data' has no 
member named 'rl_rx_desc'
/usr/src/sys/dev/re/if_re.c:2833: error: dereferencing pointer to 
incomplete type
/usr/src/sys/dev/re/if_re.c:2834: error: dereferencing pointer to 
incomplete type
/usr/src/sys/dev/re/if_re.c:2834: error: 'struct rl_list_data' has no 
member named 'rl_tx_mtag'
/usr/src/sys/dev/re/if_re.c:2834: error: dereferencing pointer to 
incomplete type
/usr/src/sys/dev/re/if_re.c:2836: error: dereferencing pointer to 
incomplete type
/usr/src/sys/dev/re/if_re.c:2836: error: 'struct rl_list_data' has no 
member named 'rl_rx_mtag'
/usr/src/sys/dev/re/if_re.c:2836: error: dereferencing pointer to 
incomplete type
/usr/src/sys/dev/re/if_re.c:2838: error: dereferencing pointer to 
incomplete type
/usr/src/sys/dev/re/if_re.c:2839: error: dereferencing pointer to 
incomplete type
/usr/src/sys/dev/re/if_re.c: In function 're_setwol':
/usr/src/sys/dev/re/if_re.c:2945: error: 'RL_CFG1_PME' undeclared (first 
use in this function)
/usr/src/sys/dev/re/if_re.c:2950: error: 'RL_CFG3' undeclared (first use 
in this function)
/usr/src/sys/dev/re/if_re.c:2951: error: 'RL_CFG3_WOL_LINK' undeclared 
(first use in this function)
/usr/src/sys/dev/re/if_re.c:2951: error: 'RL_CFG3_WOL_MAGIC' undeclared 
(first use in this function)
/usr/src/sys/dev/re/if_re.c:2959: error: 'RL_CFG5' undeclared (first use 
in this function)
/usr/src/sys/dev/re/if_re.c:2960: error: 'RL_CFG5_WOL_BCAST' undeclared 
(first use in this function)
/usr/src/sys/dev/re/if_re.c:2960: error: 'RL_CFG5_WOL_MCAST' undeclared 
(first use in this function)
/usr/src/sys/dev/re/if_re.c:2960: error: 'RL_CFG5_WOL_UCAST' undeclared 
(first use in this function)
/usr/src/sys/dev/re/if_re.c:2961: error: 'RL_CFG5_WOL_LANWAKE' 
undeclared (first use in this function)
/usr/src/sys/dev/re/if_re.c: In function 're_clrwol':
/usr/src/sys/dev/re/if_re.c:2999: error: 'RL_CFG3' undeclared (first use 
in this function)
/usr/src/sys/dev/re/if_re.c:3000: error: 'RL_CFG3_WOL_LINK' undeclared 
(first use in this function)
/usr/src/sys/dev/re/if_re.c:3000: error: 'RL_CFG3_WOL_MAGIC' undeclared 
(first use in this function)
/usr/src/sys/dev/re/if_re.c:3006: error: 'RL_CFG5' undeclared (first use 
in this function)
/usr/src/sys/dev/re/if_re.c:3007: error: 'RL_CFG5_WOL_BCAST' undeclared 
(first use in this function)
/usr/src/sys/dev/re/if_re.c:3007: error: 'RL_CFG5_WOL_MCAST' undeclared 
(first use in this function)
/usr/src/sys/dev/re/if_re.c:3007: error: 'RL_CFG5_WOL_UCAST' undeclared 
(first use in this function)
/usr/src/sys/dev/re/if_re.c:3008: error: 'RL_CFG5_WOL_LANWAKE' 
undeclared (first use in this function)
*** Error code 1

Stop in /usr/obj/usr/src/sys/FIREWALL.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
dcsuff-db-data1#              




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?47D92F9D.4070701>