mirror of
https://github.com/golang/net.git
synced 2026-04-01 02:47:08 +09:00
Package ipv4 implements IP-level socket options for the Internet Protocol version 4. It also provides raw IP socket access methods including IPv4 header manipulation. Fixes golang/go#3684. Fixes golang/go#3820. This CL requires CL 6426047; net: add read, write message methods to IPConn, UDPConn R=rsc, dave, alex.brainman CC=gobot, golang-dev https://golang.org/cl/6482044
30 lines
653 B
Go
30 lines
653 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 (
|
|
"syscall"
|
|
)
|
|
|
|
func setControlMessage(fd int, opt *rawOpt, cf ControlFlags, on bool) error {
|
|
// TODO(mikio): Implement this
|
|
return syscall.EPLAN9
|
|
}
|
|
|
|
func newControlMessage(opt *rawOpt) []byte {
|
|
// TODO(mikio): Implement this
|
|
return nil
|
|
}
|
|
|
|
func parseControlMessage(b []byte) (*ControlMessage, error) {
|
|
// TODO(mikio): Implement this
|
|
return nil, syscall.EPLAN9
|
|
}
|
|
|
|
func marshalControlMessage(cm *ControlMessage) []byte {
|
|
// TODO(mikio): Implement this
|
|
return nil
|
|
}
|