summaryrefslogtreecommitdiff
path: root/bin/date
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2007-04-21 13:58:39 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2007-04-21 13:58:39 +0000
commit1e56b3ac8fc5e92487a2509de039383a922fbc98 (patch)
treed52c5aea6c2022227e959b1d102feadbbf1682a7 /bin/date
parent69ad1e547e66668a8ad919001404dbe6c8f43ac6 (diff)
rename tht_rx to tht_rxf_fill to avoid confusion.
keep a list of used pkts in tht_pkt_list as well as free ones. add tht_pkt_used which can be used to see if a tht_pkt_list is in use by returning the head of the used list inside itself. (ab)use this to drain the rx free fifo when the interface is brought down. tht_rxf_drain pulls used pkts off, unmaps their mbufs, frees them, and then returns the pkt to the free list. the whole tht_pkt_list can then be freed safely.
Diffstat (limited to 'bin/date')
0 files changed, 0 insertions, 0 deletions