From dc692bc613d5d24ec2bbef87e94f80d16ee0581c Mon Sep 17 00:00:00 2001 From: Mikio Hara Date: Sat, 26 Sep 2015 16:56:28 +0900 Subject: [PATCH] ipv4: don't use internal/iana's constants in documentation Change-Id: I55d6ad683b8021722fec8b42b2a8aa0a1883cb96 Reviewed-on: https://go-review.googlesource.com/15052 Reviewed-by: Brad Fitzpatrick --- ipv4/doc.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ipv4/doc.go b/ipv4/doc.go index 75eb12d7..9a79badf 100644 --- a/ipv4/doc.go +++ b/ipv4/doc.go @@ -42,7 +42,7 @@ // The outgoing packets will be labeled DiffServ assured forwarding // class 1 low drop precedence, known as AF11 packets. // -// if err := ipv4.NewConn(c).SetTOS(DiffServAF11); err != nil { +// if err := ipv4.NewConn(c).SetTOS(0x28); err != nil { // // error handling // } // if _, err := c.Write(data); err != nil { @@ -124,7 +124,7 @@ // // The application can also send both unicast and multicast packets. // -// p.SetTOS(DiffServCS0) +// p.SetTOS(0x0) // p.SetTTL(16) // if _, err := p.WriteTo(data, nil, src); err != nil { // // error handling