I would guess netcat can do this, but can't say I've done it myself.

twakefield at stcloudstate.edu wrote:
> 
> To troubleshoot a network problem, I want to transmit an Ethernet
> packet after receiving a specific packet. Basically I will be
> simulating a DHCP transaction. The transmitted packet will
> be edited versions of a captured packet. What is the easiest way
> to do this?
> 
> Thanks
> 
> Thad Wakefield                  Phone: 320-255-4764
> Network Specialist              Fax:   320-255-4778
> St Cloud State University
> 720 4th Av S  MC108
> St Cloud,  MN  56301
> _______________________________________________
> Twin Cities Linux Users Group Mailing List - Minneapolis/St. Paul, Minnesota
> http://www.mn-linux.org
> tclug-list at mn-linux.org
> https://mailman.mn-linux.org/mailman/listinfo/tclug-list

-- 
Wayne Johnson,             | There are two kinds of people: Those 
3943 Penn Ave. N.          | who say to God, "Thy will be done," 
Minneapolis, MN 55412-1908 | and those to whom God says, "All right, 
(612) 522-7003             | then,  have it your way." --C.S. Lewis