Refactor ruby/trema/set-ip-{src,dst}-addr.rb (refs #236).