Fix uint out of value parsing for > 4 GiB traffic usage
This commit is contained in:
@ -1268,7 +1268,7 @@ func (client *WANCommonInterfaceConfig1) GetMaximumActiveConnections() (NewMaxim
|
||||
return
|
||||
}
|
||||
|
||||
func (client *WANCommonInterfaceConfig1) GetTotalBytesSent() (NewTotalBytesSent uint32, err error) {
|
||||
func (client *WANCommonInterfaceConfig1) GetTotalBytesSent() (NewTotalBytesSent uint64, err error) {
|
||||
// Request structure.
|
||||
request := interface{}(nil)
|
||||
// BEGIN Marshal arguments into request.
|
||||
@ -1287,14 +1287,14 @@ func (client *WANCommonInterfaceConfig1) GetTotalBytesSent() (NewTotalBytesSent
|
||||
|
||||
// BEGIN Unmarshal arguments from response.
|
||||
|
||||
if NewTotalBytesSent, err = soap.UnmarshalUi4(response.NewTotalBytesSent); err != nil {
|
||||
if NewTotalBytesSent, err = soap.UnmarshalUi8(response.NewTotalBytesSent); err != nil {
|
||||
return
|
||||
}
|
||||
// END Unmarshal arguments from response.
|
||||
return
|
||||
}
|
||||
|
||||
func (client *WANCommonInterfaceConfig1) GetTotalBytesReceived() (NewTotalBytesReceived uint32, err error) {
|
||||
func (client *WANCommonInterfaceConfig1) GetTotalBytesReceived() (NewTotalBytesReceived uint64, err error) {
|
||||
// Request structure.
|
||||
request := interface{}(nil)
|
||||
// BEGIN Marshal arguments into request.
|
||||
@ -1313,7 +1313,7 @@ func (client *WANCommonInterfaceConfig1) GetTotalBytesReceived() (NewTotalBytesR
|
||||
|
||||
// BEGIN Unmarshal arguments from response.
|
||||
|
||||
if NewTotalBytesReceived, err = soap.UnmarshalUi4(response.NewTotalBytesReceived); err != nil {
|
||||
if NewTotalBytesReceived, err = soap.UnmarshalUi8(response.NewTotalBytesReceived); err != nil {
|
||||
return
|
||||
}
|
||||
// END Unmarshal arguments from response.
|
||||
|
Reference in New Issue
Block a user