You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: ipsec_kernel.go
    path of file: ./repos/nff-go/examples/ipsec
    
    the code of the file until where you have to start completion: // Copyright 2019 Intel Corporation.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// Only IPv
    
func ScalarEncapsulation(currentPacket *packet.Packet, context flow.UserContext) bool {
	currentPacket.EncapsulateHead(etherLen, outerIPLen+espHeadLen)

	currentPacket.ParseL3()
	ipv4 := currentPacket.GetIPv4NoCheck()
	ipv4.SrcAddr = types.BytesToIPv4(111, 22, 3, 0)
	ipv4.DstAddr = types.BytesToIPv4(3, 22, 111, 0)
	ipv4.VersionIhl = 0x45
	ipv4.NextProtoID = esp

	// TODO All packets will be encapsulated as 1234
	scalarEncapsulationSPI123(currentPacket, context)
	return true
}