git: network - Remove host-order translations of ipv4 ip_off and ip_len
Matthew Dillon
dillon at crater.dragonflybsd.org
Sun Jul 9 20:15:25 PDT 2023
commit 8a93af2a9b3a6586d0d394bec8454562ee76044f
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date: Fri Jul 7 20:33:47 2023 -0700
network - Remove host-order translations of ipv4 ip_off and ip_len
* Do not translate ip_off and ip_len to host order and then back again
in the network stack. The fields are now left in network order.
Summary of changes:
sys/net/bridge/if_bridge.c | 11 --
sys/net/dummynet/ip_dummynet_glue.c | 4 -
sys/net/dummynet3/ip_dummynet3_glue.c | 4 -
sys/net/gre/if_gre.c | 6 +-
sys/net/ip_mroute/ip_mroute.c | 31 +++---
sys/net/ipfw/ip_fw2.c | 81 ++++-----------
sys/net/ipfw3/ip_fw3.c | 9 +-
sys/net/ipfw3_basic/ip_fw3_log.c | 10 +-
sys/net/ipfw3_nat/ip_fw3_nat.c | 8 +-
sys/net/pf/if_pflog.c | 11 --
sys/net/pf/pf.c | 24 ++---
sys/net/pf/pf_ioctl.c | 14 +--
sys/net/pf/pf_norm.c | 81 ++++++++-------
sys/net/pf/pf_osfp.c | 6 +-
sys/net/pf/pfvar.h | 4 +-
sys/net/ppp_layer/slcompress.c | 7 +-
sys/net/stf/if_stf.c | 2 +-
sys/netgraph7/ng_ipfw.c | 5 -
sys/netgraph7/ng_nat.c | 10 +-
sys/netinet/igmp.c | 4 +-
sys/netinet/in_gif.c | 2 +-
sys/netinet/ip_carp.c | 4 +-
sys/netinet/ip_demux.c | 6 +-
sys/netinet/ip_divert.c | 25 +----
sys/netinet/ip_gre.c | 10 +-
sys/netinet/ip_icmp.c | 22 ++--
sys/netinet/ip_input.c | 184 +++++++++++++++++++++-------------
sys/netinet/ip_output.c | 53 ++++------
sys/netinet/raw_ip.c | 6 +-
sys/netinet/tcp_debug.c | 2 +-
sys/netinet/tcp_input.c | 4 +-
sys/netinet/tcp_output.c | 6 +-
sys/netinet/tcp_subr.c | 2 +-
sys/netinet/tcp_syncache.c | 7 +-
sys/netinet/udp_usrreq.c | 12 +--
35 files changed, 294 insertions(+), 383 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/8a93af2a9b3a6586d0d394bec8454562ee76044f
--
DragonFly BSD source repository
More information about the Commits
mailing list