08-04-2006
i dont think i can understand those sourcecode?
i dont htink i can understand those sourcecode!i ma just a newbie.
all i can say if someone could please tell me the name of the function(s) that builds that kind of packets.a link to some source/site (or better if function names etc.) cud help me a lot!
thank you
ambar
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi.
how to search a range of IP:s for their registed IP names?
Like nslookup or host for all IPs 130.xxx.xxx.1 to 130.xxx.xxx.254
//nicke (2 Replies)
Discussion started by: nicke30
2 Replies
2. Linux
Hi,
Recently I install a package and try to do a make and make install.
However, in the make it gives me below error:-
make:Nothing to be done for 'install-exec-am'
make:Nothing to be done for 'install-data-am'
Can anyone please explain to me what does this mean? I have been trying... (1 Reply)
Discussion started by: ahjiefreak
1 Replies
3. Solaris
I attached a README file that I will refer to.
I successfully completed everything in the README file until step 4.
# pwd
/gani/gani-2.4.4
# ls
COPYING Makefile.macros gem.c
Makefile Makefile.sparc_gcc gem.h
Makefile.amd64_gcc ... (1 Reply)
Discussion started by: Bradj47
1 Replies
4. UNIX for Dummies Questions & Answers
Hi,
While installation of apache on linux, we perform the below tasks.
1) Untar
2) configure
3) make
4) make install.
I wanted to understand the difference and working of configure/make/make install.
Can any one help me understanding this?
Thanks in advance. (1 Reply)
Discussion started by: praveen_b744
1 Replies
5. Cybersecurity
ipables - stealth port 80
This is how I did set up my iptables. It's basic, easy and simple, but it suits my needs.
iptables -A INPUT -i lo -j ACCEPT
iptables -A INPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
iptables -A INPUT -p tcp --dport 80 -j ACCEPT
... (6 Replies)
Discussion started by: wiluni
6 Replies
6. Programming
I have been trying to split up my src directory to clear out files that are not re-compiled very often. Now I have the following setup in my trunk,
trunk/bld
trunk/src/
trunk/src/src_server
trunk/makefile.linux
In the make file, I have compile rules
SOURCELOC = src
# compile src c++... (4 Replies)
Discussion started by: LMHmedchem
4 Replies
7. UNIX for Dummies Questions & Answers
i want to scan all open and closed ports on a server. how can i do this.
i intend on using nmap, but if there are better ways to do it, please let me know.
i understand there are a total of 6335 allowable ports on a server.
so out of that 6335, i want to know which is open or closed. id... (1 Reply)
Discussion started by: SkySmart
1 Replies
8. Shell Programming and Scripting
Hi
What I'm trying to do(manually) is logging into the server
and running the below mentioned commands
ls /sys/class/scsi_device/ | while read i; do echo "- - -" > /sys/class/scsi_device/$i/device/rescan;done
lsblk
echo -e "o\nn\np\n1\n\n\nw" | fdisk /dev/sdd
partx -a /dev/sdd1... (7 Replies)
Discussion started by: James0806
7 Replies
LEARN ABOUT FREEBSD
pcap_inject
PCAP_INJECT(3) Library Functions Manual PCAP_INJECT(3)
NAME
pcap_inject, pcap_sendpacket - transmit a packet
SYNOPSIS
#include <pcap/pcap.h>
int pcap_inject(pcap_t *p, const void *buf, size_t size);
int pcap_sendpacket(pcap_t *p, const u_char *buf, int size);
DESCRIPTION
pcap_inject() sends a raw packet through the network interface; buf points to the data of the packet, including the link-layer header, and
size is the number of bytes in the packet.
Note that, even if you successfully open the network interface, you might not have permission to send packets on it, or it might not sup-
port sending packets; as pcap_open_live() doesn't have a flag to indicate whether to open for capturing, sending, or capturing and sending,
you cannot request an open that supports sending and be notified at open time whether sending will be possible. Note also that some
devices might not support sending packets.
Note that, on some platforms, the link-layer header of the packet that's sent might not be the same as the link-layer header of the packet
supplied to pcap_inject(), as the source link-layer address, if the header contains such an address, might be changed to be the address
assigned to the interface on which the packet it sent, if the platform doesn't support sending completely raw and unchanged packets. Even
worse, some drivers on some platforms might change the link-layer type field to whatever value libpcap used when attaching to the device,
even on platforms that do nominally support sending completely raw and unchanged packets.
pcap_sendpacket() is like pcap_inject(), but it returns 0 on success, rather than returning the number of bytes written. (pcap_inject()
comes from OpenBSD; pcap_sendpacket() comes from WinPcap. Both are provided for compatibility.)
RETURN VALUE
pcap_inject() returns the number of bytes written on success and -1 on failure.
pcap_sendpacket() returns 0 on success and -1 on failure.
If -1 is returned, pcap_geterr() or pcap_perror() may be called with p as an argument to fetch or display the error text.
SEE ALSO
pcap(3), pcap_geterr(3)
5 April 2008 PCAP_INJECT(3)