Programming :: Socket Option "IPV6_ROUTER_ALERT" Is Invalid / Why Is So?

Jan 15, 2010

I want router catch the ip packet which mark router alert label, change it and send to the next hop. Not just forward it immediately.
So I set IP_ROUTER_ALERT and IPV6_ROUTER_ALERT option for ipv4 and ipv6 socket. IP_ROUTER_ALERT was just fine and I can do what I expect. However when I set on IPV6_ROUTER_ALERT, it tells me "Protocol not available" (errno = 92). And This option can be found in "$Kernel/net/ipv6/ipv6_sockglue.c"

View 2 Replies


ADVERTISEMENT

Programming :: Socket Programming - Detect Whether A Client Socket Is Closed / Active?

Mar 8, 2011

iam just trying to connect to server which accepts one client and server will read(blocking operation) infinitely, but After closing the client socket the server "read operation" is returning zero and "errno variable(in errno.h)" value is also zero. how can i detect whether a client socket is closed/active..?

client.c
Serv_Addr.sin_family = AF_INET;
Serv_Addr.sin_addr.s_addr = inet_addr("127.0.0.1");
Serv_Addr.sin_port = htons(26553);
if( 0 > connect (Serv_Fds,&Serv_Addr,sizeof(Serv_Addr)) )
{
perror("connect");
return 0;
[Code]....

View 3 Replies View Related

General :: Socket Programming - Feed Some Words One By One To The Socket

Jul 6, 2010

i'm writing a simple program of client socket program. Here below is the code sample which i'm writing...

Code:
//tcp_client.c
#include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include<string.h>
#include<stdlib.h>
[Code].....

the above code works fine.if we copmile and run ./a.exe 192.xx.xx.xxx 1111 and press enter it works fine..everytime it asks "Please enter the message: " and if give that will be displayed in server. but my problem is i dont want to print everytime "Please enter the message: " i just want to feed some words one by one to the socket.

View 4 Replies View Related

Programming :: Setsockopt : Socket Operation On Non-socket Getting Error?

Mar 30, 2009

im getting that error in my code for some reason. I compiled my code, and when i try to run this server it throws me an error on my call to setsocketopt(). The only way it can reach that part of my loop is if it succeeds when it calls sock() so I dont understand why the error says its an operation on a non-socket. Im just trying to set up a server to pass messages from a client to it a viceversa. Here is the code:

Code:
int main()
{
int socket_fd, new_socket_fd, k;
struct addrinfo hints, *server_info, *p;
struct sockaddr_storage peer_address;
code....

View 7 Replies View Related

Ubuntu :: Boot Fails From HD - Error Getting Socket / Invalid Argument

Jun 20, 2011

I have an old PC with two hard drives (40 and 60Gb) and it uses dual IGhz pIII processors. It shares screen,mouse and keyboard with another PC.Both into Netgear modem. It ran ubuntu 8.04 and XP Pro on the drives above with no problems. Then I decided to try Mint 11 (34bit CD) - result after Grub blank screen other than flashing cursor at top left.No input from keyboard.
Tried Mint KDE 10 (34bit DVD) same result.
Tried Kubuntu 10 (CD) same result.
Reinstalled Ubuntu 8.04 no problem.
Upgraded via download from 8.04 to 10LTS hoping that this would somehow prevent the problem and have screen which says:-

starting up
[000000] ACPI no DMI BIOS year,ACPI =force is required to enable acpi
mount: mounting none on /dev failed: No such device
udevd[825]: error getting socket: Invalid argument
error initialising netlink socket
udevd[825] error initialising netlink socket
libudev: udev_monitor_new_from_netlink:error getting socket:Invalid argument
Segmentation fault
Gave up waiting for root device.Common problems:
Boot args (cat/proc/cmmdline)
Check root delay (Did the system wait long enough)
Check root (did the sytem wait for the right device)
Missing modules (cat/proc/modules; 1s /dev)
ALERT! dev/disc/by-uuid/"long number here" does not exist.Dropping to a shell.

Then it goes into Busybox and ends with "initramfs". I have tried altering the boot device in BIOS from HDD0 through 3 with the same result other than more bad language!

View 9 Replies View Related

General :: Making Packet Sniffer Using Raw Socket - Invalid Argument

Nov 16, 2010

I am actually making a packet sniffer using raw socket. Its just that when I use the command '
if((ioctl(rawsock, SIOCGIFINDEX, &ifr)) == -1)
to get the interface index...
Its gives me an error saying :invalid argument?

View 2 Replies View Related

Networking :: Enable The Option Of Keep-alives On A TCP Socket?

Apr 18, 2010

Have a question regarding the implementation of TCP keep alives.

If I enable the option of keep-alives on a TCP socket, is there any way that my application can get the response to the keep-alive back from the kernel. Basically, I have a 'select' blocking on a socket on which I have enabled keep-alives. I need to know if select would unblock if a response to a keep-alive sent by the kernel is received on the socket.

View 3 Replies View Related

Debian :: Mount Option Is Invalid

Jul 11, 2010

i just installed Debian 5.0.5 ! and i used guided partition (option one) while installing BUT immediately i cannot access my Windows drives C & D. if i click it , it says "Invalid mount option when attempting to mount the volume C " how to fix it?

View 9 Replies View Related

Server :: Option -m: Invalid Argument Near Character 14

Nov 26, 2010

Option -m: Invalid argument near character 14

View 1 Replies View Related

Debian :: Invalid Option When Attempting To Mount Volume

Feb 19, 2016

i can not enter to my partition when i try that thing , i got this message:

1- Invalid mount option when attempting to mount the volume.

2 - You are not privileged to mount this volume.

first message it is about entering (( Windows OS partition )) (( NTFS ))

second message it is about entering other partiton with (( FAT32 ))

View 3 Replies View Related

Red Hat / Fedora :: Compilation Error In Module With ARM9 For IO - Invalid Option `64'

Dec 13, 2010

We are using LPC3250 ARM9 and LTIB for building the Linux 2.6.27.8 We have written some code to access GPIO and was working earlier with opensuse 9.0 We now have fedora 11 32 bit 2.6.30.10-105.2.23.fc11.i686.PAE When we make the program we get following errors we are using GCC3.4.5

#make -C /lib/modules/`uname -r`/build M=`pwd` modules
make -C /home/shekhar/lpc3250/ltib/rpm/BUILD/linux-2.6.27.8 M=`pwd` modules
make[1]: Entering directory
`/home/shekhar/lpc3250/ltib/rpm/BUILD/linux-2.6.27.8'
CC [M] /home/shekhar/samsung_lcd/gpio/char.o
cc1: error: invalid option `64'

[code]....

View 1 Replies View Related

General :: Vgdisplay -v -D Results In Invalid Option -D In Rhel 5.5 - Tikanga

Jul 15, 2010

Any idea when the -D option was withdrawn ? I could not find much information on this . Also, what exactly is the difference between vgdisplay -v -D and just vgdisplay -v .

View 6 Replies View Related

Fedora Security :: Invalid XINETD_CONF_PATH Configuration Option - Non-existent Pathname

Mar 10, 2010

i install from

yum install rkhunter

rkhunter 1.3.6-4.fc12

Invalid XINETD_CONF_PATH configuration option - non-existent pathname

View 2 Replies View Related

OpenSUSE Network :: Invalid Command Line Option: Console Is Not Supported (1001) (403)?

Apr 7, 2010

I'm using linux suse 9.3. Recently i try to run execution files but it shows an error try running with the option "-console" or "-silent" When I tried with the -console option, I got the error - The wizard cannot continue because of the following error: Invalid command line option: console is not supported (1001) (403)

[Code]...

View 1 Replies View Related

Programming :: Timer In Socket Programming - Wait For X Sec After Read() And Then Disconnect The Client Connection

Mar 8, 2011

I have a server listening on incoming client connections. Once the client establishes SSL connection with the server, the server waits on read() from the client. Only Client can disconnect the connection. I want to have a timer in the server program to wait for x secs after read() and then disconnect the Client connection.

View 3 Replies View Related

Programming :: Socket And Timer Programming - Server Doesn't Execute Any Msg Which Client Sent

May 16, 2011

i have a server program which accept multiple client connection and am using polling. like every 2 secs it will look to client whether any data is received after it binded. i have used setitimer but there is runtime error i got.. the server accept all client connection but doesn't execute any msg which client sent.

#include<stdio.h>
#include<stdlib.h>
#include<sys/socket.h>
#include<sys/types.h>
#include<netdb.h>
#include<unistd.h>
#include<pthread.h>
#include<string.h>
[Code]....

View 1 Replies View Related

Programming :: Socket Programming While Displaying Received Message In File

May 11, 2011

i have problem in socket programming, while displaying received message in file,i got a problem... i cant able to write it in the file.... this is the code....

Code:
/* tcpserver.c */
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <stdio.h>
[Code]....

now my problem is run time error i can able to create file but i cant able to write file....log.txt contain nothing.... as here i have give sample code... dont say not initialising function and all.... i have initialised , please only see func1() - my problem is only not able to write msg which i got received from the client..

View 2 Replies View Related

Programming :: Use Socket Programming In Order To Implement Chatting Feature?

Aug 25, 2010

how to use socket programming in order to implement chatting feature

View 5 Replies View Related

Fedora Security :: Invalid XINETD_CONF_PATH Configuration Option - Non-existent Pathname Specified: /etc/xinetd.conf?

Mar 24, 2010

I'm just trying to figure out what is going on with FC12
Here is the error:

[root@localhost bigmac]# rkhunter --check
Invalid XINETD_CONF_PATH configuration option - non-existent pathname specified: /etc/xinetd.conf

View 1 Replies View Related

Programming :: Socket Programming: Insertion Of 0x00 Into The Stream?

Dec 5, 2010

When sending data over the socket, the sending socket includes 0x00 after each sent byte. I wonder how this can be avoided -- I just want to transfer the data in the tx_buffer as it is.

# ./serv &
[1] 6895
# ./EUG 127.0.0.1
EUG: Data to be transmitted: 0x35 0x32 0x30 0xff 0x03 0x31
EUG: Data - #Bytes transmitted: 6
./serv: Here is the message: '5'

[Code]...

View 3 Replies View Related

Programming :: Socket Programming Using Php - Swap A Client Ip And Port?

Mar 28, 2011

Is it possible to swap a client ip and port ? This is what I am trying to do. Let say you have Comp1 and Comp2 And you have Server between them. My goal is to get Comp1 and Comp2 know each others IP So Comp1 connects to server And server stores comp1's IP In a text file or other place And Comp2 connect to server And server also stores his info And then both comp1 and comp2 dowload the tex file And use the info on it.

View 9 Replies View Related

Ubuntu Installation :: Lost Windows 7 Boot Option In Grub - Error 12: Invalid Device Request

Jan 12, 2011

I had a working dual boot Ubuntu 10 and Windows 7. Anyways long story short, I got it working again but have lost the boot option for windows 7. If i run fdisk -l, I get the following.

root@support-Latitude-E6400:/home/support# fdisk -l
Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders

[code]....

I installed gparted and can see that windows 7 is installed in dev/sda6. In another forum, i read that someone had to edit their menu.lst so i did with the following.

title=Windows 7
rootnoverify (hd0,6)
makeactive
chainloader +1

When i try to boot from windows 7, i get the following error. Error 12: invalid device request. How can i get my laptop to boot from windows again?

View 9 Replies View Related

Programming :: Build Ip Packet With C,socket Programming?

Jan 30, 2011

How can we build a packet using C?we have a structure called sockaddr_in which is use to for IPv4,so that we can define address,port and etc in this way:

Code:
struct sockaddr_in sock;
sock.sin_family=AF_INET;

[code]...

View 5 Replies View Related

Programming :: Raw Socket Programming ( Head Is Going To Explode )?

Nov 11, 2010

This is my main question:Quote: In raw socket sniffing: how do I copy data from a structure into a char[] or pointer? My problem: I started doing some raw socket programming in OpenWRT (I'm a newbie) for research. It's been a long time since the last time I programmed in C, so here's my newbie question/problem.

I'm receiving packets and using an .h file with the structures to get the information of each 802.11 packet in monitor mode (attached to this post).My (simple) goal is to get the Tx MAC Address. No luck. This is my "read the prism header" function:

Code:
ParsePrismHeader(unsigned char *packet,int len)
{
wlan_header *wlan;ieee_802_11_header *i802;u_int16_t eth_type;
unsigned char *mac;unsigned char *mac2;
wlan = (wlan_header *)packet;
i802 = (ieee_802_11_header *)(packet + wlan->msglen);

[Code]...

View 3 Replies View Related

Programming :: Send File Through Raw Socket Using C Programming

Jul 23, 2010

I am currently doing a research on video transmission over wireless LAN. I tend to transmit my offline file (xx.svc) from server to client.It may sound stupid (since I have a very little knowledge about c programming and raw socket), but my biggest challenges is that when I want to write the file to the buffer, how actually to define/include the file at the programming coding? where I need to locate the file? Is it at the same folder with my c programming, or somewhere in the linuxinclude folder?

Can anyone just give a simple example on how to include a file and write it into a buffer before send it through raw socket.

View 14 Replies View Related

Programming :: Socket Programming - Connect To An IRC Server In A C

Mar 16, 2010

I am looking to be able to connect to an IRC server in a C program. I have followed some instructions from an old book I have however it doesn't seem to be working. I've tried connecting to localhost on my ssh port and it still doesn't want to work. This is what I have so far as a piece of skeleton test code:

Code:
#include<sys/types.h>
#include<stdio.h>
#include<stdlib.h>
#include<sys/socket.h>
#include<unistd.h>
#include<netinet/in.h>
#include<arpa/inet.h>
[Code]....

View 1 Replies View Related

Programming :: Socket Programming In Module Perl

Jul 21, 2010

Where is the perl module for programming with sockets?

View 4 Replies View Related

Programming :: Socket Programming Select Interface

Jan 15, 2010

I have currently had the need to go back to basic socket programming, and implemented a simple udp packet sender. But I realized I needed to be able to select which network interface to send the packets from.

The reason is so that one of the interfaces has vlan tagging, and I need my UDP packets to be accordingly vlan tagged. For example, one of the interfaces is eth1.200.

View 2 Replies View Related

Programming :: Socket Programming Send File

Jun 22, 2009

this is my client and server. I can receive text file. but I can't send other type of file like PDF,Docx,Odt

View 11 Replies View Related

Programming :: Send A UDP Msg Across A Socket?

Jan 24, 2011

Has anyone had an issue with gdb not being able to send a UDP msg across a socket?

I have ComponentA sending a msg to ComponentB utilizing gdb. ComponentB gets the msg. ComponentB sends a msg to ComponentC. ComponentC does stuff to the msg and sends a msg back to ComponentB using gdb.
ComponentB never seems to receive the 2nd message.

If I don't use gdb the messages Tx and Rx without an issue.

I'm flying blind without gdb to figure out a different bug.

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved