I tried performing TCP traffic and capture that packets using RAW socket in other end .
I set window size to 50000 bytes. while sending the TCP traffic with max rate. I observe in wireshark around every 12 packets(1512 bytes packets) an ACk is send.
while receiving the packet in raw socket. i expected 12 packets as if i got in wireshark(i believe that wireshark also uses raw socket). But i was surprised to see one packet with send data stream.
To my knowledge, the RAW socket should receive in form of packets that is transmitted in wire and not as TCP streams.
I used below for raw socket to receive packet in port
rawsd = socket(PF_PACKET, SOCK_RAW, ETH_P_ALL);
Is this anyway related to tcp_wrapper and OS tcp configuration.