smzlkimi writes:
> I want to send rst packet,I tried raw socket.
> I assign tcp->th_sum =0
> and tcp->th_off = 0
> try to let kernel fill it.
> however,kernel did not fill these two values for me. Should I do it myself?

Raw sockets aren't DLPI ... it's unclear what you're doing, but, yes,
if you're using a raw socket, then you need to fill in those values.

For DLPI, read the DLPIv2 specification:

  http://www.opengroup.org/onlinepubs/009618899/

The message you need in order to transmit is DL_UNITDATA_REQ.

A better answer (if you're using DLPI) is to use libdlpi.

(Also, it'd help to include context in your messages.  Please consider
subscribing to the list and posting via email rather than using the
jive forum; email preserves context much better for other
participants, and you'll get better responses as a result.)

-- 
James Carlson, Solaris Networking              <[EMAIL PROTECTED]>
Sun Microsystems / 35 Network Drive        71.232W   Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757   42.496N   Fax +1 781 442 1677
_______________________________________________
networking-discuss mailing list
[email protected]

Reply via email to