On Thu, Mar 28, 2002 at 11:28:19AM -0500, Bobby, Paul wrote:
> Here is my simple program.
>
> # Sending raw packets
>
> seq = rand();
>
> ip1 = forge_ip_packet (
> ip_hl:5,
> ip_v:4,
> ip_tos:0,
> ip_len:20,
> ip_id:69,
> ip_off:0,
> ip_ttl:200,
> ip_p:IPPROTO_TCP,
> ip_src:this_host()
> );
> tcp1 = forge_tcp_packet (
> ip:ip1,
> th_sport:1234,
> th_dport:80,
> th_flags:TH_SYN,
> th_seq:seq,
> th_ack:0,
> th_x2:0,
> th_off:0,
^^^^^^^^^
Set this to 5. th_off is the tcp header length (bsd
naming).
-- Renaud