01-13-2009
Hi,
Thanks for the reply.
I used the below command to capture network packets.
/usr/sbin/iptrace -a -i en0 iptrace.out &
ipreport -r -s iptrace.out >/ipreport.network
and i could see the network packets captured to and fro the AIX and printer.
Actually I want to print from AIX to printer and capture the packets that has been sent from AIX and ack received from printer.
Both I am able to receive thru' the iptrace command.
Actually i want to capture it in wireshark(both to and fro packets).
Wireshark is capturing more TCP datas than iptrace. but only issue is I am getting only ack packets from printer.
Please help how to get both to and fro packets transformation from AIX.
or the iptrace command to list complete details of the TCP packets.
Thanks,
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
How do I use snoop command to capture multicast packets in the network? (1 Reply)
Discussion started by: caden312
1 Replies
2. Cybersecurity
Hi,
Can someone give me the clue on how to capture network traffic at gateway.
Thanx (2 Replies)
Discussion started by: kayode
2 Replies
3. AIX
So im fairly new to AIX and my knowledge is very, very limited but i got my hands on an RS6000 43P model and im trying to get it on the network so i can access it from work. I have pretty much tried everything i can/know how to do by reading up as much as i can but im still lost.
I have the 43P... (2 Replies)
Discussion started by: IIIII
2 Replies
4. UNIX for Dummies Questions & Answers
Hi,
My Solaris Workstation has got 4 NICS, out of which one of them(bge3) is unplugged from the rest of the external network & connected to other interface(bge1). The isolated NIC serves as a simulated Ethernet Interface for my application under development.
Now, I'd like to capture RAW... (1 Reply)
Discussion started by: smanu
1 Replies
5. UNIX for Dummies Questions & Answers
in a xen environment , i see a lot op dropped packets via netstat -i
Is this a sign of network problems, or is it normal to see this kind of numbers? i'm not sure how to interprete the data. is this normal, bad, critical. What are your stats on this?
I guess i have a xen issue of some sort,... (1 Reply)
Discussion started by: progressdll
1 Replies
6. Infrastructure Monitoring
Hi,
I want to capture snmp packets in AIX.
When i give print from AIX6.1, Printer will give its response thru' snmp.
I used iptrace command like below, but it is not capturing snmp packets other packets are captured like udp, tcp..
1. iptrace command:
/usr/sbin/iptrace -a -i en0... (1 Reply)
Discussion started by: meeraramanathan
1 Replies
7. IP Networking
Hi,
I want to capture a certain type of packets (selected according to the protocol) coming to my PC and then transmit them to another PC. I had the idea to use tcpdump to filter input packets and extract those chosen. Well my questions are:
1- after filtering input packets, those that have not... (1 Reply)
Discussion started by: ziedf
1 Replies
8. UNIX for Advanced & Expert Users
Hello folks,
Have a process which needs to lock files to prevent simultaneous access.
I could catch Ctrl + C, etc signals via the trap command.
Often sessions get hung due to network disconnect leaving the lock file in place.
Is there a way to catch network disconnects, etc.
Thanks in... (4 Replies)
Discussion started by: vibhor_agarwali
4 Replies
9. Programming
I have made an packet capture application running on intel machine, it is capturing packets with src address- 17.0.0.0 destination ip- 66.0.0.0, source port- 0, destination port- 0, and protocol- 0 what does these packets mean ?
The code written to interpreter captured bytes is given below.... (5 Replies)
Discussion started by: arunpushkar
5 Replies
10. Red Hat
I have three systems A,B,C. I want to configure A in such a way that all packets from A to C goes via B.
I tried:
1. ip route add 'ip of C' via 'ip of B'
2. route add -net 'net address' netmask gw 'ip of B'
These commands work initially when I try a ping or traceroute and expire after... (2 Replies)
Discussion started by: kanak
2 Replies
LEARN ABOUT SUSE
pcap_setdirection
PCAP_SETDIRECTION(3PCAP) PCAP_SETDIRECTION(3PCAP)
NAME
pcap_setdirection - set the direction for which packets will be captured
SYNOPSIS
#include <pcap/pcap.h>
int pcap_setdirection(pcap_t *p, pcap_direction_t d);
DESCRIPTION
pcap_setdirection() is used to specify a direction that packets will be captured. d is one of the constants PCAP_D_IN, PCAP_D_OUT or
PCAP_D_INOUT. PCAP_D_IN will only capture packets received by the device, PCAP_D_OUT will only capture packets sent by the device and
PCAP_D_INOUT will capture packets received by or sent by the device. PCAP_D_INOUT is the default setting if this function is not called.
pcap_setdirection() isn't necessarily fully supported on all platforms; some platforms might return an error for all values, and some other
platforms might not support PCAP_D_OUT.
This operation is not supported if a ``savefile'' is being read.
RETURN VALUE
pcap_setdirection() 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(3PCAP), pcap_geterr(3PCAP)
5 April 2008 PCAP_SETDIRECTION(3PCAP)