1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 10:47:35 +00:00

IPv4: Dynamically allocate the UDP source port if needed.

This commit is contained in:
Andreas Kling 2019-03-13 16:05:56 +01:00
parent 4dddf949c8
commit 209a16bb7f
3 changed files with 47 additions and 1 deletions

View file

@ -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)