errorinn / netsim

Web-based network simulator for teaching hacking to high schoolers
MIT License
154 stars 30 forks source link

Packet field comparisons should be forgiving of whitespace and case #5

Open guntbert opened 7 years ago

guntbert commented 7 years ago

It took me some time to find out why all my packets got swallowed by the first router.

I had used "bob" and "carol" instead of "Bob" and "Carol" and the routing tables are apparently case sensitive which I didn't expect.

errorinn commented 7 years ago

case sensitivity, prefixed/appended spaces, and interim spaces (eg "Zombie 1") caused a lot of trouble in our live workshop. I'm planning to replace all the == string comparisons with something to deal with this.