summaryrefslogtreecommitdiff
path: root/sys/src/9/ip/ipmux.c
AgeCommit message (Collapse)Author
2022-12-13devip: tcpmssclamp() to minimum of source and destination interface MTUcinap_lenrek
We used to only clamp to the MTU of the destination interface, but this is wrong. We have to clamp to the minimum of both source and destination. For this, we change the gating argument type of ipoput4() and ipoput6() from int to Ipifc* to pass the source interface.
2020-06-07devip: implement ipv6 support in ipmux packet filtercinap_lenrek
Added a ver= field to the filter to distinguish the ip version. By default, a filter is parsed as ipv6, and after parsing proto, src and dst fields are converted to ipv4. When no ver= field is specified, a ip version filter is implicitely added and both protocols are parsed. This change also gets rid of the fast compare types as the filed might not be aligned correctly in the packet. This also fixes the ifc= filter, as we have to check any local address.
2018-04-22devip: cleanup ipmux.ccinap_lenrek
2016-10-23ip: simplify code as packblock() and concatblock() will never errorcinap_lenrek
2014-02-03ipmux: fix 6c complaintscinap_lenrek
2011-03-30Import sources from 2011-03-30 iso image - libTaru Karttunen
2011-03-30Import sources from 2011-03-30 iso imageTaru Karttunen