shmily | 1 Aug 11:15 2006
Picon

Re: unknown file type of .so.0.1 in Solaris

Thank you for your reply. I omitted one of them and used gcc but the error is still the same
make -C src/cfgparser make[1]: Entering directory '/olsrd-0.4.10/src/cfgparser' gcc -Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -Wsign-compare -O2 -g -MD -Isrc -I../../src -D__Solaris__ -DMAKELIB -c -o olsrd_conf.o olsrd_conf.c gcc -Wl,-export-dynamic -shared -Wl,-soname,olsrd_cfgparser.so.0.1 -o olsrd_conf.o oparse.o oscan.o cfgfile_gen.o ld: warning: option -o appears more than once, first setting taken ld: fatal: file olsrd_cfgparser.so.0.1: open failed: No such file or directory ld: fatal: File processing errors. No output written to olsrd_conf.o collect2: ld returned 1 exit status make[1]: *** [olsrd_cfgparser.so.0.1] Error 1 make[1]: Leaving directory '/olsrd-0.4.10/src/cfgparser' make: *** [cfgparser] Error 2  
 
 


Bernd Petrovitsch <bernd <at> firmix.at> wrote:
On Mon, 2006-07-31 at 02:28 -0700, shmily wrote:
[...]
> I try to build a Solaris version for olsr daemon. However, in cfgparser directory, I can not build the target.
> I always have this error:
> ================================
> fanny ~/olsrd-0.4.10 $ make
> make -C src/cfgparser
> make[1]: Entering directory `/olsrd-0.4.10/src/cfgparser'
> cc -Wl,-export-dynamic -shared -Wl,-soname,olsrd_cfgparser.so.0.1 -o olsrd_cfgparser.so.0.1 olsrd_conf.o oparse.o oscan.o cfgfile_gen.o
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^
> ld: warning: option -o appears more than once, first setting taken
> ld: fatal: file olsrd_cfgparser. so.0.1: unknown file type
> ld: fatal: File processing errors. No output written to olsrd_cfgparser.so.0.1
> collect2: ld returned 1 exit status
> make[1]: *** [olsrd_cfgparser.so.0.1] Error 1
> ================================
> Do you have any idea?

My experiences with Solaris is years old (2.5 was current at that time)
but above underlined options look like they specify more or less the
same. So get rid of one of them.

Bernd
--
Firmix Software GmbH http://www.firmix.at/
mobil: +43 664 4416156 fax: +43 1 7890849-55
Embedded Linux Development and Services


_______________________________________________
olsr-dev mailing list
olsr-dev <at> olsr.org
https://www.olsr.org/mailman/listinfo/olsr-dev

Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1¢/min.
_______________________________________________
olsr-dev mailing list
olsr-dev <at> olsr.org
https://www.olsr.org/mailman/listinfo/olsr-dev
Holger Steudtner | 4 Aug 11:20 2006
Picon

Re: Implementing an attack into olsrd

Hello,

I implemented an blackhole attack direct into the code. I choosed that 
way, because I want to switch between olsrd with and without attack.

It seems to work fine on my testmachine with one interface (eth0), but I 
get nothing neither on my laptop with 2 interfaces (eth0 (wired) and 
eth1 (wireless) ) nor on the small PDAs with interface wlan0.

I did set the right interfaces in olsrd.conf.

My implementation is based on manipulating the message building as 
Andreas said. This is done in "build_msg.c" in the functions 
"serialize_hello4" and  "serialize_hello6" and in "packet.c"

....

Oh I know whats the difference. on my laptop I use LQ_HELLOs.
But isn't it possible to implement the attack so, that no matter what 
quality I use to route the packets, it works. Wich function does the 
real send-job?

Thank you for your help,
Holer

Andreas Tønnesen schrieb:
> This is rather trivial to implement and can be done as a plugin.
> All you need is a alternative HELLO generation function that announces all
> nodes heard of as one-hop neighbors.
> 
> 
> - Andreas
> 
> 
> 
>>Hello,
>>
>>I wanna implement a blackhole/wormhole into olsrd for my diploma thesis.
>>
>>A blackhole/wormhole tampers the HELLO-messages he sends out, to tell
>>all other nodes that it has the best routes to all other nodes. That
>>means I have to change the code for the HELLO-message generation.
>>
>>I wonder if it is possible to do that with a plugin or do I have to
>>change the olsrd code. I also want to have the possibility to switch
>>between evil and good (with or without blackhole/wormhole) within one
>>node.
>>
>>Regards,
>>Holger
>>
>>_______________________________________________
>>olsr-dev mailing list
>>olsr-dev <at> olsr.org
>>https://www.olsr.org/mailman/listinfo/olsr-dev
>>
> 
> 
> 
> 
> _______________________________________________
> olsr-dev mailing list
> olsr-dev <at> olsr.org
> https://www.olsr.org/mailman/listinfo/olsr-dev
Holger Steudtner | 24 Aug 21:37 2006
Picon

calling iptables within C code


Hello,

I need to set the iptables Rule

"iptables -A INPUT -i eth2 -p udp --dport ! 698 -j DROP"

within olsrd to drop data packets not belonging to OLSR.

All I could find for now are some confusing things with modprobs and
iptc_handle_t stuff.

Is it possible to just call the iptables with the options in C code?

Does anyone have an idea?

With best regards,
Holger

Bernd Petrovitsch | 24 Aug 21:51 2006
Picon

Re: calling iptables within C code

On Thu, 2006-08-24 at 21:37 +0200, Holger Steudtner wrote:
[...]
> Is it possible to just call the iptables with the options in C code?
> 
> Does anyone have an idea?

Use system(3) (if you hardcode the line).

	Bernd
--

-- 
Firmix Software GmbH                   http://www.firmix.at/
mobil: +43 664 4416156                 fax: +43 1 7890849-55
          Embedded Linux Development and Services
Andreas Tønnesen | 24 Aug 22:03 2006

Re: calling iptables within C code


You could execute it from olsrd, but IMO this belongs in a script 
wrapping olsrd.

- Andreas

Holger Steudtner wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hello,
>
> I need to set the iptables Rule
>
> "iptables -A INPUT -i eth2 -p udp --dport ! 698 -j DROP"
>
> within olsrd to drop data packets not belonging to OLSR.
>
> All I could find for now are some confusing things with modprobs and
> iptc_handle_t stuff.
>
> Is it possible to just call the iptables with the options in C code?
>
> Does anyone have an idea?
>
> With best regards,
> Holger
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.5 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFE7f/3EyoHUdZsc54RAsDEAJwPiQuWSToZjXqlz+riU7H1xq327wCfVIjH
> gigZTPUCTAGk3iKjFs9jdVQ=
> =hUu8
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> olsr-dev mailing list
> olsr-dev <at> olsr.org
> https://www.olsr.org/mailman/listinfo/olsr-dev
>   

Gmane