Search Results

Search: Posts Made By: lagigliaivan
Forum: Programming 06-22-2009
9,190
Posted By lagigliaivan
Hi
I don't understand very well this peace of code you wrote:

if(pid | pid1 == 0)//process A

This works as if ( pid | (pid1 == 0) ) and I don't understand really well what is the idea, could...
Forum: Programming 06-16-2009
4,269
Posted By lagigliaivan
Hi
What OS/architecture are you using? I tried using Linux and although the code doesn't compile at first, it works fine and I did not receive a sigsev.

I remember once I had the same problem but it...
Forum: Programming 02-10-2009
2,553
Posted By lagigliaivan
Hi vishy_85
The code seems to be good, but unfortunately I don't know to much about HP-UX, but you could try running the threads one by one in order to narrow down the problem.

This code works fine in a i386...
4,543
Posted By lagigliaivan
Hi!
I think you should call to sock_recvmsg() several times in a loop.

Why do you want to do this in kernel space instead of user space??

ivan.
Forum: Programming 01-21-2009
14,655
Posted By lagigliaivan
Hi raidzero, I'm analyzing the tcpkill.c...
Hi raidzero,

I'm analyzing the tcpkill.c source code and I will try to make some changes to reset only a specific tcp connection. I will let you know if it works as soon as possible.

bye.
Forum: Programming 01-20-2009
14,655
Posted By lagigliaivan
Hi!
raidzero,

What exactly do you want to know?. tcpkill.c use libpcap to filter some packages directed to the socket that you want to close.

You have to compile tcpkill.c and run it up as a...
Forum: Programming 01-13-2009
25,466
Posted By lagigliaivan
great!
I know that you have figured out your problem, but just for fun, you could take a look to this POSIX and OS/2 are not supported in Windows XP or in Windows Server 2003...
Forum: Programming 01-13-2009
25,466
Posted By lagigliaivan
code
I think this could work. I extracted the comment from open function man page.

#include <stdio.h>
#include <sys/stat.h>
#include <fcntl.h>

int main(void)
{
int fd;

/* ...
Forum: Programming 01-13-2009
25,466
Posted By lagigliaivan
Hi
Hi,

Maybe this is that you want. I will try to do an example.
By the time, try reading this http://www.gnu.org/software/libtool/manual/libc/File-Locks.htm...
Forum: Programming 01-13-2009
5,027
Posted By lagigliaivan
Brainbench linux programming certification
Hi All,

I was thinking on take the linux programming certification given by Brainbench and I was wondering if somebody know something about it or has taken it.

I have sent them...
Forum: IP Networking 11-21-2008
4
6,644
Posted By lagigliaivan
iptables/ebtables.
Somebody know how I can use iptables and ebtables in order to change the IP address of the package according to its MAC.


thanks.
Forum: IP Networking 11-21-2008
4
6,644
Posted By lagigliaivan
Thanks!
Thanks Lazydog,

I executed the following command, but unfortunately it did not work. :-(

iptables -A -m mac --mac-source 00:80:42:1D:DA:0F -j SNAT --to-source 172.16.1.220

iptables:...
Forum: IP Networking 11-14-2008
4
6,644
Posted By lagigliaivan
L2 nat
Hi All,

Is there any possibility to change the IP address of a package according to its MAC address. It would be a sort of L2 NAT. (i.e. If the MAC address is 00:1A:A0:1E:XX:XX so the dir IP will...
Forum: IP Networking 11-14-2008
3,971
Posted By lagigliaivan
Thanks!
Thanks for the website link. Now I will try to solve my problem.

Thanks again.
Forum: IP Networking 11-13-2008
3,971
Posted By lagigliaivan
kernel module
Hi All,

I need to develop a kernel module which changes the IP address of a package according to its mac address. It would be a sort of L2 Nat.

Somebody know if I can do this using...
Forum: IP Networking 11-07-2008
0
3,398
Posted By lagigliaivan
vlans
Hi All,

I'm trying to configure a vlan interface, to do this I'm using the following command "vconfig add eth0 20". I have my interface up and running, but when I test it using "ping -I eth0.20...
Forum: IP Networking 11-06-2008
3,529
Posted By lagigliaivan
Thanks!
Thanks for your reply sysgate.

I have to deal with arp frames because I have a wired LAN configuration. I have a few devices that has the same IP address and it is impossible to be changed. All...
Forum: IP Networking 11-05-2008
3,529
Posted By lagigliaivan
Modifying ARP frames
Hi All,

Is there any way to modify or filter the ARP frames??

thanks!
Forum: IP Networking 11-05-2008
2,718
Posted By lagigliaivan
Weird configuration
Hi All,

I have a problem with a weird configuration that I need and a few possible solutions came up, but I do not know how to implement none of them.

Let me explain the situation:

I have...
Forum: Programming 09-02-2008
16,094
Posted By lagigliaivan
__throw
Hi All,

We are fixing an application, and to do this we've used GDB.
We have a coredump file, therefore we can print a backtrace and watch the variables content at the moment of the crash.
...
Forum: Programming 08-08-2008
7,378
Posted By lagigliaivan
Hi
Hi,

I'm sorry, I forgot to tell you which OS I'm using.
I'm working on Linux, its kernel version is 2.4.26.


Thanks!
Forum: Programming 08-08-2008
7,378
Posted By lagigliaivan
MIPS backtrace
Hi,

I'm working in a MIPS processor and, since the function backtrace() is not implemented for this architecture, I would like to know if there is another way to do a stack backtrace in this...
Forum: Programming 06-26-2008
6,617
Posted By lagigliaivan
Hi,
I'm sorry, I have to improve my C programming.
If there is someone who still thinking about this exercise, here is again, but now indented.

void duff(register char *to, register char *from,...
Forum: Programming 06-26-2008
6,617
Posted By lagigliaivan
do-while inside switch
Hi All,

Could anybody please explain to me, why this piece of code compiles.


void duff(register char *to, register char *from, register int count)
{
register int n=(count+7)/8;
...
Forum: Programming 05-26-2008
13,942
Posted By lagigliaivan
I am sorry jim
Since I was making a test using only a main function I couldn't realize the advantages. Now, I've made a test using several function calls and I can see the difference of using a core dump file.
...
Showing results 1 to 25 of 45

 
All times are GMT -4. The time now is 08:33 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy