01-10-2002
For what its worth.... the linux kernal has configuration flags that allow the source address of the outgoing packet to be specified. It is a well known problem that most flavors of UNIX force the IP address of the source address to be that of the sending interface. I'm not sure about other UNIX variants, but linux has a specific kernal-build flag to 'address' this problem.
7 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I am a new Unix user looking for ways, other than time, to become an effective unix administrator. All sugestions welcome.
Thanks (10 Replies)
Discussion started by: dtooth71
10 Replies
2. UNIX for Dummies Questions & Answers
Hai, friends.
In one exam which i have to attend in the month of january, they asked "knowledge of c and unix are required" .
I am beginner to unix, even i dont know from where to start .
Please suggest me what to do , to get through the exam and interview.
I have already downloaded... (2 Replies)
Discussion started by: nani_ynm
2 Replies
3. AIX
Dear All
Kindly provide me with a difference between hdiskpower and hdisk
regards (2 Replies)
Discussion started by: magasem
2 Replies
4. Shell Programming and Scripting
Can somebody explain me the following part within a awk command:
awk '{for(i=1;i<=NF;i++) if ($i=="mm")c++}
Can somebody please explain me the part (i=1;i<=NF;i++) ????:D:D:D:D (1 Reply)
Discussion started by: RubinPat
1 Replies
5. Linux
Blitz PHP
I am having trouble installing Blitz PHP blitz-0.6.10.tar.gz
Here is what i did:
cd /tmp
wget blitz-0.6.10.tar.gz
tar zxfv blitz-0.6.10.tar.gz
cd blitz-0.6.10
And then I tried
./configure
Output: -bash: No such file in directory
make
Output: No targets in the... (1 Reply)
Discussion started by: kendel
1 Replies
6. UNIX for Dummies Questions & Answers
As per Hardening guide for the server.
ICMP Broadcast Response: The kernel parameter icmp_echo_ignore_broadcasts must match to 1
However when i check the value of icmp_echo_ignore_broadcasts it thrown an error as unkonwn key.
# sysctl icmp_echo_ignore_broadcasts
error:... (2 Replies)
Discussion started by: pinga123
2 Replies
7. Shell Programming and Scripting
Hi Friends,
I know very well the basic commands of Unix but i want to concentrate on unix shell programming can you please how to learn and suggest me how to become comfortable level.
Thanks in advance (1 Reply)
Discussion started by: victory
1 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)