Skip to content

Commit

Permalink
netdev: add protocol field to sockets
Browse files Browse the repository at this point in the history
This is needed for the raw socket changes and yes it should have been pushed
first
  • Loading branch information
Alan Cox committed Aug 4, 2021
1 parent 756b864 commit b32bf43
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Kernel/include/netdev.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ struct socket
uint8_t s_num; /* To save expensive maths */
uint8_t s_parent; /* For accept */
uint8_t s_class; /* Class of socket (stream etc) */
uint16_t s_protocol; /* Protocol given in socket() */
struct ksockaddr src_addr;
uint8_t src_len;
struct ksockaddr dst_addr;
Expand Down

0 comments on commit b32bf43

Please sign in to comment.