Skip to content

net: Another duplicate function to get pkt address #5481

@pfalcon

Description

@pfalcon

Following #4421 , this is 3rd function with almost the same functionality (previous duplication case fixed). Well, this time, it has signature:

static void pkt_get_sockaddr(sa_family_t family, struct net_pkt *pkt,
                             struct sockaddr_ptr *addr)

i.e., it takes struct sockaddr_ptr*, whereas net_pkt_get_dst_addr() takes struct sockaddr*. Still, I guess it's worth looking into to avoid duplication.

Metadata

Metadata

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions