mirror of
https://github.com/golang/net.git
synced 2026-03-31 02:17:08 +09:00
This change makes header manipulation methods and functions return a nil header error if the receiver or wire header is nil, a header too short error if the header length field value of receiver or wire header is short, and a extension header error if the wire extnsion header is short. Also replaces syscall.EWINDOWS or syscall.EPLAN9 with more descriptive, platform independent error values. Change-Id: I923fb60b1d68857cffc9df20f3f6cb2babbcdb1f Reviewed-on: https://go-review.googlesource.com/c/net/+/129136 Reviewed-by: Matt Layher <mdlayher@gmail.com>
13 lines
363 B
Go
13 lines
363 B
Go
// Copyright 2012 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
package ipv4
|
|
|
|
import "golang.org/x/net/internal/socket"
|
|
|
|
func setControlMessage(c *socket.Conn, opt *rawOpt, cf ControlFlags, on bool) error {
|
|
// TODO(mikio): implement this
|
|
return errNotImplemented
|
|
}
|