Skip to content

Commit

Permalink
add comment for snet.Dial
Browse files Browse the repository at this point in the history
  • Loading branch information
JordiSubira committed May 14, 2024
1 parent 243dcc2 commit 47bbfc4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/snet/snet.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@ func (n *SCIONNetwork) OpenRaw(ctx context.Context, addr *net.UDPAddr) (PacketCo
// connection.
func (n *SCIONNetwork) Dial(ctx context.Context, network string, listen *net.UDPAddr,
remote *UDPAddr) (*Conn, error) {
// XXX(JordiSubira): Currently Dial does not check that received packets are
// originated from the expected remote address. This should be adapted to
// check that the remote packets are originated from the expected remote address.

metrics.CounterInc(n.Metrics.Dials)
if network != "udp" {
Expand Down

0 comments on commit 47bbfc4

Please sign in to comment.