Search Results

Search: Posts Made By: semash!
Forum: Slackware 06-11-2012
8,041
Posted By semash!
Excellent! I'll give it a try and post here my...
Excellent! I'll give it a try and post here my results.
Thank you very much, Peasant. (y)
Forum: Slackware 06-08-2012
8,041
Posted By semash!
X terminal: Redirecting remote sound to my local audio device
Hello everybody,
I'm testing some aspects of X Terminal implementation and it's going great. I can use remote applications on my local slow workstation at remote's processor speed by redirecting the...
Forum: Programming 02-01-2011
22,287
Posted By semash!
Read redirected file from stdin in C (a.out < file)
Hello everybody,
Having a file with the following content:
192.168.0.254->192.168.0.1
192.168.0.2->192.168.0.34
192.168.0.56->192.168.0.77

I need to code a program in C to read it from stdin...
Forum: Programming 01-29-2011
3,421
Posted By semash!
MySQL: Create a relation between two tables.
Hello everybody,
I'm having troubles creating a relation between two tables in a MySQL database.
Having two tables, being one which contains users information (username, password, user ID, etc) and...
Forum: Slackware 01-14-2011
7,568
Posted By semash!
KDE 4.4.3 in Slackware 13.1 x86 doesn't save my settings!
Hello everybody,
I'm not new to slackware, but i'm new to KDE 4.
I've just installed Slackware 13.1 and found out that the new KDE desktop environment is excellent!, so i've customized it to fit my...
Forum: Programming 09-06-2010
23,599
Posted By semash!
Just to update, i found a easier solution to this...
Just to update, i found a easier solution to this problem.

Intead of using system() to run command-line programs, you can add a default gateway route by ioctl with SIOCADDRT and SIOCDELRT, it's...
Forum: Programming 08-25-2010
26,275
Posted By semash!
Yeah... Here's part of the function i was talking...
Yeah... Here's part of the function i was talking about, just for sharing and general knowledge...
struct nlist nl[] = {
#define X_ARPTAB 0
{ "_arptab" },
#define X_ARPTAB_SIZE 1...
Forum: Programming 08-25-2010
26,275
Posted By semash!
Hey Corona688, Again, you were right, it...
Hey Corona688,

Again, you were right, it sounds like a fair solution.

I can use sscanf() reading /proc/net/arp and get the same results as with 'arp -an'. While i was looking for a solution, i...
Forum: Programming 08-25-2010
26,275
Posted By semash!
SIOCGARP to display the entire ARP table.
Hello everybody,

I have a working code that displays an entry from a given IP address. but, how can i display the entire ARP table? like the option 'arp -a' of the standard linux program.

This...
Forum: Hardware 08-24-2010
6,775
Posted By semash!
Hey Corona688, You were right, the driver...
Hey Corona688,

You were right, the driver '8139too' was blacklisted from modprobe, i don't know the reason. I commented ('#') it and rebooted, and i got it working. with some issues, but working....
Forum: Hardware 08-24-2010
6,775
Posted By semash!
Good call, Corona688! I extracted the card from...
Good call, Corona688!
I extracted the card from the mother board and the Ethernet card chipset is a RealTek 8139A (RTL8139A), but lspci shows it as a 'Honeywell' and, as i already said, doesn't...
Forum: Hardware 08-24-2010
6,775
Posted By semash!
Slackware 13.1 can't configure two network cards
Hello everybody,

I'm having troubles with Slackware 13.1 and network cards.

I have one on-board Ethernet card (which is recognized and works okay) and a PCI Ethernet card (which is also...
Forum: Programming 08-24-2010
13,375
Posted By semash!
Hey fpmurphy, thanks for your quick reply. I made...
Hey fpmurphy, thanks for your quick reply. I made some changes in the code and got it working.

I think the errors were on mac_aton() function, the way i used the flags and in the lack of a defined...
Forum: Programming 08-23-2010
13,375
Posted By semash!
SIOCSARP: Invalid Argument.
Hello everybody,
I've been programming an alternative to linux's standard 'arp' program. I can delete arp entries (SIOCDARP), get arp entries (SIOCGARP), but i'm having troubles setting entries with...
Forum: Programming 08-17-2010
23,599
Posted By semash!
Excellent man, great explanation, i'll try...
Excellent man, great explanation, i'll try strace.
Thank you very much.
Forum: Programming 08-17-2010
23,599
Posted By semash!
Set host default gateway in C program.
Hello everybody,
I'm having troubles on setting the default gateway address (and other addresses, such as netmask, or ip) of the host running a C program. I know it has to be with ioctl, but don't...
Forum: Programming 08-04-2010
30,766
Posted By semash!
Man, you're a great programmer. Thanks!:b:
Man, you're a great programmer. Thanks!:b:
Forum: Programming 08-03-2010
30,766
Posted By semash!
Read arguments from a config file in C
Hello everybody,
I'm coding a program in C and i'm getting troubles with this.

I need to read a config file and store the arguments into individual variables, let's say the config file looks like...
Forum: Programming 05-28-2010
7,019
Posted By semash!
Thank you man, your answers are always correct...
Thank you man, your answers are always correct and successful. :b:
Forum: Programming 05-27-2010
7,019
Posted By semash!
Is that it? just standard behaviour? I thought...
Is that it? just standard behaviour? I thought there will be a logical reason for the new line at the end of the file.

And, yeah, i mean just one line..
Forum: Programming 05-27-2010
7,019
Posted By semash!
Why is required to leave an empty line at the end of a C program?
I know it looks like a stupid question, but i really wanna know the reason.

Actually, i think it's because the c compiler will detect it as the end of file "EOF" of the program, but, am i wrong?...
Forum: Linux 10-11-2009
4,407
Posted By semash!
Help Cross compiling a kernel for an HP Jornada 728
Hello,
I just bought an old Jornada 728 and, as you may know, it comes with Windows CE 3.0. I do not use Windows, so i wanted to create my own linux system for the Jornada.

I know there are...
Forum: Programming 09-26-2009
19,091
Posted By semash!
Hello everybody, Finally, i came up with how...
Hello everybody,

Finally, i came up with how to do it, it's not the way i thought it was going to be, but it works.

The solution is in SIOCxARP. My program's algorithm listens for ARP traffic,...
Forum: Programming 09-26-2009
19,091
Posted By semash!
Hello everybody, Finally, i came up with how...
Hello everybody,

Finally, i came up with how to do it, it's not the way i thought it was going to be, but it works.

The solution is in SIOCxARP. My program's algorithm listens for ARP traffic,...
Forum: Programming 09-22-2009
19,190
Posted By semash!
Hello, Thanks for your time, i've been testing...
Hello,
Thanks for your time, i've been testing your code and it has a bug, it works perfectly with any address starting with "128.x.x.x" and lower, but, when you try and address greater than 128,...
Showing results 1 to 25 of 47

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