=========================================================== .___ __ __ _________________ __ __ __| _/|__|/ |_ / ___\_` __ \__ \ | | \/ __ | | \\_ __\ / /_/ > | \// __ \| | / /_/ | | || | \___ /|__| (____ /____/\____ | |__||__| /_____/ \/ \/ grep rough audit - static analysis tool v2.8 written by @Wireghoul =================================[justanotherhacker.com]=== mahimahi-0.98/src/frontend/recordshell.cc-104- mahimahi-0.98/src/frontend/recordshell.cc:105: route.rt_gateway = egress_addr.to_sockaddr(); mahimahi-0.98/src/frontend/recordshell.cc:106: route.rt_dst = route.rt_genmask = Address().to_sockaddr(); mahimahi-0.98/src/frontend/recordshell.cc-107- route.rt_flags = RTF_UP | RTF_GATEWAY; ############################################## mahimahi-0.98/src/frontend/replayshell.cc-32- interface_ioctl( SIOCSIFADDR, name, mahimahi-0.98/src/frontend/replayshell.cc:33: [&] ( ifreq &ifr ) { ifr.ifr_addr = addr.to_sockaddr(); } ); mahimahi-0.98/src/frontend/replayshell.cc-34-} ############################################## mahimahi-0.98/src/packet/packetshell.cc-28- nameserver_( first_nameserver() ), mahimahi-0.98/src/packet/packetshell.cc:29: egress_tun_( device_prefix + "-" + to_string( getpid() ) , egress_addr(), ingress_addr() ), mahimahi-0.98/src/packet/packetshell.cc:30: dns_outside_( egress_addr(), nameserver_, nameserver_ ), mahimahi-0.98/src/packet/packetshell.cc:31: nat_rule_( ingress_addr() ), mahimahi-0.98/src/packet/packetshell.cc-32- pipe_( UnixDomainSocket::make_pair() ), ############################################## mahimahi-0.98/src/packet/packetshell.cc-63- event_loop_.add_special_child_process( 77, "packetshell", [&]() { mahimahi-0.98/src/packet/packetshell.cc:64: TunDevice ingress_tun( "ingress", ingress_addr(), egress_addr() ); mahimahi-0.98/src/packet/packetshell.cc-65- ############################################## mahimahi-0.98/src/packet/packetshell.cc-73- mahimahi-0.98/src/packet/packetshell.cc:74: route.rt_gateway = egress_addr().to_sockaddr(); mahimahi-0.98/src/packet/packetshell.cc:75: route.rt_dst = route.rt_genmask = Address().to_sockaddr(); mahimahi-0.98/src/packet/packetshell.cc-76- route.rt_flags = RTF_UP | RTF_GATEWAY; ############################################## mahimahi-0.98/src/packet/packetshell.cc-85- UDPSocket dns_udp_listener; mahimahi-0.98/src/packet/packetshell.cc:86: dns_udp_listener.bind( ingress_addr() ); mahimahi-0.98/src/packet/packetshell.cc-87- ############################################## mahimahi-0.98/src/packet/packetshell.cc-108- SystemCall( "setenv", setenv( "MAHIMAHI_BASE", mahimahi-0.98/src/packet/packetshell.cc:109: egress_addr().ip().c_str(), mahimahi-0.98/src/packet/packetshell.cc-110- false /* don't override */ ) ); ############################################## mahimahi-0.98/src/packet/packetshell.hh-30- mahimahi-0.98/src/packet/packetshell.hh:31: const Address & egress_addr( void ) { return egress_ingress.first; } mahimahi-0.98/src/packet/packetshell.hh:32: const Address & ingress_addr( void ) { return egress_ingress.second; } mahimahi-0.98/src/packet/packetshell.hh-33- ############################################## mahimahi-0.98/src/util/address.cc-123- mahimahi-0.98/src/util/address.cc:124: const int gni_ret = getnameinfo( &to_sockaddr(), mahimahi-0.98/src/util/address.cc-125- size_, ############################################## mahimahi-0.98/src/util/address.cc-141- mahimahi-0.98/src/util/address.cc:142:const sockaddr & Address::to_sockaddr( void ) const mahimahi-0.98/src/util/address.cc-143-{ ############################################## mahimahi-0.98/src/util/address.hh-47- socklen_t size( void ) const { return size_; } mahimahi-0.98/src/util/address.hh:48: const sockaddr & to_sockaddr( void ) const; mahimahi-0.98/src/util/address.hh-49- ############################################## mahimahi-0.98/src/util/socket.cc-65- SystemCall( "bind", ::bind( fd_num(), mahimahi-0.98/src/util/socket.cc:66: &address.to_sockaddr(), mahimahi-0.98/src/util/socket.cc-67- address.size() ) ); ############################################## mahimahi-0.98/src/util/socket.cc-73- SystemCall( "connect", ::connect( fd_num(), mahimahi-0.98/src/util/socket.cc:74: &address.to_sockaddr(), mahimahi-0.98/src/util/socket.cc-75- address.size() ) ); ############################################## mahimahi-0.98/src/util/socket.cc-85- 0, mahimahi-0.98/src/util/socket.cc:86: &destination.to_sockaddr(), mahimahi-0.98/src/util/socket.cc-87- destination.size() ) ); ############################################## mahimahi-0.98/src/util/socket.cc-143-/* allow local address to be reused sooner, at the cost of some robustness */ mahimahi-0.98/src/util/socket.cc:144:void Socket::set_reuseaddr( void ) mahimahi-0.98/src/util/socket.cc-145-{ ############################################## mahimahi-0.98/src/util/socket.hh-44- /* allow local address to be reused sooner, at the cost of some robustness */ mahimahi-0.98/src/util/socket.hh:45: void set_reuseaddr( void ); mahimahi-0.98/src/util/socket.hh-46-}; ############################################## mahimahi-0.98/src/util/netdevice.cc-58- [&] ( ifreq &ifr ) mahimahi-0.98/src/util/netdevice.cc:59: { ifr.ifr_addr = addr.to_sockaddr(); } ); mahimahi-0.98/src/util/netdevice.cc-60- ############################################## mahimahi-0.98/src/util/netdevice.cc-63- [&] ( ifreq &ifr ) mahimahi-0.98/src/util/netdevice.cc:64: { ifr.ifr_addr = peer.to_sockaddr(); } ); mahimahi-0.98/src/util/netdevice.cc-65- ############################################## mahimahi-0.98/src/util/netdevice.cc-68- [&] ( ifreq &ifr ) mahimahi-0.98/src/util/netdevice.cc:69: { ifr.ifr_netmask = Address( "255.255.255.255", 0 ).to_sockaddr(); } ); mahimahi-0.98/src/util/netdevice.cc-70- ############################################## mahimahi-0.98/.pc/fix_gcc9.patch/src/util/netdevice.cc-58- [&] ( ifreq &ifr ) mahimahi-0.98/.pc/fix_gcc9.patch/src/util/netdevice.cc:59: { ifr.ifr_addr = addr.to_sockaddr(); } ); mahimahi-0.98/.pc/fix_gcc9.patch/src/util/netdevice.cc-60- ############################################## mahimahi-0.98/.pc/fix_gcc9.patch/src/util/netdevice.cc-63- [&] ( ifreq &ifr ) mahimahi-0.98/.pc/fix_gcc9.patch/src/util/netdevice.cc:64: { ifr.ifr_addr = peer.to_sockaddr(); } ); mahimahi-0.98/.pc/fix_gcc9.patch/src/util/netdevice.cc-65- ############################################## mahimahi-0.98/.pc/fix_gcc9.patch/src/util/netdevice.cc-68- [&] ( ifreq &ifr ) mahimahi-0.98/.pc/fix_gcc9.patch/src/util/netdevice.cc:69: { ifr.ifr_netmask = Address( "255.255.255.255", 0 ).to_sockaddr(); } ); mahimahi-0.98/.pc/fix_gcc9.patch/src/util/netdevice.cc-70-