Hugh is most likely correct. We'd need more context in order to know where the speaker is, though. You might have that context, since you're reading the book.
It doesn't particularly matter, though. It just means that the soldier is somewhere away from the speaker. And yes, he's patrolling along the length of the freight car.