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
3 answers

Method for making a variable size struct

I need to craft a packet that has a header, a trailer, and a variable length payload field. So far I have been using a vector for the payload so my struct is set up like this: struct a_struct{ hdr a_hdr; vector a_vector; tr…
devin
  • 6,407
  • 14
  • 48
  • 53
-1
votes
1 answer

replace packets of a connection

How to replace a string in packets of a connection? I use Delphi.
Leo
-1
votes
1 answer

how to debug npm packet written by c++

i wrote a node.js packet.When node load it,how to use gdb debug it. i usually use netbeans to debug C++. netbeans support c++ and node.js.But do not know how to debug such node.js packets written by C++.
freyone
  • 349
  • 1
  • 8
-1
votes
2 answers

Creating and sending raw data packets in C/C++

I know how my packet looks like. It has 6 header fields (1 byte each, each header has 8 fields) and then it has the payload (data). I would like to build a raw packet in C or C++ (it should look the same I think). Here's what I think I should do: …
mirx
  • 606
  • 1
  • 9
  • 21
-1
votes
2 answers

C# count packets based on source

I have a C# server application, which provides services based on packets. For example: The client connects, sends a packet named "do X action", and the server elaborates such packet. The problem is, people can use WPE or packet managers to flood…
Kasai
  • 1
  • 2
-1
votes
1 answer

Traceroute on Linux doesn't work properly

I am trying to find out how many hops are required to reach google.com using traceroute. Traceroute's output is always the same. My command: traceroute google.com Output: traceroute to google.com (194.249.4.237), 30 hops max, 60 byte packets 1…
Luki
  • 409
  • 11
  • 25
-1
votes
2 answers

Is it possible to drop down packets

I am trying to write some sort of very basic packet filtering in Linux (Ubuntu) user space. Is it possible to drop down packets in user space via c program using raw socket (AF_PACKET), without any kernel intervention (such as writing kernel…
Tali
  • 31
  • 1
  • 7
-1
votes
1 answer

Tracing the packets through wireshark

I am trying to capture the packets moving from my system when i searched URL www.google.com in the browser. This is the flow I am seeing in wireshark. DNS request was made TCP three-way handshake is done TLSV1.2 handshake has started. In between…
-1
votes
1 answer

How to Teleport a fake Entity

I'm trying to create a plugin which send a packet that contain a fake entity. Additionally I want the fake entity to be constantly teleported behind the Player's looking position. Troubles: I've got no idea how to teleport the entity behind the…
Apply55gx
  • 1
  • 6
-1
votes
1 answer

UDP small-packet (inside MTU) slack bytes during transmission?

Background: Coding multiplayer for a simulator (Windows, .net), using peer-to-peer UDP transmission. This Q is not about advantages of UDP vs. TCP nor about packet headers. A related discussion to this Q is here. Consider: I send a UDP packet with…
Stormwind
  • 814
  • 5
  • 9
-1
votes
1 answer

Using pcap to parse through a trace file?

I'm currently learning about TCP and packets. I'm working in the C programming language, and I understand how the pcap library can be used to sniff traffic on my computer. But can pcap be used to parse and read through a trace file as well? I need…
Vimzy
  • 1,871
  • 8
  • 30
  • 56
-1
votes
1 answer

Java UDP Client Not Receiving Packets

I've made a java application which uses UDP and I can't seem to receive packets outside LAN when hosting on my computer. I tried putting my application on a Hosted Server and it seemed to work (receives packet). What is causing this to happen? I…
OrangeD
  • 1
  • 4
-1
votes
1 answer

LINUX tcpdump - About IPS and Ports when UDP packet monitoring

I have an online game server running on a vps with linux centos and it keeps dropping players to 0 from time to time, i have discarded problems with the application itself because it does not crash or anything, the players just get disconnected. I…
xlee
  • 11
  • 5
-1
votes
1 answer

TCP RST on TELNET - Packet builder

I'm having some troubles building my TCP RST packet. I've a LAN with 3 pc's connected, the host, victim and the attacker. Im trying to break up the connection that exists between my Host and my Victim over a TELNET connection, using my Attacker to…
falkon21
  • 74
  • 2
  • 3
  • 15
-1
votes
1 answer

Minecraft Protocol Player Movement mcprotocollib

i am using Mcprotocollib ( https://github.com/Steveice10/MCProtocolLib ) to make a minecraft character move on the x axis 10 steps but all it does is stand still. heres what i have https://gist.github.com/CivilizedGravy/32ebb0d616beed1d7ce3 it may…
Ryan Maddox
  • 312
  • 1
  • 5
  • 15
1 2 3
24
25