in reply to Re^5: Scaled TCP window with Net::RawIP
in thread Scaled TCP window with Net::RawIP

I am trying to generate last A packet in S-S/A-A sequence. I get sequence numbers from S/A packet, also can get wscale value. And send back as an answer A packet with scaled window, just have no idea how to scale window using NET::RawIP.

But I guess I am looking more for an advice how to use/set required packet options with RawIP especially ones related with window scaling instead of analysis of the packet flow.

Thanks for any ideas about how to generate such packet.

Martynas

  • Comment on Re^6: Scaled TCP window with Net::RawIP

Replies are listed 'Best First'.
Re^7: Scaled TCP window with Net::RawIP
by Martynas (Initiate) on Mar 03, 2011 at 13:19 UTC

    Ok, case can be closed. :) It is really not set in any further packets and taken from last S/A packet. I amnaged to get what I want, so question is not valid. For the ones who want set Window scale - option 3 shall be used in any packet with S flag. Below example is scaling factor 4, right window size still shall be set with set command.

    $packet->optset(tcp=> { type => [(3)], data => [("\x04",)],});

    I appreciate all provided comments about the case and thanks to the ones who answered

    Martynas