Software :: Get Received UDP Packet Length?

Feb 12, 2010

How to get the length of received UDP packet? Using wireshark I could see the correct length of datagram. How can I print this value in my simple udp server program? I am receiving binary data (Non printable ascii characters as a data) So I can not use strlen(buf) which throws incorrect length.

Code:
if (ret=recvfrom(s, buf, BUFLEN, 0, (struct sockaddr *)&si_other, &slen)!=-1){
error = ioctl(s, FIONREAD, &value);
printf(" from ioctl UDP packet length is : %d error is : %d
", value, error);
code....

View 1 Replies


ADVERTISEMENT

Programming :: Php/HttpRequest/https: A TLS Packet With Unexpected Length Was Received?

May 29, 2010

I'm working on an application that makes http requests using HttpRequest and it's been doing what I need so far without a problem. Now I need to make https requests as well and when I try to make the request, i get this error message:

Code:
Fatal error: Uncaught exception 'HttpInvalidParamException' with message 'Empty or too short HTTP message: ''' in /home/antoranz/waneesia/html/index.php:0 inner exception 'HttpRequestException' with message 'SSL connect error; gnutls_handshake() failed: A TLS packet with unexpected length was received. (https://www.paypal.com/)' in /home/antoranz/waneesia/html/index.php:104 Stack trace: #0 /home/antoranz/waneesia/html/index.php(0): HttpRequest->send() #1 {main} thrown in /home/antoranz/waneesia/html/index.php on line 0
What's going on?

The project: url

View 1 Replies View Related

Networking :: Wlan0: Option 43 Has Zero Length, Failed To Parse Packet?

Apr 14, 2010

I have a thread started on the Slackware forum about the possibility of installing Slackware on an older P4 laptop. Well, it installed fine and most things are working, but I am experiencing one problem that I need to solve before I progress to working on other things.

I hope the mods will not consider this a double thread because it is a networking issue and the other thread was started about a different subject, and I thought there might be more networking specialists there (though everyone I meet on the Slack forum is very knowledgeable, this one has not been solved.)

I am trying to connect wireless with an RT2500 chipset, the correct module loads and the machine is connected to the network, but with a "failed" IP address (169.254.167.101). This also occurs with a wired connection. The exact error is:

Code:
err, wlan0: option 43 has zero length
failed to parse packet

It times out then assigns the failed IP address and connects to the network, but of course nothing works.

I use WPA psk and I have another laptop with the same configs and works perfectly with Slackware -current, so I followed the same routine to set this one up. When that didn't work, I backed up the existed /etc/rc.d/rc.inet1 and wpa_supplicant.conf, and copied the working files to the new setup. Same result.

There does not seem to be any information about this error either here on LQ, or on the net. I have certainly never encountered it before.

Because it connects with good signal strength, and because it also occurs with wired connections, I can only assume that it is related to WPA in some way. I have not reset the router because I have a number of other machines connected. All of the other machines work, and this one connects, so it is not hardware related.

View 14 Replies View Related

Ubuntu :: Magic Packet Received / But Wake On Lan Doesn't Work

Oct 15, 2010

I am trying to remotely wake up my computer. I am using the wakeonlan tool as follows wakeonlan -i 146.x.x.x 00:0f:.I have used wireshark on the remote computer and verified it was getting the magic pack. wireshark sees the packet, and immediately the remote computer sends an ICMP dest. unreachable (port unreachable) packet back, although I assume that is normal.On the remote computer, I used ethtool so I am enable to verify that suports wake-on is set to "g" or magic packet.

I believe that wake-on-lan is enabled in the bios. I have a hp dc5000, so I turned on S5 wake on lan in the bios. However, the computer does not wake up.My assumption is that once the computer is off, the router doesn't know where to send to packet because that ip is not there anymore. Does that make any sense? What other troubleshooting steps can I take? I don't have control over the routers though.

View 2 Replies View Related

Security :: SSL Handshake - Record Packet With Illegal Version Received

Nov 10, 2010

I'm posting an E-Mail I sent to Pidgin Support, which didn't get answered. I'm doing this because I believe it is a general SSL problem. I've even tried a different chat client (Instantbird) - same error message. Since a week or so I'm not able to securely login to ICQ any longer with one of my accounts. Only if I disable "Use SLL" in the advanced settings, it works. With SSL I get the error message "Unable to connect to BOS server: SSL Handshake Failed". In the debug window the reason for the failure is "A record packet with illegal version was received". If I enable the setting "Use clientLogin", I get a different error: "Received invalid data on connection with server".

I get this error for all of my ICQ accounts if I enable this, but the other ones work just fine using only "Use SLL". I can login to the ICQ website with the "bad" account too, the settings are exactly the same for all 3 accounts. I was using Pidgin 2.7.3 when this happened first, upgraded to 2.7.5, but no change. I'm running RHEL 5.5 x86_64. I've attached the Pidgin debug messages for the "bad" case of the not working account and for the "good" case of one of the working accounts. I've tried a lot of things, like deleting the account and adding it again. I deleted the cached certificates. I changed the password on the ICQ website.

From the attachment I'm only pasting the most important part - the error message:

(20:27:14) gnutls: Starting handshake with bos.oscar.aol.com
(20:27:14) gnutls: Handshake failed. Error A record packet with illegal version was received.
(20:27:14) oscar: unable to connect to FLAP server of type 0x0002
(20:27:14) connection: Connection error on 0x9bf19f0 (reason: 0 description: Unable to connect to BOS server: SSL Handshake Failed)

I doesn't get into my head why 2 accounts work perfectly, but one doesn't. The login-server is exactly the same, so also the used certificate should be the same.

View 2 Replies View Related

Ubuntu :: Unable To Upload Anything - 6 Packets Transmitted, 6 Received, 0% Packet Loss, Time 5007ms

Feb 21, 2010

i made a video and i wanted to put it on my myspace(video upload) and it justs fade to grey and becomes unresponive. that it goes back to normal but no progress. so then i tried going to image shack and uploading a picture. can't do that either. tried mediafire, videos, vimeo, nothing.

so i tried on my desktop(desktop running 9.10 32 bit. laptop(the first one i tried) running 9.10 64 bit. it didn't work on that either. i know it's not my isp because it works on my ps3(no ubuntu). not my firewall and tried without without my router. didn't work either. i tried upgrading flash on both of them and on my desktop i can upload some pictures to imageshack now. nothing else though. i have tried using both firefox and opera.

i pinged yahoo and this is what i got:

6 packets transmitted, 6 received, 0% packet loss, time 5007ms
rtt min/avg/max/mdev = 72.732/73.437/75.024/0.761 ms

View 1 Replies View Related

Ubuntu :: Errors - 18 Packets Transmitted, 0 Received, +12 Errors 100% Packet Loss Time 17038ms

Feb 22, 2010

I',m executing ping, but it didn't work, in order to find the mistake in my network I would like to know how to see the errors:

Code:
18 packets transmitted, 0 received, +12 errors, 100% packet loss, time 17038ms, pipe 4 I want to see this +12 errors. Could I do that?

View 2 Replies View Related

CentOS 5 Server :: Centos And Xen: Lan Error - Vif0.0: Received Packet With Own Address The Source Address

Jun 18, 2010

I installed the Centos 5.5 and after the Xen. After I put a virtual machine named VM01.Initially it worked properly, I tried everything and it worked.When rebooted, I had problems with the network.I have two network cards eth0 and eth1, but eth1 does not have any ip and I use only eth0.The error that appears is:

vif0.0: received packet with own address the source address

View 3 Replies View Related

Ubuntu Networking :: Send The Keys Or Value As The Packet Data (content Of The Packet) In Ns-2 (for Wireless Environment)

Jul 12, 2010

I am the new user to ns-2. I would like to know is it possible to send the keys or some value as the packet data (content of the packet) in ns-2 (for wireless environment).

View 1 Replies View Related

CentOS 5 Server :: Authenticate/Decrypt Packet Error: Packet HMAC Authentication Failed

Sep 17, 2009

I got a problem with my CentOS server. Somebody told me OpenVPN Requires different changes inside my firewall settings. That could be the problem why openvpn wont load..I receive this error on my CentOS panel when im trying to connect into the centos openvpn (with my winxp pc):

Thu Sep 17 20:31:36 2009 TLS Error: incoming packet authentication failed from 84.xx.62.122:2622
Thu Sep 17 20:31:38 2009 Authenticate/Decrypt packet error: packet HMAC authentication failed
Thu Sep 17 20:31:38 2009 TLS Error: incoming packet authentication failed from 84.xx.62.122:2622

[code]....

View 5 Replies View Related

Red Hat / Fedora :: Nul Files Appearing With Zero Length

Apr 14, 2010

I am working on a system that uses Red Hat Client 5.3. Files keep being created all over the system. They are all named nul and are zero length. We use a common login and thy are owned by this login account. I have grep'd the entire system looking for some code that would be writing these files but nothing has come up.

View 2 Replies View Related

Programming :: How To Find Array Length In C

Jul 3, 2011

I would like to know how can I find array length in C .I have array of structure and I want to sent it to different functions and I want to have it's length (number of elements) each time I want to use it and I don't like to use any additional variable to pass the function for each of arrays that I pass to function.
How can I do that?

View 5 Replies View Related

Programming :: Calculate Length Of My Array?

Jun 30, 2010

I want to calculate length of my array, say Unix here.

Code:
[linux1@HMLINUX1 abc]$ declare -a Unix=('Debian' 'Red Hat' 'Suse' 'Fedora');
[linux1@HMLINUX1 abc]$
[linux1@HMLINUX1 abc]$ echo ${#Unix[@]}
5

This should be ideally 4, but somehow it is showing as 5. However, when I am removing the space as RedHat instead of Red Hat, it is working perfectly.

Code:
[linux1@HMLINUX1 abc]$ declare -a Unix=('Debian' 'Redhat' 'Suse' 'Fedora');
[linux1@HMLINUX1 abc]$ echo ${#names[@]}
4

View 4 Replies View Related

Slackware :: Requesting Length Of 13.1Install DVD ISO

Oct 3, 2010

I want to checksum a Slackware 13.1 64-bit DVD before installing but do not have slackware64-13.1-install-dvd.iso. What is the output of stat --format=%s slackware64-13.1-install-dvd.iso?

View 5 Replies View Related

Fedora :: Increase The Mousewheel Scroll Length?

Apr 23, 2011

Does anyone know how to increase the mousewheel scroll length? Take for example, Google Chrome, in a Windows operating system one tick in the mouse scroll wheel moves the page 10 lines, while in Linux one tick only moves the page 4-5 lines which can be quite annoying when scrolling through large webpages, does anyone know how to change the scroll length? I'm using Fedora 14 x86_64

View 1 Replies View Related

General :: Reduce Bash Script Length?

Jul 30, 2010

At last i finish my script to find the status of the URL , in this code i used all the status codes, because of this it take too much of length. with the help of wiki only i find all the status codes.code...

View 7 Replies View Related

OpenSUSE :: Alter A Mp3's Metadata For It's Time / Length?

Dec 16, 2010

I combined two mp3 files into one using VLC and the whole thing plays but it still shows as being only the length of the first song. So, the mp3 actually plays for 6:12, but it shows as being 3:37.

View 4 Replies View Related

Ubuntu :: Check For Variable Length In Script?

Feb 2, 2010

I want a line or lines to check for variable length in my script. I just want to check if a variable the user inputted is 4 characters long, and if it isn't to return a false or exit status of 0.

View 6 Replies View Related

Ubuntu Security :: Password Characters And Length

Mar 24, 2010

I need a little insight, and I�m not sure if the two can relate, but I am trying to find out the following.
When generating WEP Keys the available bits are: 64/128/152/256; however, you need 5/13/16/29 character respectfully for each key if you generate the key manually.Can this formula be applied to passwords and the length of the password? For example: if my password had 29 characters, could I say that my password is 256-bits?

View 9 Replies View Related

Ubuntu :: Gnome Panel Length Restriction?

May 6, 2010

Is it possible to prevent the panel from expanding to where the -ox buttons appear on a full sized window. I use the panel hide pref with the panel not fully extended to the width of the scree. If the panel gets too big then it drops down each time I click to close the window. I would like to limit the overall length of a panel. Is it possible?

View 3 Replies View Related

Ubuntu :: Use Full Length Of Screen For Conky?

Oct 8, 2010

I am trying to get conky to use the whole length of the screen instead of just have.This is my conky file. PLease help.

Code:

Conky 2
background yes
use_xft yes
xftfont HandelGotD:size=8

[code]...

View 1 Replies View Related

Ubuntu :: Change The Length - Elevated Privileges Are Up?

Mar 28, 2011

I get really annoyed when I am in command line or doing a big purge of software and I have to enter my root password every minute or so.

How to change the length my elevated privileges are up?

View 9 Replies View Related

Red Hat / Fedora :: Make The Average Queue Length Of HD?

May 19, 2010

how to make the average queue length of HD. and therefore that each process be using? anyone can do this by prompt?

View 9 Replies View Related

General :: Determine Mp3 Length By File Size?

Nov 16, 2010

Multiple dirs full of mp3s All strictly encoded with exactly the same parameters (CBR 128kbps, Joint-Stereo, etc) Is it possible to determine the total playing time (to within ~98% accuracy) by some formula based on the total file size? I say ~98% accurate since ID3 tags do consume a small amount of space.

View 3 Replies View Related

General :: Variable Length Console Prompt?

Jul 15, 2010

I have a question about the prompt. it is very easy to tune it for it to be colored and display path where you are etc. But my problem is that when the path is too long I would prefer the code line to be on the folowing line...

Ex
11:00 me@host a/short/path > ls -ltr ./stuff
11:00 me@host a/very/very/very/long/path
> ls -ltr ./stuff

and to be honnest as I am very new in LINUX I don't know how to do this...

View 7 Replies View Related

Hardware :: How To Check System Bit Length On Machine

Aug 23, 2010

how to check my system bit length on linux machine.?

View 1 Replies View Related

General :: Compare Columns Of Uneven Length?

Jan 20, 2011

I have a text file with 2 columns. Column A has 69,000 rows. Column B has 49,000 rows. Column A has our complete product list Column B has product list from Manufacturer 1 There are only certain/some rows which are common between 2 columns. and also, column B is not a subset of column A. Column A has extra entries and so does column B. I need to know, which rows from Column B, are common with Column A which rows from Column B are not common with Column A. Essentially I want to know from this list, how many of our products are from my manufacturer 1, how many does my manufacturer has which we dont carry.

How would I acheive this? My natural approach to solving this kind of obstacle is to reach for MS excel and use its lookup function, but its not working... Its taking forever and hanging up. since the file is so huge and probably my excel skills are really bad.

How can I do this from command line? I am looking for awk command if possible instead of sed since I am trying to pick up its syntax and usage etc. My thought process is, sort column A,B, for every row in A, lookup and output based on condition. Dont know if I am on the right track.

View 7 Replies View Related

General :: Delete Lines From File By Their's Length

Apr 27, 2010

i've got a file with sorted words - one on each line.How could it be possible to delete thouse lines that have words of length 1 or 2 (1-2 letters). I guess a good way it will be with AWK, n its fuction length(), but getting it, i dont know how to delete those very lines.

View 14 Replies View Related

General :: How To Reduce Bash Script Length

Mar 19, 2011

At last i finish my script to find the status of the URL , in this code i used all the status codes, because of this it take too much of length. with the help of wiki only i find all the status codes.Quote:and my question is do we need all the status codes necessary in this script..and is there any other way to reduce the code using any conditonal statements..code...

View 6 Replies View Related

Software :: Maximum Password Length For A .zip Or .7z Archive?

Dec 27, 2010

What would be the maximum password length for a .zip or .7z archive? Or is there a max password length?

View 7 Replies View Related







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