Go to file
Andy Gay af1b6a41d4 Fix struct alignment with cris architecture
[IPROUTE]: Fix struct alignment with cris architecture

gcc for the cris arch does not pad structures to the next multiple of 4
bytes, as the i386 gcc does.

This causes errors like this when displaying xfrm policies:

# ip x p
!!!Deficit 3, rta_len=300
src 192.168.251.32/29 dst 192.168.251.32/29
        dir in priority 0
!!!Deficit 3, rta_len=180
src 0.0.0.0/0 dst 192.168.251.32/29
        dir in priority 2208
....

Similar errors are seen from ip x s.

This patch fixes the errors when printing. I'm not sure whether we
should worry about other uses of the affected structs, I've not seen any
other bad effects from this though, so hopefully this is enough.

(Thanks to Herbert Xu for pointing out that NLMSG_SPACE is the correct
macro to use here.)

Tested against 2.6.17.6 kernel on i386, and 2.6.16.1 kernel on cris.

Signed-off-by: Andy Gay <andy@andynet.net>
Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
2006-08-11 09:44:36 -07:00
doc documentation bug fix on mirred 2006-08-04 10:52:19 -07:00
etc/iproute2 Add more rtproto values 2006-03-10 23:44:04 +00:00
examples Grab some more CBQ examples from Fedora Core 2005-10-12 22:46:23 +00:00
genl Add ignore file for new genl 2006-08-08 12:14:09 -07:00
include Add support for larger number of routing tables 2006-08-10 16:12:07 -07:00
ip Fix struct alignment with cris architecture 2006-08-11 09:44:36 -07:00
lib Add support for larger number of routing tables 2006-08-10 16:12:07 -07:00
man Minor man page update 2006-01-03 19:25:29 +00:00
misc Add ignore files to make using git easier 2006-08-08 12:04:38 -07:00
netem Add ignore files to make using git easier 2006-08-08 12:04:38 -07:00
tc First part of cleaning up the help output of actions. 2006-08-08 12:10:08 -07:00
testsuite More missing files. 2005-06-23 20:37:43 +00:00
.gitignore Add ignore files to make using git easier 2006-08-08 12:04:38 -07:00
COPYING (Logical change 1.71) 2004-08-23 20:21:21 +00:00
ChangeLog Backout the 2.4 utsname hash patch. 2006-03-22 00:07:49 +00:00
Makefile This patch adds a generic netlink controller interface. 2006-08-08 12:13:34 -07:00
README Update README with current info. 2004-06-28 20:37:23 +00:00
README.decnet Decnet documentation update 2005-06-13 18:47:56 +00:00
README.distribution Rename: tc/README.distribution -> README.distribution 2004-08-23 20:21:21 +00:00
README.iproute2+tc (Logical change 1.3) 2004-04-15 20:56:59 +00:00
README.lnstat Rename: misc/README.lnstat -> README.lnstat 2004-10-19 20:24:47 +00:00
RELNOTES (Logical change 1.3) 2004-04-15 20:56:59 +00:00
configure Import patch iproute2.111 2005-01-17 23:26:46 +00:00

README

Primary site is:
	http://developer.osdl.org/dev/iproute2

Original FTP site is:
	ftp://ftp.inr.ac.ru/ip-routing/

How to compile this.
--------------------
1. Look at start of Makefile and set correct values for:

KERNEL_INCLUDE should point to correct linux kernel include directory.
Default (/usr/src/linux/include) is right as rule.

DBM_INCLUDE points to the directory with db_185.h which
is the include file used by arpd to get to the old format Berkely
database routines.  Often this is in the db-devel package.

2. make

The makefile will automatically build a file Config which
contains whether or not ATM is available, etc.

3. To make documentation, cd to doc/ directory , then
   look at start of Makefile and set correct values for
   PAGESIZE=a4		, ie: a4 , letter ...	(string)
   PAGESPERPAGE=2	, ie: 1 , 2 ...		(numeric)
   and make there. It assumes, that latex, dvips and psnup
   are in your path.

Stephen Hemminger
shemminger@osdl.org

Alexey Kuznetsov
kuznet@ms2.inr.ac.ru