A method for enabling an increase of a maximum size of a data packet, the method comprising: - assigning a value representing a length of the data packet to a field; - determining (410; 610) a size of the data packet; - setting (420; 430; 620; 630) a size of the field based on the determined size of the data packet; - comparing (425; 625) the determined size of the data packet against a value threshold; the method further comprising: - if the determined size of the data packet is below or equal to a first value threshold (425; 625): - calculating (440; 640) a value representing the length of the data packet to be an actual value of the determined size of the data packet; and - assigning (480; 680) the calculated value representing the length of the data packet to the field, else - if the determined size of the data packet is above said first value threshold (425; 625): - calculating (450; 650) a value representing the length of the data packet based on the determined size of the data packet, wherein calculating (450, 650) the value representing the length of the data packet comprises: - determining (460; 660) an offset value based on the determined size of the data packet; and - subtracting (470; 670) the offset value from an actual value of said determined size of the data packet; and - assigning (490; 690) the calculated value to the field. - assigning a value representing a length of the data packet to a field; - determining (410; 610) a size of the data packet; - setting (420; 430; 620; 630) a size of the field based on the determined size of the data packet; - comparing (425; 625) the determined size of the data packet against a value threshold; the method further comprising: - if the determined size of the data packet is below or equal to a first value threshold (425; 625): - calculating (440; 640) a value representing the length of the data packet to be an actual value of the determined size of the data packet; and - assigning (480; 680) the calculated value representing the length of the data packet to the field, else - if the determined size of the data packet is above said first value threshold (425; 625): - calculating (450; 650) a value representing the length of the data packet based on the determined size of the data packet, wherein calculating (450, 650) the value representing the length of the data packet comprises: - determining (460; 660) an offset value based on the determined size of the data packet; and - subtracting (470; 670) the offset value from an actual value of said determined size of the data packet; and - assigning (490; 690) the calculated value to the field. - if the determined size of the data packet is below or equal to a first value threshold (425; 625): - calculating (440; 640) a value representing the length of the data packet to be an actual value of the determined size of the data packet; and - assigning (480; 680) the calculated value representing the length of the data packet to the field, else - calculating (440; 640) a value representing the length of the data packet to be an actual value of the determined size of the data packet; and - assigning (480; 680) the calculated value representing the length of the data packet to the field, else - if the determined size of the data packet is above said first value threshold (425; 625): - calculating (450; 650) a value representing the length of the data packet based on the determined size of the data packet, wherein calculating (450, 650) the value representing the length of the data packet comprises: - determining (460; 660) an offset value based on the determined size of the data packet; and - subtracting (470; 670) the offset value from an actual value of said determined size of the data packet; and - assigning (490; 690) the calculated value to the field. - calculating (450; 650) a value representing the length of the data packet based on the determined size of the data packet, wherein calculating (450, 650) the value representing the length of the data packet comprises: - determining (460; 660) an offset value based on the determined size of the data packet; and - subtracting (470; 670) the offset value from an actual value of said determined size of the data packet; and - assigning (490; 690) the calculated value to the field. - determining (460; 660) an offset value based on the determined size of the data packet; and - subtracting (470; 670) the offset value from an actual value of said determined size of the data packet; and - assigning (490; 690) the calculated value to the field.