Automatic packet fragmentation