mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 19:27:35 +00:00
IPv4: Dynamically allocate the UDP source port if needed.
This commit is contained in:
parent
4dddf949c8
commit
209a16bb7f
3 changed files with 47 additions and 1 deletions
|
@ -22,6 +22,12 @@ struct Traits<unsigned> {
|
|||
static void dump(unsigned u) { kprintf("%u", u); }
|
||||
};
|
||||
|
||||
template<>
|
||||
struct Traits<word> {
|
||||
static unsigned hash(unsigned u) { return int_hash(u); }
|
||||
static void dump(unsigned u) { kprintf("%u", u); }
|
||||
};
|
||||
|
||||
template<typename T>
|
||||
struct Traits<T*> {
|
||||
static unsigned hash(const T* p)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue