mirror of
https://github.com/golang/net.git
synced 2026-03-31 02:17:08 +09:00
This change uses the internal/socket package to ensure that the ipv4 package works with all supported versions of the Go standard library. Fixes golang/go#19051. Change-Id: If0256007c749c319970533823a10afdc1ffbce31 Reviewed-on: https://go-review.googlesource.com/37036 Reviewed-by: Ian Lance Taylor <iant@golang.org>
26 lines
633 B
Go
26 lines
633 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.
|
|
|
|
// +build !darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd,!solaris,!windows
|
|
|
|
package ipv4
|
|
|
|
import "golang.org/x/net/internal/socket"
|
|
|
|
func setControlMessage(c *socket.Conn, opt *rawOpt, cf ControlFlags, on bool) error {
|
|
return errOpNoSupport
|
|
}
|
|
|
|
func newControlMessage(opt *rawOpt) []byte {
|
|
return nil
|
|
}
|
|
|
|
func parseControlMessage(b []byte) (*ControlMessage, error) {
|
|
return nil, errOpNoSupport
|
|
}
|
|
|
|
func marshalControlMessage(cm *ControlMessage) []byte {
|
|
return nil
|
|
}
|