Questions tagged [packets]

Packets refer to network packets. A network packet is a formatted unit of data carried by a packet-switched network.

A network packet is a formatted unit of data carried by a packet-switched network.

A packet consists of control information and user data, which is also known as the payload. Control information provides data for delivering the payload, for example: source and destination network addresses, error detection codes, and sequencing information. Typically, control information is found in packet headers and trailers.

Use this tag for programming questions related to packet creation, packets contents analysis, packet sending and receiving, or other tasks that can be done with network packets.

Source: Wikipedia

372 questions
0
votes
0 answers

Sending packets to lighttpd server

I have installed the lighttpd server on to my computer. I am current writing C code on my computer where I am sending packets to the lighttpd server. How do I establish that connection with the server in the code I am writing?
juicymango
  • 201
  • 1
  • 4
  • 14
0
votes
4 answers

C Does strcpy needs specific buffer size or will still work?

I decompiled a application and I don't know the real array size so I made it pretty big but I wonder do I need to make exactly what I know it's going to be before the strcpy is used or must I consider the size of the strcpy as well? signed int…
user3435580
  • 566
  • 1
  • 4
  • 15
0
votes
1 answer

Regarding DDoS Attacks and Amplification

As you probably heard, many recent DDoS attacks use different methods of amplifications to amplify the power of the attack. For example, DNS amplification is built on the idea that DNS servers can produce a huge output packet for a very small input…
Travier
  • 205
  • 2
  • 9
0
votes
1 answer

How to stop a timer thread

This is my code in which I am using a thread from scapy.all import * from random import randint import threading # Generate packet pkts = IP(src="10.0.0.1",dst="10.0.0.2")/TCP()/Raw(RandString(size=120)) #print pkts pkts[TCP].flags = "UFP" pktList…
M. Haris Azfar
  • 598
  • 6
  • 16
0
votes
0 answers

I'm trying to compare the exact differences between ftp two modes using the packets captured using wireshark

I've captured packets in (ftp two modes ) the active and passive mode using Wireshark Now I'm trying to compare and state the exact differences between those two modes using these packets... What points should i be looking in particular ?…
Avenger
  • 53
  • 1
  • 6
0
votes
1 answer

java Reading unknown formats from DataInputStream

I am developing an client server application that will be communicating using UDP and packets. I will be encoding a decoding data from these packets using DataOutputStream and DataInputStream. The way i would like to store my data is inside a custom…
Lex Webb
  • 2,772
  • 2
  • 21
  • 36
0
votes
1 answer

Sending packet or Stream of bytes directly to USB HID Device

Is it possible to send packet information directly to a HId Device connected to my PC from my VB.Net application?
user2224583
  • 69
  • 1
  • 16
0
votes
1 answer

Wireshark only capturing my packets, not packets on the network?

I just downloaded Wireshark on Windows 8.1, and when I try to capture packet it works just fine, just only for the current machine. I've "promiscuous mode" enabled, but nothing seems to happen? During the installation I installed WinPcap, and set it…
Recusiwe
  • 1,594
  • 4
  • 31
  • 54
0
votes
3 answers

Creating a network packet without using Socket class

I am trying to encode/decode a network packet combining the sender IP address, destination IP address, sender port, destination port and payload data all together. I've been reading the different ways to do this and everywhere suggests using the…
0
votes
2 answers

Creating and sending raw IP packets in FreeBSD - sendto() error Invalid Argument

My goal is to create an IP Packet with just headers and no payload. I am using http://www.enderunix.org/docs/en/rawipspoof/ as a guide. The current issue is that I cannot appease sendto() and I'm not sure how to get more verbose feedback on which…
inetplumber
  • 173
  • 7
0
votes
1 answer

Blocking packets in detoured WSASend

So I have WSASend detoured, and of course can call it to have everything work normally, but some packets (after I analyze them) I want to prevent from being sent, so I can't call the original function. The calling code seems to know something's gone…
LemoniscooL
  • 95
  • 1
  • 6
0
votes
2 answers

Is it possible to count number of ICMP packets sent/received per interface in Linux?

Is it possible to check statistics in Linux per interface for ICMP packets in particular? ifconfig command it provides statistics per interface for received and sent packets: -> /sbin/ifconfig eth1 eth1 Link encap:Ethernet HWaddr…
Borja Tarraso
  • 863
  • 2
  • 12
  • 20
0
votes
1 answer

Capture Mobile Data Packets

I would like to capture packets of the internet traffic of my mobile. I would like to ask that if I install wire shark on my desktop machine, and then make my desktop a wifi hot spot, connect my mobile phone with this desktop powered wifi then Would…
Zohaib
  • 7,026
  • 3
  • 26
  • 35
0
votes
1 answer

Small file / Vs Big File Transfer Speeds

Can anyone explain to me why I am able to achieve a higher transfer speed over my network with a 1158KB file compared to a 256KB file? Basically i'm looking into packet performance and the speeds achieved with different file sizes. If I send the…
Reidacus
  • 103
  • 2
  • 13
0
votes
1 answer

udp client packet loss as udp server not waiting

Because of my specifications, I have to use UDP packets extensively. But Do I need to program in such away that I have to listen UDP server always to minimize the packet loss ? If UDP server is doing some other x operations ,Is there any chance that…