func NewRedirectInformationFields(addrType uint8, addrs ...string) *RedirectInformationFields {
	if len(addrs) < 1 {
		return nil
	}
	f := &RedirectInformationFields{
		RedirectAddressType:   addrType,
		ServerAddrLength:      uint16(len(addrs[0])),
		RedirectServerAddress: addrs[0],
	}
	if len(addrs) >= 2 {
		f.OtherServerAddrLength = uint16(len(addrs[1]))
		f.OtherRedirectServerAddress = addrs[1]
	}
	return f
}
NewRedirectInformationFields creates a new NewRedirectInformationFields.

You can put multiple addrs here, but the second one is used only when addrType is
RedirectAddrIPv4AndIPv6. Third - nth addrs will never be used.
package ie
import (
	"encoding/binary"
	"io"
)
func NewRedirectInformation(addrType uint8, addrs ...string) *IE {
	fields := NewRedirectInformationFields(addrType, addrs...)
	b, err := fields.Marshal()
	if err != nil {
		return nil
	}
	return New(RedirectInformation, b)
}
func (i *IE) RedirectInformation() (*RedirectInformationFields, error) {
	switch i.Type {
	case RedirectInformation:
		f, err := ParseRedirectInformationFields(i.Payload)
		if err != nil {
			return nil, err
		}
		return f, nil
	case ForwardingParameters:
		ies, err := i.ForwardingParameters()
		if err != nil {
			return nil, err
		}
		for _, x := range ies {
			if x.Type == RedirectInformation {
				return x.RedirectInformation()
			}
		}
		return nil, ErrIENotFound
	case UpdateForwardingParameters:
		ies, err := i.UpdateForwardingParameters()
		if err != nil {
			return nil, err
		}
		for _, x := range ies {
			if x.Type == RedirectInformation {
				return x.RedirectInformation()
			}
		}
		return nil, ErrIENotFound
	default:
		return nil, &InvalidTypeError{Type: i.Type}
	}
}
const (
	RedirectAddrIPv4        uint8 = 0
	RedirectAddrIPv6        uint8 = 1
	RedirectAddrURL         uint8 = 2
	RedirectAddrSIPURI      uint8 = 3
	RedirectAddrIPv4AndIPv6 uint8 = 4
)
type RedirectInformationFields struct {
	RedirectAddressType        uint8  
	ServerAddrLength           uint16
	RedirectServerAddress      string
	OtherServerAddrLength      uint16
	OtherRedirectServerAddress string
}