git: if_gif: Reimplement output loop detection using mbuf 'loop_cnt'

Aaron LI aly at crater.dragonflybsd.org
Thu Jan 25 17:03:07 PST 2024


commit 0fb330ff6678e0dbf4afcbb914b8728825c8ee0c
Author: Aaron LI <aly at aaronly.me>
Date:   Thu Jan 25 22:19:48 2024 +0800

    if_gif: Reimplement output loop detection using mbuf 'loop_cnt'
    
    The original method made use the 'called' static variable, which was
    ad-hoc and fragile.  Reimplement the loop detection using the newly
    added mbuf(9) 'm_pkthdr.loop_cnt' field.  In addition, change the errno
    of this case from EIO to ELOOP.

Summary of changes:
 sys/net/gif/if_gif.c | 13 ++++---------
 1 file changed, 4 insertions(+), 9 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/0fb330ff6678e0dbf4afcbb914b8728825c8ee0c


-- 
DragonFly BSD source repository


More information about the Commits mailing list