hc
2023-11-06 36f0949ef9854b82a9a3154d970da4e3b8d12a61
kernel/include/net/neighbour.h
....@@ -451,7 +451,7 @@
451451 }
452452 #endif
453453
454
-static inline int neigh_hh_output(const struct hh_cache *hh, struct sk_buff *skb)
454
+static inline int neigh_hh_output(struct hh_cache *hh, struct sk_buff *skb)
455455 {
456456 unsigned int hh_alen = 0;
457457 unsigned int seq;
....@@ -493,7 +493,7 @@
493493
494494 static inline int neigh_output(struct neighbour *n, struct sk_buff *skb)
495495 {
496
- const struct hh_cache *hh = &n->hh;
496
+ struct hh_cache *hh = &n->hh;
497497
498498 if ((n->nud_state & NUD_CONNECTED) && hh->hh_len)
499499 return neigh_hh_output(hh, skb);
....@@ -534,7 +534,7 @@
534534
535535 #define NEIGH_CB(skb) ((struct neighbour_cb *)(skb)->cb)
536536
537
-static inline void neigh_ha_snapshot(char *dst, const struct neighbour *n,
537
+static inline void neigh_ha_snapshot(char *dst, struct neighbour *n,
538538 const struct net_device *dev)
539539 {
540540 unsigned int seq;