Skip to content

receiveSynAck doesn't check packet source address #3

@xjdrew

Description

@xjdrew
        numRead, _, err := conn.ReadFrom(buf) // why not recv packet source address
        if err != nil {
            log.Fatalf("ReadFrom: %s\n", err)
        }
        receiveTime = time.Now()
        //fmt.Printf("Received: % x\n", buf[:numRead])
        tcp := NewTCPHeader(buf[:numRead])

packet could be from any server. why not check packet source address?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions