Paula Berger | 28 Oct 2003 17:46
Picon
Picon
Favicon

IOCTL problem!!!


	Hi everybody.. I'm new here, so let's see if you guys can help me :-)

	I'm trying to use the ioctl function with the SIOCADDRT flag and I'm having 
some problems! What i want to do is simply add the default gateway to my 
routing table. I'm using the struct rtentry (don't know if I'm using it 
correctly though) then I create a datagram socket and the I use the ioctl 
function... Does anyone know what's wrong? 
	I'm sending my source as an example... if someone could please help me, I 
REALLY nedd to do this!!!
	Thanks,

--
Paula Berger
E-mail: pberger <at> inf.ufrgs.br
--

EXAMPLE:

int main() {
	uint32_t IpAddr;
	uint32_t Dst;
	uint32_t GenMask;
	struct sockaddr_in Route;
	struct rtentry Entry;
	int SockFd, res = 0;

	memset ((char *)&Entry, 0, sizeof (struct rtentry));

	Entry.rt_gateway.sa_family = AF_INET;
(Continue reading)

H. J. Lu | 29 Oct 2003 23:12

The Linux binutils 2.14.90.0.7 is released

This is the beta release of binutils 2.14.90.0.7 for Linux, which is
based on binutils 2003 1029 in CVS on sources.redhat.com plus various
changes. It is purely for Linux.

Please report any bugs related to binutils 2.14.90.0.7 to hjl <at> lucon.org.

If you don't use

# rpmbuild -ta binutils-xx.xx.xx.xx.xx.tar.gz

to compile the Linux binutils, please read patches/README in source
tree to apply Linux patches.

Changes from binutils 2.14.90.0.6:

1. Update from binutils 2003 1029.
2. Allow type changes for undefined symbols.
3. Fix EH frame optimization.
4. Fix the check for undefined versioned symbol with wildcard.
5. Support generating code for Itanium.
6. Detect and warn bad symbol index.
7. Update IPF assemebler DV check.

Changes from binutils 2.14.90.0.5:

1. Update from binutils 2003 0820.
2. No longer use section names for ELF section types nor flags.
3. Fix some ELF/IA64 linker bugs.
4. Fix some ELF/ppc bugs.
5. Add archive support to readelf.
(Continue reading)


Gmane