$OpenBSD$ --- main.cpp.orig Thu Aug 18 10:13:39 2011 +++ main.cpp Thu Aug 18 10:15:55 2011 @@ -141,8 +141,8 @@ Options: vic [-HPs] [-A nv|ivs|rtp] [-B maxbps] [-b ne [-f bvc|cellb|h261|jpeg|nv|mpeg4|h264] [-F maxfps] [-i ifAddr ]\n\ [-I channel] [-K key ] [-L flowLabel (ip6 only)] [-l (creates log file)]\n\ [-M colormap] [-m mtu] [-N session] [-n atm|ip|ip6|rtip]\n\ - [-o clipfile] [-Q (queries and lists input devices)] [-t ttl]\n\ - [-U interval] [-u script] [-v version] [-V visual]\n\ + [-o clipfile] [-p localport] [-Q (queries and lists input devices)]\n\ + [-t ttl] [-U interval] [-u script] [-v version] [-V visual]\n\ [-x ifIndex (ip6 only)] [-X resource=value] [-j numlayers]\n\ dest/port[/fmt/ttl]\n"; @@ -525,7 +525,7 @@ int main(int argc, const char** argv) // Option list; If letter is followed by ':' then it takes an argument const char* options = - "A:B:b:C:c:D:d:f:F:HI:i:j:K:lL:M:m:N:n:o:Pq:QrsST:t:U:u:vV:w:x:X:y"; + "A:B:b:C:c:D:d:f:F:HI:i:j:K:lL:M:m:N:n:o:p:Pq:QrsST:t:U:u:vV:w:x:X:y"; /* process display and window (-use) options before initialising tcl/tk */ char buf[256], tmp[256]; const char *display=0, *use=0; @@ -705,6 +705,10 @@ int main(int argc, const char** argv) case 'o': tcl.add_option("outfile", optarg); + break; + + case 'p': + tcl.add_option("localport", optarg); break; case 'P':