opnsense-src/sbin/ipf/libipf
Cy Schubert 93c1048a13 ipfilter: Reliably print the interface name
When printing the interface name from the ipstate_t struct the interface
name in is_ifp may not always be avaiable when reading it from kmem
(tested on FreeBSD and NetBSD). However the is_ifname (the interface
name character string) is almost always available -- it is not available
when the source of the packet is a process running on the firewall
itself. Rather than print both interface name strings, print only the
one.

MFC after:	1 week
2022-03-03 06:43:12 -08:00
..
addicmp.c ipfilter: Move userland bits to sbin 2021-12-20 06:16:33 -08:00
addipopt.c ipfilter userland: Style(9) requires a space after return 2022-01-03 19:37:25 -08:00
alist_free.c ipflter: ANSIfy userland function declarations 2022-01-03 18:06:42 -08:00
alist_new.c ipfilter userland: Style(9) requires a space after return 2022-01-03 19:37:25 -08:00
allocmbt.c ipfilter userland: Style(9) requires a space after return 2022-01-03 19:37:25 -08:00
assigndefined.c ipflter: ANSIfy userland function declarations 2022-01-03 18:06:42 -08:00
bcopywrap.c ipfilter userland: Style(9) requires a space after return 2022-01-03 19:37:25 -08:00
binprint.c ipflter: ANSIfy userland function declarations 2022-01-03 18:06:42 -08:00
buildopts.c ipfilter userland: Style(9) requires a space after return 2022-01-03 19:37:25 -08:00
checkrev.c ipfilter userland: Style(9) requires a space after return 2022-01-03 19:37:25 -08:00
connecttcp.c ipfilter userland: Style(9) requires a space after return 2022-01-03 19:37:25 -08:00
count4bits.c ipfilter userland: Style(9) requires a space after return 2022-01-03 19:37:25 -08:00
count6bits.c ipfilter userland: Style(9) requires a space after return 2022-01-03 19:37:25 -08:00
debug.c ipfilter: Move userland bits to sbin 2021-12-20 06:16:33 -08:00
dupmbt.c ipfilter userland: Style(9) requires a space after return 2022-01-03 19:37:25 -08:00
facpri.c ipfilter userland: Style(9) requires a space after return 2022-01-03 19:37:25 -08:00
facpri.h ipfilter: Move userland bits to sbin 2021-12-20 06:16:33 -08:00
familyname.c ipfilter userland: Style(9) requires a space after return 2022-01-03 19:37:25 -08:00
fill6bits.c ipflter: ANSIfy userland function declarations 2022-01-03 18:06:42 -08:00
findword.c ipfilter userland: Style(9) requires a space after return 2022-01-03 19:37:25 -08:00
flags.c ipfilter: Move userland bits to sbin 2021-12-20 06:16:33 -08:00
freembt.c ipflter: ANSIfy userland function declarations 2022-01-03 18:06:42 -08:00
ftov.c ipfilter userland: Style(9) requires a space after return 2022-01-03 19:37:25 -08:00
gethost.c ipfilter userland: Style(9) requires a space after return 2022-01-03 19:37:25 -08:00
geticmptype.c ipfilter userland: Style(9) requires a space after return 2022-01-03 19:37:25 -08:00
getifname.c ipfilter userland: Style(9) requires a space after return 2022-01-03 19:37:25 -08:00
getnattype.c ipfilter userland: Style(9) requires a space after return 2022-01-03 19:37:25 -08:00
getport.c ipfilter userland: Style(9) requires a space after return 2022-01-03 19:37:25 -08:00
getportproto.c ipfilter userland: Style(9) requires a space after return 2022-01-03 19:37:25 -08:00
getproto.c ipfilter userland: Style(9) requires a space after return 2022-01-03 19:37:25 -08:00
getsumd.c ipfilter userland: Style(9) requires a space after return 2022-01-03 19:37:25 -08:00
hostname.c ipfilter userland: Style(9) requires a space after return 2022-01-03 19:37:25 -08:00
icmpcode.c ipfilter: Move userland bits to sbin 2021-12-20 06:16:33 -08:00
icmptypename.c ipfilter userland: Style(9) requires a space after return 2022-01-03 19:37:25 -08:00
icmptypes.c ipfilter: Move userland bits to sbin 2021-12-20 06:16:33 -08:00
inet_addr.c ipfilter userland: Style(9) requires a space after return 2022-01-03 19:37:25 -08:00
initparse.c ipfilter: Move userland bits to sbin 2021-12-20 06:16:33 -08:00
interror.c ipfilter userland: Style(9) requires a space after return 2022-01-03 19:37:25 -08:00
ionames.c ipfilter: Move userland bits to sbin 2021-12-20 06:16:33 -08:00
ipf_dotuning.c ipfilter userland: Remove trailing whitespace 2022-01-03 18:06:44 -08:00
ipf_perror.c ipfilter userland: Style(9) requires a space after return 2022-01-03 19:37:25 -08:00
ipft_hx.c ipfilter userland: Style(9) requires a space after return 2022-01-03 19:37:25 -08:00
ipft_pc.c ipfilter userland: Style(9) requires a space after return 2022-01-03 19:37:25 -08:00
ipft_tx.c ipfilter userland: Style(9) requires a space after return 2022-01-03 19:37:25 -08:00
ipoptsec.c ipfilter userland: Style(9) requires a space after return 2022-01-03 19:37:25 -08:00
kmem.c ipfilter userland: Style(9) requires a space after return 2022-01-03 19:37:25 -08:00
kmem.h ipfilter: Move userland bits to sbin 2021-12-20 06:16:33 -08:00
kmemcpywrap.c ipfilter userland: Style(9) requires a space after return 2022-01-03 19:37:25 -08:00
kvatoname.c ipfilter userland: Style(9) requires a space after return 2022-01-03 19:37:25 -08:00
load_dstlist.c ipfilter userland: Style(9) requires a space after return 2022-01-03 19:37:25 -08:00
load_dstlistnode.c ipfilter userland: Style(9) requires a space after return 2022-01-03 19:37:25 -08:00
load_file.c ipfilter userland: Style(9) requires a space after return 2022-01-03 19:37:25 -08:00
load_hash.c ipfilter userland: Style(9) requires a space after return 2022-01-03 19:37:25 -08:00
load_hashnode.c ipfilter userland: Style(9) requires a space after return 2022-01-03 19:37:25 -08:00
load_http.c ipfilter userland: Style(9) requires a space after return 2022-01-03 19:37:25 -08:00
load_pool.c ipfilter userland: Style(9) requires a space after return 2022-01-03 19:37:25 -08:00
load_poolnode.c ipfilter userland: Style(9) requires a space after return 2022-01-03 19:37:25 -08:00
load_url.c ipfilter userland: Style(9) requires a space after return 2022-01-03 19:37:25 -08:00
Makefile
Makefile.depend
mb_hexdump.c ipflter: ANSIfy userland function declarations 2022-01-03 18:06:42 -08:00
msgdsize.c ipfilter userland: Style(9) requires a space after return 2022-01-03 19:37:25 -08:00
mutex_emul.c ipflter: ANSIfy userland function declarations 2022-01-03 18:06:42 -08:00
nametokva.c ipfilter userland: Style(9) requires a space after return 2022-01-03 19:37:25 -08:00
nat_setgroupmap.c ipflter: ANSIfy userland function declarations 2022-01-03 18:06:42 -08:00
ntomask.c ipfilter userland: Style(9) requires a space after return 2022-01-03 19:37:25 -08:00
optname.c ipfilter userland: Style(9) requires a space after return 2022-01-03 19:37:25 -08:00
optprint.c ipflter: ANSIfy userland function declarations 2022-01-03 18:06:42 -08:00
optprintv6.c ipflter: ANSIfy userland function declarations 2022-01-03 18:06:42 -08:00
optvalue.c ipfilter userland: Style(9) requires a space after return 2022-01-03 19:37:25 -08:00
parsefields.c ipfilter userland: Style(9) requires a space after return 2022-01-03 19:37:25 -08:00
parseipfexpr.c ipfilter userland: Style(9) requires a space after return 2022-01-03 19:37:25 -08:00
parsewhoisline.c ipfilter userland: Style(9) requires a space after return 2022-01-03 19:37:25 -08:00
poolio.c ipfilter userland: Style(9) requires a space after return 2022-01-03 19:37:25 -08:00
portname.c ipfilter userland: Style(9) requires a space after return 2022-01-03 19:37:25 -08:00
prependmbt.c ipfilter userland: Style(9) requires a space after return 2022-01-03 19:37:25 -08:00
print_toif.c ipflter: ANSIfy userland function declarations 2022-01-03 18:06:42 -08:00
printactiveaddr.c ipflter: ANSIfy userland function declarations 2022-01-03 18:06:42 -08:00
printactivenat.c ipfilter: Obtain the interface name more efficiently 2022-03-03 06:43:11 -08:00
printaddr.c ipflter: ANSIfy userland function declarations 2022-01-03 18:06:42 -08:00
printaps.c ipflter: ANSIfy userland function declarations 2022-01-03 18:06:42 -08:00
printbuf.c ipflter: ANSIfy userland function declarations 2022-01-03 18:06:42 -08:00
printdstl_live.c ipfilter userland: Style(9) requires a space after return 2022-01-03 19:37:25 -08:00
printdstlist.c ipfilter userland: Style(9) requires a space after return 2022-01-03 19:37:25 -08:00
printdstlistdata.c ipflter: ANSIfy userland function declarations 2022-01-03 18:06:42 -08:00
printdstlistnode.c ipfilter userland: Style(9) requires a space after return 2022-01-03 19:37:25 -08:00
printdstlistpolicy.c ipflter: ANSIfy userland function declarations 2022-01-03 18:06:42 -08:00
printfieldhdr.c ipflter: ANSIfy userland function declarations 2022-01-03 18:06:42 -08:00
printfr.c ipflter: ANSIfy userland function declarations 2022-01-03 18:06:42 -08:00
printfraginfo.c ipflter: ANSIfy userland function declarations 2022-01-03 18:06:42 -08:00
printhash.c ipfilter userland: Style(9) requires a space after return 2022-01-03 19:37:25 -08:00
printhash_live.c ipfilter userland: Style(9) requires a space after return 2022-01-03 19:37:25 -08:00
printhashdata.c ipflter: ANSIfy userland function declarations 2022-01-03 18:06:42 -08:00
printhashnode.c ipfilter userland: Style(9) requires a space after return 2022-01-03 19:37:25 -08:00
printhost.c ipflter: ANSIfy userland function declarations 2022-01-03 18:06:42 -08:00
printhostmap.c ipflter: ANSIfy userland function declarations 2022-01-03 18:06:42 -08:00
printhostmask.c ipflter: ANSIfy userland function declarations 2022-01-03 18:06:42 -08:00
printifname.c ipflter: ANSIfy userland function declarations 2022-01-03 18:06:42 -08:00
printip.c ipflter: ANSIfy userland function declarations 2022-01-03 18:06:42 -08:00
printipfexpr.c ipflter: ANSIfy userland function declarations 2022-01-03 18:06:42 -08:00
printiphdr.c ipflter: ANSIfy userland function declarations 2022-01-03 18:06:42 -08:00
printlog.c ipflter: ANSIfy userland function declarations 2022-01-03 18:06:42 -08:00
printlookup.c ipflter: ANSIfy userland function declarations 2022-01-03 18:06:42 -08:00
printmask.c ipflter: ANSIfy userland function declarations 2022-01-03 18:06:42 -08:00
printnat.c ipflter: ANSIfy userland function declarations 2022-01-03 18:06:42 -08:00
printnataddr.c ipflter: ANSIfy userland function declarations 2022-01-03 18:06:42 -08:00
printnatfield.c ipflter: ANSIfy userland function declarations 2022-01-03 18:06:42 -08:00
printnatside.c ipflter: ANSIfy userland function declarations 2022-01-03 18:06:42 -08:00
printpacket.c ipflter: ANSIfy userland function declarations 2022-01-03 18:06:42 -08:00
printpacket6.c ipflter: ANSIfy userland function declarations 2022-01-03 18:06:42 -08:00
printpool.c ipfilter userland: Style(9) requires a space after return 2022-01-03 19:37:25 -08:00
printpool_live.c ipfilter userland: Style(9) requires a space after return 2022-01-03 19:37:25 -08:00
printpooldata.c ipflter: ANSIfy userland function declarations 2022-01-03 18:06:42 -08:00
printpoolfield.c ipflter: ANSIfy userland function declarations 2022-01-03 18:06:42 -08:00
printpoolnode.c ipfilter userland: Style(9) requires a space after return 2022-01-03 19:37:25 -08:00
printportcmp.c ipflter: ANSIfy userland function declarations 2022-01-03 18:06:42 -08:00
printproto.c ipflter: ANSIfy userland function declarations 2022-01-03 18:06:42 -08:00
printsbuf.c ipflter: ANSIfy userland function declarations 2022-01-03 18:06:42 -08:00
printstate.c ipfilter: Reliably print the interface name 2022-03-03 06:43:12 -08:00
printstatefields.c ipflter: ANSIfy userland function declarations 2022-01-03 18:06:42 -08:00
printtcpflags.c ipflter: ANSIfy userland function declarations 2022-01-03 18:06:42 -08:00
printtqtable.c ipflter: ANSIfy userland function declarations 2022-01-03 18:06:42 -08:00
printtunable.c ipflter: ANSIfy userland function declarations 2022-01-03 18:06:42 -08:00
printunit.c ipflter: ANSIfy userland function declarations 2022-01-03 18:06:42 -08:00
remove_hash.c ipfilter userland: Style(9) requires a space after return 2022-01-03 19:37:25 -08:00
remove_hashnode.c ipfilter userland: Style(9) requires a space after return 2022-01-03 19:37:25 -08:00
remove_pool.c ipfilter userland: Style(9) requires a space after return 2022-01-03 19:37:25 -08:00
remove_poolnode.c ipfilter userland: Style(9) requires a space after return 2022-01-03 19:37:25 -08:00
resetlexer.c ipflter: ANSIfy userland function declarations 2022-01-03 18:06:42 -08:00
rwlock_emul.c ipflter: ANSIfy userland function declarations 2022-01-03 18:06:42 -08:00
save_execute.c ipfilter userland: Style(9) requires a space after return 2022-01-03 19:37:25 -08:00
save_file.c ipfilter userland: Style(9) requires a space after return 2022-01-03 19:37:25 -08:00
save_nothing.c ipfilter userland: Style(9) requires a space after return 2022-01-03 19:37:25 -08:00
save_syslog.c ipfilter userland: Style(9) requires a space after return 2022-01-03 19:37:25 -08:00
save_v1trap.c ipfilter userland: Style(9) requires a space after return 2022-01-03 19:37:25 -08:00
save_v2trap.c ipfilter userland: Style(9) requires a space after return 2022-01-03 19:37:25 -08:00
tcp_flags.c ipfilter userland: Style(9) requires a space after return 2022-01-03 19:37:25 -08:00
tcpflags.c ipfilter userland: Style(9) requires a space after return 2022-01-03 19:37:25 -08:00
tcpoptnames.c ipfilter: Move userland bits to sbin 2021-12-20 06:16:33 -08:00
v6ionames.c ipfilter: Move userland bits to sbin 2021-12-20 06:16:33 -08:00
v6optvalue.c ipfilter userland: Style(9) requires a space after return 2022-01-03 19:37:25 -08:00
var.c ipfilter userland: Style(9) requires a space after return 2022-01-03 19:37:25 -08:00
verbose.c ipfilter: Move userland bits to sbin 2021-12-20 06:16:33 -08:00
vtof.c ipfilter userland: Style(9) requires a space after return 2022-01-03 19:37:25 -08:00