updating packet structure in data link