def METHOD_NAME(src, dst, sport, dport, seq, ack, payload, pktdump, smac, dmac):
    segments = []
    if len(payload) > 1460:
        segments = chunkstring(payload, 1460)
    else:
        segments.append(payload)
    ipsrc = src
    ipdst = dst
    for segment in segments:
        p = (
            Ether(src=smac, dst=dmac)
            / IP(src=ipsrc, dst=ipdst)
            / TCP(flags="PA", sport=sport, dport=dport, seq=seq, ack=ack)
            / segment
        )
        returnAck = (
            Ether(src=dmac, dst=smac)
            / IP(src=ipdst, dst=ipsrc)
            / TCP(flags="A", sport=dport, dport=sport, seq=p.ack, ack=(p.seq + len(p[Raw])))
        )
        seq = returnAck.ack
        ack = returnAck.seq
        pktdump.write(p)
        pktdump.write(returnAck)
    return (returnAck.seq, returnAck.ack)